<h2>S'inscrire </h2>				
	You are currently signed in as <strong>admin</strong>.
	<a href="https://www.holistic-babe.fr/wp-login.php?action=logout&#038;redirect_to=https%3A%2F%2Fwww.holistic-babe.fr%2Fregister%2F&#038;_wpnonce=c9be97504a">Sign out</a>
					<script type="text/javascript">
document.addEventListener('DOMContentLoaded', function() {
    // Find the main container that holds both the Freelancer and Employer tabs.
    const mainRegisterContainer = document.querySelector('.apus-register-form');
    // If the container doesn't exist on this page, do nothing.
    if (!mainRegisterContainer) {
        return;
    }
    // Create an observer to watch for changes inside the main container.
    const observer = new MutationObserver(function(mutationsList, observer) {
        // Look through all the changes that just happened.
        for (const mutation of mutationsList) {
            if (mutation.type === 'childList') {
                // Check if the success message has been added.
                // We are looking for the light blue info box.
                const successMessage = mainRegisterContainer.querySelector('.alert.alert-info');
                // Check if the message exists and contains the correct text.
                if (successMessage && successMessage.textContent.includes('Inscription réussie')) {
                    // Find the tabs at the top ("Professionnel" / "Client").
                    const tabsToHide = mainRegisterContainer.querySelector('.nav-tabs');
                    if (tabsToHide) {
                        tabsToHide.style.display = 'none';
                    }
                    // Find the form within the currently active tab.
                    const activeForm = mainRegisterContainer.querySelector('.tab-pane.active form');
                    if (activeForm) {
                        activeForm.style.display = 'none';
                    }
                    // We've done our job, so we can stop watching to save resources.
                    observer.disconnect();
                    break; 
                }
            }
        }
    });