/* ==========================================================================
   FINAGECO - FAQ & AVANTAGES STYLESHEET (faq.css)
   Complete & fully synchronized stylesheet for faq.html
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HERO SECTION & BARRE DE RECHERCHE DYNAMIQUE
   -------------------------------------------------------------------------- */
.hero-faq {
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
}

.hero-faq .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 920px;
    margin: 0 auto;
    grid-template-columns: 1fr; /* Override de la grille hero standard */
}

.text-center {
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 107, 0, 0.18);
    border: 1px solid rgba(255, 107, 0, 0.4);
    color: #ff9d42;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-badge i {
    font-size: 0.9rem;
    color: var(--accent-orange);
}

.hero-faq h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--white);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.hero-faq h2 {
    font-size: 1.2rem;
    color: #e2e8f0;
    font-weight: 400;
    max-width: 780px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.hero-faq p {
    color: #94a3b8;
    font-size: 0.95rem;
    max-width: 700px;
    margin: 0 auto 35px;
}

/* Barre de recherche FAQ */
.faq-search-box {
    position: relative;
    width: 100%;
    max-width: 680px;
    margin: 10px auto 0;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    transition: var(--transition);
}

.faq-search-box:hover,
.faq-search-box:focus-within {
    box-shadow: 0 18px 45px rgba(11, 76, 140, 0.4), 0 0 0 2px var(--accent-orange);
    transform: translateY(-2px);
}

.faq-search-box i {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--primary-blue);
    z-index: 5;
    transition: var(--transition);
}

.faq-search-box input {
    width: 100%;
    padding: 18px 25px 18px 60px;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    background: var(--white);
    color: var(--text-dark);
    outline: none;
    transition: var(--transition);
}

.faq-search-box input::placeholder {
    color: #94a3b8;
    font-size: 0.92rem;
}

/* --------------------------------------------------------------------------
   2. SECTION AVANTAGES EXCLUSIFS FINAGECO
   -------------------------------------------------------------------------- */
.finageco-advantages {
    padding: 80px 0;
    background-color: var(--light-bg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.advantage-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px 25px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

.adv-icon {
    width: 55px;
    height: 55px;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 20px;
}

.advantage-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.advantage-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   3. SECTION PRINCIPALE FAQ & ONGLETS DE CATÉGORIES
   -------------------------------------------------------------------------- */
.faq-main-section {
    padding: 80px 0;
    background-color: var(--white);
}

.faq-categories-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
}

.faq-tab-btn {
    padding: 12px 22px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    background: var(--light-bg);
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.faq-tab-btn i {
    color: var(--primary-blue);
    transition: var(--transition);
}

.faq-tab-btn:hover {
    border-color: var(--primary-blue);
    background: rgba(11, 76, 140, 0.05);
    color: var(--primary-blue);
}

.faq-tab-btn.active {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(11, 76, 140, 0.25);
}

.faq-tab-btn.active i {
    color: var(--white);
}

/* Accordéon FAQ & Groupes */
.faq-accordion-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-group-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(11, 76, 140, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-group-title i {
    color: var(--accent-orange);
}

/* Style des items de FAQ */
.faq-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary-blue);
}

.faq-question {
    width: 100%;
    padding: 18px 22px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: left;
    cursor: pointer;
    gap: 15px;
}

.faq-question i {
    color: var(--primary-blue);
    transition: var(--transition);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.faq-answer {
    padding: 0 22px 20px;
    display: none;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.faq-item.active {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-sm);
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
    color: var(--accent-orange);
}

/* Message si aucun résultat de recherche */
.faq-not-found {
    text-align: center;
    padding: 60px 20px;
    background: var(--light-bg);
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-color);
    max-width: 600px;
    margin: 30px auto 0;
}

.faq-not-found i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    opacity: 0.5;
}

.faq-not-found h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.faq-not-found p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* --------------------------------------------------------------------------
   4. EXTENSIONS DEMO MODAL (MULTI-STEPS)
   -------------------------------------------------------------------------- */
.demo-steps-container {
    margin-top: 10px;
}

.step-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-panel:not(.active) {
    display: none;
}

.demo-form-section h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.demo-form-section p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.country-code {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px;
    font-size: 0.88rem;
    background: var(--white);
}

