/* ==========================================================================
   ALARM DISCOUNT (CAPTAINV3) — FAQ PAGE (ClickFunded Style)
   Couleurs : Jaune #FFC107 | Gris foncé #212529
   ========================================================================== */

/* Fix global overflow-x: hidden qui bloque position: sticky */
html,
body {
    overflow-x: clip !important;
}

/* Utilitaires compatibilité */
.faq-main-section .text-violet {
    color: var(--yellow, #FFC107) !important;
}

.faq-main-section .btn-violet {
    background: var(--yellow, #FFC107);
    color: var(--dark, #212529);
    font-weight: 700;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    transition: all 0.2s ease;
}

.faq-main-section .btn-violet:hover {
    background: var(--yellow-dark, #e0a800);
    color: var(--dark, #212529);
    transform: translateY(-1px);
}

/* ── Hero Section ── */
.faq-hero {
    background: linear-gradient(145deg, #16191c 0%, var(--dark, #212529) 55%, var(--dark2, #2c3034) 100%);
    padding: 64px 0 56px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.faq-hero::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 680px;
    height: 360px;
    background: radial-gradient(ellipse at center, rgba(255, 193, 7, 0.22) 0%, transparent 70%);
    pointer-events: none;
}

.faq-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(255, 193, 7, 0.14);
    border: 1px solid rgba(255, 193, 7, 0.38);
    color: var(--yellow, #FFC107);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 18px;
}

.faq-hero-title {
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.faq-hero-subtitle {
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.02rem;
    max-width: 650px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

/* ── Search Box in Hero ── */
.faq-search-box {
    max-width: 620px;
    margin: 0 auto;
    position: relative;
}

.faq-search-input-wrap {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.07);
    border: 1.5px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    padding: 6px 10px 6px 18px;
    backdrop-filter: blur(12px);
    transition: all 0.25s ease;
}

.faq-search-input-wrap:focus-within {
    background: rgba(255, 255, 255, 0.11);
    border-color: var(--yellow, #FFC107);
    box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.2);
}

.faq-search-icon {
    color: var(--yellow, #FFC107);
    font-size: 1.15rem;
    margin-right: 12px;
}

.faq-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 0.95rem;
    padding: 10px 0;
}

.faq-search-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.faq-search-clear {
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.faq-search-clear:hover {
    background: var(--yellow, #FFC107);
    color: var(--dark, #212529);
}

/* ── Breadcrumb ── */
.faq-bc {
    background: var(--light-bg, #f8f9fa);
    border-bottom: 1px solid #e9ecef;
    padding: 12px 0;
}

.faq-bc-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
}

.faq-bc-nav a {
    color: var(--gray, #6c757d);
    text-decoration: none;
}

.faq-bc-nav a:hover {
    color: var(--yellow-dark, #e0a800);
}

.faq-bc-nav .sep {
    font-size: 0.65rem;
    color: #adb5bd;
}

/* ── Main FAQ Section ── */
.faq-main-section {
    padding: 50px 0 80px;
    background: var(--light-bg, #f8f9fa);
    min-height: 60vh;
}

/* ── Category Pills (Mobile / Top Bar) ── */
.faq-category-pills {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 24px;
    scrollbar-width: thin;
}

.faq-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    background: #ffffff;
    border: 1.5px solid #e9ecef;
    color: var(--dark, #212529);
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.faq-pill-btn i {
    color: var(--yellow-dark, #e0a800);
    font-size: 1rem;
    transition: color 0.2s;
}

.faq-pill-btn .pill-count {
    background: #f1f3f5;
    color: var(--gray, #6c757d);
    font-size: 0.73rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
}

.faq-pill-btn:hover {
    border-color: var(--yellow, #FFC107);
    color: var(--dark, #212529);
    transform: translateY(-1px);
}

.faq-pill-btn.active {
    background: linear-gradient(135deg, var(--yellow, #FFC107), var(--yellow-dark, #e0a800));
    border-color: transparent;
    color: var(--dark, #212529);
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.35);
}

.faq-pill-btn.active i {
    color: var(--dark, #212529);
}

.faq-pill-btn.active .pill-count {
    background: rgba(33, 37, 41, 0.14);
    color: var(--dark, #212529);
}

/* ── Desktop Sticky Sidebar (ClickFunded Style) ── */
.faq-sidebar-col {
    position: relative;
}

.faq-sidebar {
    position: sticky;
    top: 85px;
    z-index: 30;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease;
}

.faq-sidebar.is-pinned {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.faq-sidebar-title {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--gray, #6c757d);
    padding: 4px 10px 12px;
    border-bottom: 1px solid #f1f3f5;
    margin-bottom: 10px;
}

.faq-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.faq-nav-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--dark, #212529);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.faq-nav-btn-left {
    display: flex;
    align-items: center;
    gap: 11px;
}

.faq-nav-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 193, 7, 0.15);
    color: #b88600;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.faq-nav-count {
    font-size: 0.74rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f1f3f5;
    color: var(--gray, #6c757d);
}

.faq-nav-btn:hover {
    background: rgba(255, 193, 7, 0.1);
    color: var(--dark, #212529);
}

.faq-nav-btn.active {
    background: linear-gradient(135deg, var(--yellow, #FFC107), var(--yellow-dark, #e0a800));
    color: var(--dark, #212529);
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(255, 193, 7, 0.35);
}

.faq-nav-btn.active .faq-nav-icon {
    background: var(--dark, #212529);
    color: var(--yellow, #FFC107);
}

.faq-nav-btn.active .faq-nav-count {
    background: rgba(33, 37, 41, 0.15);
    color: var(--dark, #212529);
}

/* ── Category Group Header ── */
.faq-category-group {
    margin-bottom: 36px;
}

.faq-category-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid #e9ecef;
}

.faq-category-header-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--yellow, #FFC107), var(--yellow-dark, #e0a800));
    color: var(--dark, #212529);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 14px rgba(255, 193, 7, 0.32);
    flex-shrink: 0;
}

.faq-category-header-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--dark, #212529);
    margin: 0;
}

.faq-category-header-desc {
    font-size: 0.86rem;
    color: var(--gray, #6c757d);
    margin: 2px 0 0;
}

/* ── Accordion Cards (ClickFunded Style) ── */
.faq-accordion-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item-card {
    background: #ffffff;
    border: 1.5px solid #e9ecef;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.faq-item-card:hover {
    border-color: rgba(255, 193, 7, 0.65);
    box-shadow: 0 6px 22px rgba(255, 193, 7, 0.1);
}

.faq-item-card.is-open {
    border-color: var(--yellow, #FFC107);
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.16);
}

.faq-question-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 1.04rem;
    font-weight: 700;
    color: var(--dark, #212529);
    line-height: 1.45;
    transition: color 0.2s;
}

.faq-item-card.is-open .faq-question-btn {
    color: #b88600;
}

.faq-toggle-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #f1f3f5;
    color: var(--dark, #212529);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.faq-item-card.is-open .faq-toggle-icon {
    background: var(--yellow, #FFC107);
    color: var(--dark, #212529);
    transform: rotate(180deg);
}

.faq-answer-collapse {
    display: none;
    padding: 0 24px 22px;
    border-top: 1px solid #f1f3f5;
}

.faq-item-card.is-open .faq-answer-collapse {
    display: block;
    animation: faqSlideDown 0.22s ease;
}

@keyframes faqSlideDown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-answer-body {
    padding-top: 16px;
    font-size: 0.95rem;
    line-height: 1.75;
    color: #495057;
}

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

.faq-answer-body a {
    color: #b88600;
    font-weight: 600;
    text-decoration: underline;
}

.faq-answer-body code {
    background: rgba(255, 193, 7, 0.16);
    color: var(--dark, #212529);
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 0.88em;
}

/* ── Helpful & Share Footer inside Answer ── */
.faq-answer-footer {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.82rem;
    color: var(--gray, #6c757d);
}

.faq-helpful-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.faq-vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    background: #f1f3f5;
    color: var(--dark, #212529);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.faq-vote-btn:hover,
.faq-vote-btn.voted {
    background: rgba(255, 193, 7, 0.2);
    border-color: var(--yellow, #FFC107);
    color: var(--dark, #212529);
}

.faq-copy-btn {
    background: transparent;
    border: none;
    color: var(--gray, #6c757d);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.faq-copy-btn:hover {
    color: #b88600;
}

/* ── Empty State ── */
.faq-empty-state {
    background: #ffffff;
    border: 1.5px dashed #dee2e6;
    border-radius: 18px;
    padding: 48px 24px;
    text-align: center;
}

.faq-empty-state i {
    font-size: 2.8rem;
    color: var(--yellow, #FFC107);
    opacity: 0.75;
    display: block;
    margin-bottom: 12px;
}

/* ── Bottom Support CTA Banner ── */
.faq-cta-card {
    margin-top: 48px;
    background: linear-gradient(135deg, #16191c 0%, var(--dark, #212529) 100%);
    border-radius: 20px;
    padding: 36px 40px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.14);
}

.faq-cta-card::after {
    content: '';
    position: absolute;
    right: -60px;
    bottom: -60px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.28), transparent 70%);
    pointer-events: none;
}

.faq-cta-content {
    max-width: 560px;
    position: relative;
    z-index: 1;
}

.faq-cta-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.faq-cta-text {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.94rem;
    margin: 0;
}

.faq-cta-btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--yellow, #FFC107), var(--yellow-dark, #e0a800));
    color: var(--dark, #212529) !important;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.35);
    transition: all 0.25s ease;
}

.faq-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(255, 193, 7, 0.5);
    color: var(--dark, #212529) !important;
}

@media (max-width: 991px) {
    .faq-hero {
        padding: 48px 0 42px;
    }
    .faq-cta-card {
        padding: 28px 24px;
        text-align: center;
        justify-content: center;
    }
}
