/**
 * FreshMailCheck - Layout & Styles SaaS
 * Version: 3.1
 */

/* 1. Reset et conteneur global */
#fmc-saas-wrap {
    display: block !important;
    width: 100% !important;
    max-width: 1400px !important;
    margin: 20px auto !important;
    background: #090E23 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    color: #fff !important;
}

/* 2. Structure Flex principale (Desktop) */
#fmc-saas-wrap .fmc-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    width: 100% !important;
    min-height: 800px !important;
}

/* 3. Barre latérale (Sidebar) */
#fmc-saas-wrap .fmc-sidebar {
    width: 260px !important;
    min-width: 260px !important;
    max-width: 260px !important;
    flex: 0 0 260px !important;
    background: rgba(0, 0, 0, 0.35) !important;
    padding: 30px 20px !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
}

#fmc-saas-wrap .fmc-logo h2 {
    font-size: 24px !important;
    font-family: 'Fondamento', cursive, serif !important;
    color: #00c26e !important;
    margin: 0 0 40px 0 !important;
    text-align: center !important;
}

#fmc-saas-wrap .fmc-nav-item {
    cursor: pointer !important;
    padding: 12px 16px !important;
    margin-bottom: 8px !important;
    border-radius: 8px !important;
    color: #b0b0b0 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    transition: all 0.2s ease !important;
}

#fmc-saas-wrap .fmc-nav-item:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
}

#fmc-saas-wrap .fmc-nav-item.active {
    background: #00c26e !important;
    color: #000 !important;
    font-weight: 700 !important;
}

#fmc-saas-wrap .fmc-credit-box {
    margin-top: auto !important;
    background: rgba(0, 194, 110, 0.08) !important;
    padding: 15px !important;
    border-radius: 12px !important;
    text-align: center !important;
    border: 1px solid rgba(0, 194, 110, 0.2) !important;
}

/* 4. Zone de Contenu Principal (Droite) */
#fmc-saas-wrap .fmc-main-content {
    flex: 1 1 auto !important;
    padding: 35px 40px !important;
    background: #0d142b !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

/* 5. Gestion des sections onglets */
#fmc-saas-wrap .fmc-section {
    display: none !important;
}

#fmc-saas-wrap .fmc-section.active {
    display: block !important;
    animation: fmcFadeIn 0.3s ease;
}

@keyframes fmcFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 6. Responsive (Mobile & Tablette) */
@media (max-width: 900px) {
    #fmc-saas-wrap .fmc-container {
        flex-direction: column !important;
        min-height: auto !important;
    }

    #fmc-saas-wrap .fmc-sidebar {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        padding: 15px !important;
    }

    #fmc-saas-wrap .fmc-nav {
        flex-direction: row !important;
        overflow-x: auto !important;
        gap: 8px !important;
        padding-bottom: 5px !important;
    }

    #fmc-saas-wrap .fmc-nav-item {
        white-space: nowrap !important;
        margin-bottom: 0 !important;
    }

    #fmc-saas-wrap .fmc-credit-box {
        display: none !important;
    }

    #fmc-saas-wrap .fmc-main-content {
        padding: 20px !important;
    }
}