Your content goes here. Edit or remove this text inline or in the module Content settings. You can also style every aspect of this content in the module Design settings and even apply custom CSS to this text in the module Advanced settings.
Your content goes here. Edit or remove this text inline or in the module Content settings. You can also style every aspect of this content in the module Design settings and even apply custom CSS to this text in the module Advanced settings.
// Gère aussi le menu du Theme Builder
document.addEventListener('click', function (e) {
// On réagit uniquement si on clique sur un parent de sous-menu
var a = e.target.closest('.et_mobile_menu .menu-item-has-children > a');
if (!a) return;
var li = a.parentElement;
var href = a.getAttribute('href') || '';
// 1er clic : on ouvre (empêche la navigation)
if (!li.classList.contains('active')) {
e.preventDefault();
li.classList.add('active');
return;
}
// 2e clic : si pas de vrai lien (# ou vide), on toggle sans naviguer
if (href.trim() === '' || href.trim() === '#') {
e.preventDefault();
li.classList.toggle('active');
return;
}
// Sinon, laisser naviguer (lien réel)
}, true);