/* Compléments aux composants natifs Fluent Community, hors administration. */
/* La validation d'inscription conserve uniquement ses actions de confirmation. */
body.elementor-page-324 #cjep-floating-contact { display: none !important; }
/* Sur l'écran de rédaction seulement, garder l'action native Rejoindre si nécessaire. */
body.cjep-compose-page .fcom_wrap .fhr_content_layout_header:has(.menu_actions > .fcom_primary_button),
body.cjep-compose-page .fcom_wrap .space_header:has(.menu_actions > .fcom_primary_button) {
    display: flex !important;
    margin-block-end: var(--cjep-space-md, 20px);
}
body.cjep-compose-page .space_header .fcom_space_menu_nav,
body.cjep-compose-page .space_header .fcom_space_actions_ref {
    display: none !important;
}
#cjep-category-post-action {
    margin-block-start: var(--cjep-space-md, 20px);
    text-decoration: none;
    max-width: 100%;
    white-space: normal;
    text-align: center;
}
#cjep-category-post-action:focus-visible {
    outline: 2px solid var(--cjep-primary-dark, #05285c);
    outline-offset: 4px;
}
@media (min-width: 769px) {
    .fcom_wrap:not(.fcom_wp_frame):not(:has(.fcom_admin_menu)) .fcom_search_holder .fcom_menu_button.fcom_search_trigger {
        width: 210px;
    }
}
body.fluent_com_wp_pages .elementor-widget-text-editor {
    overflow-wrap: anywhere;
}
.fcom_wrap:not(:has(.fcom_admin_menu)) {
    --cjep-fcom-header-height: 71px;
    --cjep-quickbar-height: 82px;
}
.fcom_wrap:not(:has(.fcom_admin_menu)) .fcom_top_menu .space_opener,
.fcom_wrap:not(:has(.fcom_admin_menu)) .fcom_mobile_menu,
.fcom_wrap:not(:has(.fcom_admin_menu)) .space_header {
    display: none !important;
}
body:not(:has(.fcom_admin_menu)) .fcom_mobile_menu,
.fcom_wrap:not(.fcom_wp_frame):not(:has(.fcom_admin_menu)) #fcom_sidebar_wrap > nav {
    display: none !important;
}
.fcom_wrap:not(.fcom_wp_frame):not(:has(.fcom_admin_menu)) .feed_layout > .spaces {
    display: block !important;
}
.fcom_wrap:not(.fcom_wp_frame):not(:has(.fcom_admin_menu)) #fluent_community_sidebar_menu {
    inset-inline: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    margin: 0 !important;
}
.fcom_wrap:not(.fcom_wp_frame):not(:has(.fcom_admin_menu)) #fluent_community_sidebar_menu .fcom_sidebar_contents {
    box-sizing: border-box;
    max-width: 1180px;
    margin-inline: auto !important;
}
.fcom_wrap:not(.fcom_wp_frame):not(:has(.fcom_admin_menu)) #fluent_community_sidebar_menu .fcom_communities_menu:has(.space_section_title[data-group_id="21"]) > nav {
    box-sizing: border-box;
    min-width: 0 !important;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}
.fcom_wrap:not(.fcom_wp_frame):not(:has(.fcom_admin_menu)) .fhr_content {
    box-sizing: border-box;
    min-width: 0 !important;
}
.fcom_wrap:not(.fcom_wp_frame):not(:has(.fcom_admin_menu)) .feed_layout .feeds,
.fcom_wrap:not(.fcom_wp_frame):not(:has(.fcom_admin_menu)) .feed_layout .feeds .all_feeds_holder {
    min-width: 0;
    max-width: 100%;
}
#cjep-floating-contact,
#cjep-floating-contact:hover,
#cjep-floating-contact:focus,
#cjep-floating-contact:focus-visible {
    text-decoration: none !important;
}
#cjep-floating-contact {
    max-width: calc(100vw - 2 * var(--cjep-space-sm, 12px));
    text-align: center;
    white-space: normal;
    inset-inline-end: max(var(--cjep-space-md, 20px), env(safe-area-inset-right));
    inset-block-end: max(var(--cjep-space-md, 20px), env(safe-area-inset-bottom));
}
#cjep-floating-contact:focus-visible {
    outline: 2px solid var(--cjep-primary-dark, #05285c);
    outline-offset: 4px;
}
@media (max-width: 768px) {
    .fcom_wrap:not(:has(.fcom_admin_menu)) .fcom_top_menu {
        height: 71px !important;
        min-height: 71px !important;
        flex-wrap: nowrap !important;
        gap: var(--cjep-space-sm, 12px);
        padding-inline: var(--cjep-space-sm, 12px);
        box-sizing: border-box;
    }
    .fcom_wrap:not(:has(.fcom_admin_menu)) .fcom_top_menu .top_menu_left {
        flex: 0 1 auto;
        min-width: 0;
    }
    .fcom_wrap:not(:has(.fcom_admin_menu)) .fcom_top_menu .top_menu_right {
        min-width: 0;
        margin-inline-start: auto;
    }
    .fcom_wrap:not(:has(.fcom_admin_menu)) .fcom_top_menu .fcom_user_context_menu_items {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 8px;
        padding: 0;
    }
    .fcom_wrap:not(:has(.fcom_admin_menu)) .fcom_top_menu .fhr_logo a img {
        width: auto;
        max-width: 70px;
        height: 58px;
        max-height: 58px;
        object-fit: contain;
    }
    .fcom_wrap:not(:has(.fcom_admin_menu)) .fcom_login_btn {
        font-size: 12px !important;
        padding-inline: 10px !important;
        white-space: nowrap;
    }
    .fcom_wrap:not(.fcom_wp_frame):not(:has(.fcom_admin_menu)) #fluent_community_sidebar_menu .fcom_sidebar_contents {
        padding: 10px var(--cjep-space-sm, 12px) !important;
    }
    .fcom_wrap:not(.fcom_wp_frame):not(:has(.fcom_admin_menu)) #fluent_community_sidebar_menu .fcom_communities_menu:has(.space_section_title[data-group_id="21"]) > nav {
        padding: 6px !important;
        height: 58px !important;
    }
    .fcom_wrap:not(.fcom_wp_frame):not(:has(.fcom_admin_menu)) #fluent_community_sidebar_menu a.space_menu_item {
        padding-inline: 12px !important;
        font-size: 13px !important;
    }
    .fcom_wrap:not(.fcom_wp_frame):not(:has(.fcom_admin_menu)) #fluent_community_sidebar_menu a.fcom_space_custom_a-la-une_1786354676 {
        padding-inline: 12px !important;
        font-size: 13px !important;
    }
    .fcom_wrap:not(.fcom_wp_frame):not(:has(.fcom_admin_menu)) #fluent_community_sidebar_menu .fcom_communities_menu:has(.space_section_title[data-group_id="21"]) nav > ul {
        gap: 8px !important;
    }
    .fcom_wrap:not(.fcom_wp_frame):not(:has(.fcom_admin_menu)) .fhr_content {
        width: 100% !important;
        padding-inline: var(--cjep-space-sm, 12px) !important;
    }
    #cjep-floating-contact {
        inset-inline-end: max(var(--cjep-space-sm, 12px), env(safe-area-inset-right));
        inset-block-end: max(var(--cjep-space-sm, 12px), env(safe-area-inset-bottom));
    }
}