.step-indicator {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.footer-actions-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.link-skip {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-decoration: underline;
}

.link-skip:hover {
    color: var(--primary-blue);
}

/* --------------------------------------------------------------------------
   5. EXTENSIONS PROMOTIONAL MODAL
   -------------------------------------------------------------------------- */
.decor-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.decor-circle-top {
    width: 150px;
    height: 150px;
    top: -50px;
    right: -50px;
}

.decor-circle-bottom {
    width: 200px;
    height: 200px;
    bottom: -80px;
    left: -80px;
}

.star {
    color: #ffc107;
    margin-right: 4px;
}

.crown-icon {
    color: #ffc107;
}

.feature-content {
    display: flex;
    flex-direction: column;
}

.feature-highlight {
    background: rgba(11, 76, 140, 0.05);
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary-blue);
}

.chart-icon {
    color: var(--primary-blue);
    font-weight: bold;
}

.separator {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-blue);
}

.seconds-box div {
    color: var(--accent-orange);
}

.arrow {
    display: inline-block;
    transition: var(--transition);
}

.offer-button:hover .arrow {
    transform: translateX(4px);
}

/* ==========================================================================
   FINAGECO - FAQ PAGE RESPONSIVE STYLES (360px, 480px, 520px, 768px, 1080px)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESKTOP SMALL / TABLET LANDSCAPE (max-width: 1080px)
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
    .container {
        max-width: 960px;
    }

    .hero-faq h1 {
        font-size: 2.5rem;
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .demo-modal-content {
        max-width: 680px;
    }

    .finageco-modal {
        max-width: 720px;
    }
}

/* --------------------------------------------------------------------------
   2. TABLET PORTRAIT (max-width: 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .navbar {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px;
        box-shadow: var(--shadow-md);
        border-top: 1px solid var(--border-color);
    }

    .navbar.active {
        display: block;
    }

    .navbar ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .sidenav {
        display: none;
    }

    .hero-faq {
        padding: 70px 0 50px;
    }

    .hero-faq h1 {
        font-size: 2.1rem;
    }

    .hero-faq h2 {
        font-size: 1.05rem;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .faq-categories-tabs {
        gap: 8px;
    }

    .faq-tab-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .demo-choices {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .demo-modal-content {
        max-height: 95vh;
    }

    .finageco-modal {
        grid-template-columns: 1fr;
        max-height: 88vh;
        overflow-y: auto;
    }

    .promo-side, 
    .content-side {
        padding: 30px 20px;
    }
}

/* --------------------------------------------------------------------------
   3. LARGE MOBILE (max-width: 520px)
   -------------------------------------------------------------------------- */
@media (max-width: 520px) {
    .container {
        padding: 0 15px;
    }

    .logo-text h2 {
        font-size: 1.1rem;
    }

    .logo-text span {
        font-size: 0.65rem;
    }

    .hero-faq h1 {
        font-size: 1.8rem;
    }

    .faq-search-box input {
        padding: 14px 20px 14px 50px;
        font-size: 0.9rem;
    }

    .faq-search-box i {
        left: 18px;
        font-size: 1.05rem;
    }

    .faq-categories-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .faq-tab-btn {
        flex-shrink: 0;
    }

    .btn-primary-custom,
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .chat-window {
        width: calc(100vw - 30px);
        right: -5px;
    }

    .info-card.whatsapp {
        width: calc(100vw - 40px);
        left: -10px;
    }

    .demo-stepper {
        gap: 5px;
    }

    .step {
        font-size: 0.75rem;
    }

    .step-circle {
        width: 22px;
        height: 22px;
        font-size: 0.7rem;
    }

    .recaptcha-mock {
        width: 100%;
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

/* --------------------------------------------------------------------------
   4. MEDIUM MOBILE (max-width: 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    .hero-faq h1 {
        font-size: 1.6rem;
    }

    .hero-faq h2 {
        font-size: 0.95rem;
    }

    .hero-faq p {
        font-size: 0.88rem;
    }

    .advantage-card {
        padding: 22px 18px;
    }

    .faq-question {
        padding: 15px 18px;
        font-size: 0.9rem;
    }

    .faq-answer {
        padding: 0 18px 16px;
        font-size: 0.85rem;
    }

    .left-widgets {
        left: 10px;
        bottom: 15px;
    }

    .right-widgets {
        right: 10px;
        bottom: 15px;
    }

    .widget-btn {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .chat-trigger-btn {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .demo-header {
        padding: 20px 15px 15px;
    }

    .demo-header h2 {
        font-size: 1.25rem;
    }

    .demo-body {
        padding: 15px;
    }

    .demo-footer {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .footer-actions-right {
        flex-direction: column;
        width: 100%;
    }

    .btn-continue, 
    .btn-confirm {
        width: 100%;
        text-align: center;
    }

    .promo-title {
        font-size: 1.4rem;
    }
}

/* --------------------------------------------------------------------------
   5. SMALL MOBILE (max-width: 360px)
   -------------------------------------------------------------------------- */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }

    .logo img {
        width: 35px;
        height: 35px;
    }

    .logo-text h2 {
        font-size: 0.95rem;
    }

    .logo-text span {
        display: none;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 6px 12px;
    }

    .hero-faq h1 {
        font-size: 1.35rem;
    }

    .hero-faq h2 {
        font-size: 0.88rem;
    }

    .faq-group-title {
        font-size: 1.1rem;
    }

    .country-code-group {
        flex-direction: column;
    }

    .country-code {
        width: 100%;
    }

    .countdown {
        gap: 4px;
    }

    .time-box {
        padding: 2px 4px;
    }

    .time-box div {
        font-size: 0.75rem;
    }

    .time-box span {
        font-size: 0.5rem;
    }

    .promo-title {
        font-size: 1.25rem;
    }
}


/* ==========================================================================
   FINAGECO - RESPONSIVE & MODAL FIXES (APPEND AT BOTTOM OF faq.css)
   ========================================================================== */

/* Fix 1: Global Viewport Overflow Prevention */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
}

header.header {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Fix 2: Multi-Step Panel Flex Layout Enforcement */
.step-panel {
    display: none;
}

.step-panel.active {
    display: flex !important;
    flex-direction: column;
    gap: 20px;
}

/* Fix 3: Mobile Navigation & Integrated Action Buttons (<= 768px) */
@media (max-width: 768px) {
    .header .container {
        position: relative;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
    }

    /* Mobile Menu Dropdown Wrapper */
    .navbar {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100vw;
        background: #ffffff;
        padding: 20px 25px;
        box-shadow: 0 15px 30px rgba(0, 31, 63, 0.15);
        border-top: 1px solid var(--border-color, #e2e8f0);
        box-sizing: border-box;
        z-index: 1000;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .navbar.active {
        display: block !important;
    }

    .navbar ul {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .navbar ul li {
        width: 100%;
    }

    .navbar ul li a {
        display: block;
        width: 100%;
        padding: 8px 0;
        font-size: 1rem;
    }

    /* Integrated Action Buttons inside Hamburger Menu */
    .navbar .sidenav {
        display: flex !important;
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
        padding-top: 18px;
        border-top: 1px solid var(--border-color, #e2e8f0);
        width: 100%;
        box-sizing: border-box;
    }

    .navbar .sidenav a {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
        padding: 12px 18px;
        margin: 0;
        border-radius: 8px;
        font-weight: 600;
    }

    /* Hide standalone header sidenav on mobile top bar */
    .header > .container > .sidenav {
        display: none !important;
    }
}

/* Fix 4: Widget Bounds & Overflow Prevention (360px, 480px, 520px) */
@media (max-width: 520px) {
    .chat-window {
        width: calc(100vw - 30px) !important;
        max-width: 340px !important;
        right: 0 !important;
        left: auto !important;
        box-sizing: border-box;
    }

    .info-card.whatsapp {
        width: calc(100vw - 30px) !important;
        max-width: 320px !important;
        left: 0 !important;
        right: auto !important;
        box-sizing: border-box;
    }

    .demo-modal-content {
        width: 95% !important;
        max-width: 100% !important;
        margin: 10px auto;
        padding: 15px;
        box-sizing: border-box;
    }

    .finageco-modal {
        width: 95% !important;
        max-width: 100% !important;
        margin: 10px auto;
        box-sizing: border-box;
    }
}