Outiref
<!DOCTYPE html> 
<html lang="fr">
<head>
<meta charset="UTF-8">
<script>
window.dataLayer = window.dataLayer || [];
</script>
<title>Apéro Jazz - JAM SESSION</title>
<meta name="description" content="" >
<meta name="keywords" content="évènements Toutle05" >
<meta name="robots" content="index, follow, All" >
<meta property="og:url"           content="https://www.toutle05.fr/evenement/detail/9743/10832" >
<meta property="og:type"          content="website" >
<meta property="og:title"         content="Apéro Jazz - JAM SESSION" >
<meta property="og:description"   content="" >
<link rel="canonical" href="https://www.toutle05.fr/evenement/detail/9743/10832" > 
<meta name="author" content="Toutle05" >
<link rel="preconnect" href="https://artisanmatomo.creer-mon-site-internet.org">
<link rel="preconnect" href="https://api.meilleur-artisan.com">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">
<link rel="apple-touch-icon" href="/images/marques/toutle05-1024x1024.png" >
<meta name= "viewport" content="width=device-width"> 
<meta name="mobile-web-app-capable" content="yes"> 
<link rel="icon" type="image/jpg" href="/images/marques/toutle05-1024x1024.png">
<!-- MINIFIER -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" type="text/css" >
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/flatpickr/dist/flatpickr.min.css" type="text/css" >
<link rel="stylesheet" href="/css/min-toutle05.fr.css?v=20260408" type="text/css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js" ></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.13.2/jquery-ui.min.js" ></script>
<script>
        var Global = {};
        Global.lat = null;
        Global.lng = null;
        </script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" defer></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" defer></script>
<script src="https://cdn.jsdelivr.net/npm/flatpickr" defer></script>
<script src="https://cdn.jsdelivr.net/npm/flatpickr/dist/l10n/fr.js" defer></script>
<script src="/javascripts/marque/toutle05/toutle05.js?v=1" defer></script>
<script src="/javascripts/min-toutle05.fr.js?v=20251218" ></script>
<script>
	document.addEventListener('DOMContentLoaded', function(event) {
		cookieChoices.showCookieConsentBar('En naviguant sur notre site, nous espérons que vous goûterez nos cookies avec délice !',
			'Ok', ['En savoir plus.','Gérez votre consentement sur les cookies.'], ['/docs/cgv.php','/docs/cgv.php#cgv_donnees_personnelles']);
	});
        </script></head>
<body class='theme-toutle05'>


<div  class="mobile-header theme-toutle05">
    <a href="/" class="marque-logo">
                    <img height="50" width="171" src="/images/marques/toutle05-380x80.png" alt="Toutle05">
            </a>
</div>

<div class="nav-wrapper theme-toutle05">
    <nav class="desktop-nav glass" id="desktop-nav">
        <a href="/" class="marque-logo">
                            <img src="/images/marques/toutle05-380x80.png" alt="Toutle05">
                    </a>

        <div class="nav-links" id="nav-links">
            <div class="nav-links__bubble" id="nav-bubble"></div>                            <a href="/" class="marque-nav-link">Accueil</a>
                            <a href="/france/provence-alpes-cote-d-azur/hautes-alpes/" class="marque-nav-link">Trouver mon pro</a>
                            <a href="/front/evenement/agenda" class="marque-nav-link">Agenda</a>
                            <a href="/tourisme" class="marque-nav-link">Tourisme</a>
                            <a href="/vielocale" class="marque-nav-link">Vie locale</a>
                            <a href="/front/renseignement/abonnementsPro" class="marque-nav-link">Abonnements Pros</a>
                    </div>

        <div class="nav-search" id="nav-search">
            <form action="/front/evenement" method="GET" style="width: 100%; display: flex;">
                <input class="nav-search__input" id="search-input" name="search" type="search"
                       placeholder="Rechercher sur Toutle05…" autocomplete="off" value="">
            </form>
        </div>

        <div class="nav-right" id="nav-right">
                        <button class="search-btn" id="search-open">
                <i class="fa fa-search search-icon-open"></i>
                <svg class="search-icon-close" height="30px" width="30px" viewbox="0 0 640 640"><path d="M183.1 137.4C170.6 124.9 150.3 124.9 137.8 137.4C125.3 149.9 125.3 170.2 137.8 182.7L275.2 320L137.9 457.4C125.4 469.9 125.4 490.2 137.9 502.7C150.4 515.2 170.7 515.2 183.2 502.7L320.5 365.3L457.9 502.6C470.4 515.1 490.7 515.1 503.2 502.6C515.7 490.1 515.7 469.8 503.2 457.3L365.8 320L503.1 182.6C515.6 170.1 515.6 149.8 503.1 137.3C490.6 124.8 470.3 124.8 457.8 137.3L320.5 274.7L183.1 137.4z"/></svg>
            </button>
                                                    <div class="nav-dropdown cta-selector" >
                    <button class="btn-ma-custom btn--pro m-0 d-flex align-items-center border-0 cursor-pointer" id="desktop-cta-btn">
                        <span>Apparaitre sur le site</span>
                        <i class="fa fa-chevron-down" style="margin-left: 8px;"></i>
                    </button>
                    <div class="nav-dropdown__dropdown cta-selector__dropdown" id="desktop-cta-dropdown" style="white-space: nowrap;">
                        <a href="/docs/accesprofessionnel.php" class="lang-item" style="text-decoration: none;">
                            <span>Inscrire mon entreprise</span>
                        </a>
                        <a href="/front/evenement/ajouter" class="lang-item" style="text-decoration: none;">
                            <span>Inscrire mon événement</span>
                        </a>
                    </div>
                </div>
                                        <a href="/front/auth/login" class="btn-ma-custom btn--login">Se connecter</a>
                        <button class="hamburger-btn" id="hamburger-open">
                <i class="fa fa-bars"></i>
            </button>
        </div>
    </nav>

    <div class="hamburger-dropdown" id="hamburger-dropdown">
                    <a href="/" class="marque-nav-link">Accueil</a>
                    <a href="/france/provence-alpes-cote-d-azur/hautes-alpes/" class="marque-nav-link">Trouver mon pro</a>
                    <a href="/front/evenement/agenda" class="marque-nav-link">Agenda</a>
                    <a href="/tourisme" class="marque-nav-link">Tourisme</a>
                    <a href="/vielocale" class="marque-nav-link">Vie locale</a>
                    <a href="/front/renseignement/abonnementsPro" class="marque-nav-link">Abonnements Pros</a>
            </div>

    <div class="search-dropdown" id="search-dropdown">
        <div class="search-dropdown__inner">
            <!-- Les suggestions dynamiques seront injectées ici -->
        </div>
        <div class="search-loader" id="search-loader" style="display: none; padding: 20px; text-align: center;">
            <i class="fa fa-spinner fa-spin" style="font-size: 24px; color: var(--color-primary);"></i>
            <p style="margin-top: 10px; font-size: 0.9rem; color: #666;">Recherche en cours...</p>
        </div>
    </div>
</div>

<nav class="mobile-bar theme-toutle05" id="mobile-bar-container">
    <div class="mobile-bar__bg" id="mobile-bar-bg"></div>

    <div class="mobile-bar__inner">
        <div class="mobile-bar__group-main">
            <a href="/" class="mobile-bar__item">
                <svg viewbox="0 0 24 24" width="26" height="26"><path d="M23.121,9.069,15.536,1.483a5.008,5.008,0,0,0-7.072,0L.879,9.069A2.978,2.978,0,0,0,0,11.19v9.817a3,3,0,0,0,3,3H21a3,3,0,0,0,3-3V11.19A2.978,2.978,0,0,0,23.121,9.069ZM15,22.007H9V18.073a3,3,0,0,1,6,0Zm7-1a1,1,0,0,1-1,1H17V18.073a5,5,0,0,0-10,0v3.934H3a1,1,0,0,1-1-1V11.19a1.008,1.008,0,0,1,.293-.707L9.878,2.9a3.008,3.008,0,0,1,4.244,0l7.585,7.586A1.008,1.008,0,0,1,22,11.19Z"/></svg>
                <span class="mobile-bar__sub-label">Accueil</span>            </a>
            <a href="/france/provence-alpes-cote-d-azur/hautes-alpes/" class="mobile-bar__item">
                <svg viewbox="0 0 24 24" width="26" height="26"><path d="M23,15h-.667c-.25,0-.498,.019-.745,.057l-7.046-5.284,1.688-1.616c.399-.382,.413-1.016,.031-1.414-.383-.399-1.017-.412-1.414-.031l-4.173,3.995c-.208,.208-.491,.315-.788,.29-.298-.024-.56-.175-.739-.425-.274-.38-.19-.975,.168-1.334l4.703-4.429c.891-.837,2.284-1.042,3.374-.495l2.316,1.158c.69,.345,1.464,.527,2.235,.527h1.056c.553,0,1-.447,1-1s-.447-1-1-1h-1.056c-.463,0-.928-.109-1.342-.316l-2.314-1.158c-1.824-.913-4.153-.574-5.641,.828l-.618,.582-.7-.638c-.919-.837-2.109-1.298-3.39-1.298-.771,0-1.54,.182-2.227,.525l-2.314,1.158c-.415,.207-.88,.316-1.343,.316H1c-.553,0-1,.447-1,1s.447,1,1,1h1.056c.771,0,1.545-.183,2.236-.527l2.316-1.158c1.022-.514,2.458-.375,3.374,.462l.587,.535-2.646,2.492c-1.073,1.072-1.244,2.767-.398,3.938,.52,.723,1.553,1.259,2.444,1.259,.793,0,1.554-.312,2.104-.863l1.006-.963,6.346,4.759c-.031,.022-6.198,4.646-6.198,4.646-.723,.562-1.732,.562-2.47-.011l-6.091-4.568c-.859-.645-1.925-1-3-1h-.667c-.553,0-1,.447-1,1s.447,1,1,1h.667c.645,0,1.284,.213,1.8,.6l6.077,4.558c.725,.564,1.594,.846,2.461,.846,.862,0,1.723-.279,2.437-.835l6.093-4.568c.515-.387,1.154-.6,1.799-.6h.667c.553,0,1-.447,1-1s-.447-1-1-1Z"/></svg>
                <span class="mobile-bar__sub-label">Trouver pro</span>            </a>
                            <a href="/front/evenement/agenda" class="mobile-bar__item">
                    <svg viewbox="0 0 24 24" width="26" height="26"><path d="M19,2h-1V1c0-.552-.447-1-1-1s-1,.448-1,1v1H8V1c0-.552-.447-1-1-1s-1,.448-1,1v1h-1C2.243,2,0,4.243,0,7v12c0,2.757,2.243,5,5,5h14c2.757,0,5-2.243,5-5V7c0-2.757-2.243-5-5-5ZM5,4h14c1.654,0,3,1.346,3,3v1H2v-1c0-1.654,1.346-3,3-3Zm14,18H5c-1.654,0-3-1.346-3-3V10H22v9c0,1.654-1.346,3-3,3Zm0-8c0,.552-.447,1-1,1H6c-.553,0-1-.448-1-1s.447-1,1-1h12c.553,0,1,.448,1,1Zm-7,4c0,.552-.447,1-1,1H6c-.553,0-1-.448-1-1s.447-1,1-1h5c.553,0,1,.448,1,1Z"/></svg>
                    <span class="mobile-bar__sub-label">Agenda</span>                </a>
                                        <a href="/front/menu" class="mobile-bar__item" id="mobile-menu-btn" style="background: none; border: none; padding: 0; text-decoration: none;">
                    <i class="fa fa-bars" style="font-size: 26px;"></i>
                    <span class="mobile-bar__sub-label">Menu</span>
                </a>
                    </div>
    </div>

        <!-- Bouton de recherche mobile -->
    <button class="mobile-bar__fab" id="mobile-search-btn">
        <i class="fa fa-search"></i>
    </button>
    </nav>

<div class="theme-toutle05 search-overlay" id="mobile-search-overlay">
    <div class="search-overlay__bg" id="mobile-search-bg"></div>
    <div class="search-overlay__content">
        <div class="d-flex align-items-center mb-4 mt-2">
            <div class="search-overlay__input-wrap glass" style="flex: 1; min-width: 0;">
                <i class="fa fa-search text-muted"></i>
                <form action="/front/evenement" method="GET" style="flex: 1; min-width: 0;">
                    <input type="text" class="search-overlay__input" id="mobile-search-input" name="search" placeholder="Rechercher sur Toutle05…" autocomplete="off" style="width: 100%;">
                </form>
            </div>
            <button class="search-overlay__close" id="mobile-search-close" style="position: relative; z-index: 9999; flex-shrink: 0; margin-left: 10px;">
                <i class="fa fa-times" style="pointer-events: none;"></i>
            </button>
        </div>
        <div class="search-overlay__body">
            <!-- Les suggestions dynamiques mobile seront injectées ici -->
        </div>
    </div>
</div>

<script>
    
    document.addEventListener('DOMContentLoaded', function() {
        const nav = document.getElementById('desktop-nav');
        const navSearch = document.getElementById('nav-search');
        const searchInput = document.getElementById('search-input');
        const searchOpenBtn = document.getElementById('search-open');
        const dropdown = document.getElementById('search-dropdown');
        const searchResultsContainer = dropdown ? dropdown.querySelector('.search-dropdown__inner') : null;
        const pageSearchInput = document.getElementById('search'); 
        const showSuggestions = true;

        function debounce(func, wait) {
            let timeout;
            return function executedFunction(...args) {
                const later = () => {
                    clearTimeout(timeout);
                    func(...args);
                };
                clearTimeout(timeout);
                timeout = setTimeout(later, wait);
            };
        }

        /* Mobile Search Overlay */
        const mobSearchBtn = document.getElementById('mobile-search-btn');
        const mobOverlay = document.getElementById('mobile-search-overlay');
        const mobClose = document.getElementById('mobile-search-close');
        const mobInput = document.getElementById('mobile-search-input');
        const mobResultsContainer = mobOverlay ? mobOverlay.querySelector('.search-overlay__body') : null;

        // Création du loader mobile s'il n'existe pas
        if (mobResultsContainer && !document.getElementById('mobile-search-loader')) {
            const mobLoader = document.createElement('div');
            mobLoader.id = 'mobile-search-loader';
            mobLoader.style.display = 'none';
            mobLoader.style.padding = '20px';
            mobLoader.style.textAlign = 'center';
            mobLoader.innerHTML = `
                <i class="fa fa-spinner fa-spin" style="font-size: 24px; color: white;"></i>
                <p style="margin-top: 10px; font-size: 0.9rem; color: white;">Recherche en cours...</p>
            `;
            mobResultsContainer.parentNode.insertBefore(mobLoader, mobResultsContainer);
        }

        async function fetchSuggestions(term, container, targetDropdown = null) {
            // Déclenchement à partir de 0 caractères (pour les suggestions par défaut)
            if (term === undefined) return;
            
            const isDefault = term.length === 0;

            if (term.length > 0 && term.length < 3) {
                if (container) container.innerHTML = '';
                if (targetDropdown) targetDropdown.classList.remove('open');
                return;
            }

            // Gestion des loaders (Desktop et Mobile)
            const loader = (container === mobResultsContainer) 
                ? document.getElementById('mobile-search-loader')
                : document.getElementById('search-loader');

            try {
                if (loader) loader.style.display = 'block';
                if (container) container.style.display = 'none';
                if (targetDropdown) targetDropdown.classList.add('open');

                // Appel aux deux fonctions de recherche indépendamment
                const [catResponse, eventResponse] = await Promise.all([
                    fetch(`/front/evenement/autocompleteCategories?term=${encodeURIComponent(term)}`),
                    fetch(`/front/evenement/autocompleteEvents?term=${encodeURIComponent(term)}`)
                ]);

                if (!catResponse.ok || !eventResponse.ok) throw new Error('Network response was not ok');
                
                const [catData, eventData] = await Promise.all([
                    catResponse.json(),
                    eventResponse.json()
                ]);

                const data = {
                    categories: catData.categories || [],
                    events: eventData.events || [],
                    is_default: catData.is_default || false
                };

                if (container) {
                    container.style.display = 'block';
                    if ((data.categories && data.categories.length > 0) || (data.events && data.events.length > 0)) {
                        let html = '';
                        
                        if (data.categories && data.categories.length > 0) {
                            const catLabel = data.is_default ? 'Suggestions pour vous' : `Catégories correspondant à "${term}"`;
                            html += `<p class="search-dropdown__label">${catLabel}</p>`;
                            data.categories.forEach(cat => {
                                html += `
                                    <a href="${cat.url}" class="search-item">
                                        <span class="search-item__icon">
                                            ${cat.image ? `<img src="${cat.image}" style="width:100%;height:100%;object-fit:cover;border-radius:4px;">` : '<i class="fa fa-tag"></i>'}
                                        </span>
                                        <span class="search-item__body">
                                            <span class="search-item__text">${cat.title}</span>
                                            <span class="search-item__sub">Voir tous les évènements de cette catégorie</span>
                                        </span>
                                    </a>
                                `;
                            });
                        }

                        if (data.events && data.events.length > 0) {
                            const eventLabel = data.is_default ? 'Prochains événements' : `4 prochains événements correspondant à "${term}"`;
                            html += `
                                <div class="srch-res-container" style="display: flex; justify-content: space-between; align-items: center; margin-top: 12px; margin-bottom: 8px;">
                                    <p class="search-dropdown__label" style="margin: 0;">${eventLabel}</p>
                                    ${!data.is_default ? `<a href="/front/evenement?search=${encodeURIComponent(term)}" style="padding-right:22px;font-size: 0.8rem; color: var(--color-primary); text-decoration: underline; font-weight: bold;">Voir tout</a>` : ''}
                                </div>
                            `;
                            data.events.forEach(item => {
                                html += `
                                    <a href="${item.url}" class="search-item">
                                        <span class="search-item__icon">
                                            ${item.image ? `<img src="${item.image}" style="width:100%;height:100%;object-fit:cover;border-radius:4px;">` : '<i class="fa fa-calendar"></i>'}
                                        </span>
                                        <span class="search-item__body">
                                            <span class="search-item__text">${item.title}</span>
                                            <span class="search-item__sub">${item.date} • ${item.city}</span>
                                        </span>
                                    </a>
                                `;
                            });
                        }
                        container.innerHTML = html;
                    } else {
                        if (term.length >= 3) {
                            container.innerHTML = `<p class="search-dropdown__label">Aucun résultat trouvé pour "${term}"</p>`;
                        } else {
                            if (targetDropdown) targetDropdown.classList.remove('open');
                        }
                    }
                }
            } catch (error) {
                console.error('Erreur autocomplétion:', error);
            } finally {
                if (loader) loader.style.display = 'none';
            }
        }

        const debouncedFetch = debounce((term, container, targetDropdown) => {
            fetchSuggestions(term, container, targetDropdown);
        }, 300);

        // Header Search (Desktop)
        if (searchInput) {
            searchInput.addEventListener('input', (e) => {
                debouncedFetch(e.target.value, searchResultsContainer, dropdown);
            });
            searchInput.addEventListener('focus', (e) => {
                if (e.target.value.length === 0) {
                    fetchSuggestions('', searchResultsContainer, dropdown);
                }
            });
        }

        // Search Input on Index Page
        if (pageSearchInput && dropdown) {
            pageSearchInput.addEventListener('click', (e) => {
                // Empêcher l'ouverture du menu de recherche si on est sur la page recherche
                e.preventDefault();
                e.stopPropagation();
            });
            pageSearchInput.addEventListener('focus', (e) => {
                // Empêcher l'ouverture du menu de recherche si on est sur la page recherche
                e.preventDefault();
                e.stopPropagation();
            });
        }

        function openSearch() {
            if (!nav || !navSearch) return;
            nav.classList.add('search-open');
            navSearch.classList.add('visible');
            if (dropdown) {
                dropdown.classList.add('open');
            }
            if (searchInput) setTimeout(() => searchInput.focus(), 60);
        }

        function closeSearch() {
            if (!nav || !navSearch) return;
            nav.classList.remove('search-open');
            navSearch.classList.remove('visible');
            if (dropdown) dropdown.classList.remove('open');
            if (searchInput) searchInput.value = '';
        }

        if (searchOpenBtn) {
            searchOpenBtn.addEventListener('click', () => {
                if (nav && nav.classList.contains('search-open')) {
                    closeSearch();
                } else {
                    openSearch();
                    if (searchInput && searchInput.value.length === 0) {
                        fetchSuggestions('', searchResultsContainer, dropdown);
                    }
                }
            });
        }

        const hamburgerOpenBtn = document.getElementById('hamburger-open');
        const hamburgerDropdown = document.getElementById('hamburger-dropdown');

        if (hamburgerOpenBtn && hamburgerDropdown) {
            hamburgerOpenBtn.addEventListener('click', (e) => {
                e.stopPropagation();
                hamburgerDropdown.classList.toggle('open');
            });

            document.addEventListener('click', (e) => {
                if (!hamburgerDropdown.contains(e.target) && !hamburgerOpenBtn.contains(e.target)) {
                    hamburgerDropdown.classList.remove('open');
                }
            });
        }

        /* Mobile */
        if (mobInput) {
            mobInput.addEventListener('input', (e) => {
                debouncedFetch(e.target.value, mobResultsContainer, null);
            });
            mobInput.addEventListener('focus', (e) => {
                if (e.target.value.length === 0) {
                    fetchSuggestions('', mobResultsContainer, null);
                }
            });
        }

        if (mobSearchBtn && mobOverlay) {
            mobSearchBtn.addEventListener('click', (e) => {
                e.preventDefault();
                const rect = mobSearchBtn.getBoundingClientRect();
                mobOverlay.style.setProperty('--search-origin-x', rect.left + rect.width / 2 + 'px');
                mobOverlay.style.setProperty('--search-origin-y', rect.top + rect.height / 2 + 'px');
                mobOverlay.classList.add('open');
                
                document.body.dataset.scrollY = window.scrollY;
                document.body.style.position = 'fixed';
                document.body.style.top = `-${window.scrollY}px`;
                document.body.style.width = '100%';
                document.body.classList.add('search-locked');
                
                if (mobInput) {
                    setTimeout(() => {
                        mobInput.focus();
                        if (mobInput.value.length === 0) {
                            fetchSuggestions('', mobResultsContainer, null);
                        }
                    }, 350);
                }
            });
        }

        if (mobClose && mobOverlay) {
            mobClose.addEventListener('click', (e) => {
                e.preventDefault();
                e.stopPropagation();
                if (mobInput) mobInput.blur();
                mobOverlay.classList.remove('open');
                
                const scrollY = document.body.dataset.scrollY;
                document.body.style.position = '';
                document.body.style.top = '';
                document.body.style.width = '';
                window.scrollTo(0, parseInt(scrollY || '0'));
                
                document.body.classList.remove('search-locked');
            });
        }

        const isHomePage = false;

        if (!isHomePage && searchOpenBtn) {
            // Sur les autres pages que l'accueil, la loupe est toujours visible
            searchOpenBtn.style.opacity = '1';
            searchOpenBtn.style.pointerEvents = 'auto';
        }

        window.addEventListener('scroll', () => {
            if (!searchOpenBtn) return;
            
            // La mécanique de scroll ne s'applique que sur la page d'accueil
            if (isHomePage) {
                const threshold = window.innerHeight * 0.3;
                if (window.scrollY >= threshold) {
                    searchOpenBtn.style.opacity = '1';
                    searchOpenBtn.style.pointerEvents = 'auto';
                } else {
                    searchOpenBtn.style.opacity = '0';
                    searchOpenBtn.style.pointerEvents = 'none';
                    if (nav && nav.classList.contains('search-open')) closeSearch();
                }
            }
        });

        /* CTA Dropdown */
        const ctaBtn = document.getElementById('desktop-cta-btn');
        const ctaSelector = ctaBtn ? ctaBtn.closest('.nav-dropdown') : null;

        if (ctaBtn && ctaSelector) {
            ctaBtn.addEventListener('click', (e) => {
                e.stopPropagation();
                ctaSelector.classList.toggle('open');
            });

            document.addEventListener('click', (e) => {
                if (!ctaSelector.contains(e.target)) {
                    ctaSelector.classList.remove('open');
                }
            });
        }

        /* Navigation Bubble Toutle05 */
        const is05 = true;
        const navLinksContainer = document.getElementById('nav-links');
        const bubble = document.getElementById('nav-bubble');
        const links = navLinksContainer ? navLinksContainer.querySelectorAll('.marque-nav-link') : [];

        function moveBubble(target, instant = false) {
            if (!bubble || !target || !navLinksContainer) return;
            const rect = target.getBoundingClientRect();
            const containerRect = navLinksContainer.getBoundingClientRect();
            
            if (instant) bubble.style.transition = 'none';
            
            bubble.style.width = rect.width + 'px';
            bubble.style.height = rect.height + 'px';
            bubble.style.transform = `translate(${rect.left - containerRect.left}px, ${rect.top - containerRect.top}px)`;
            bubble.style.opacity = '1';

            if (instant) {
                bubble.offsetHeight; // force reflow
                bubble.style.transition = '';
            }
        }

        if (is05 && bubble && navLinksContainer) {
            const activeLink = navLinksContainer.querySelector('.marque-nav-link.active');
            
            if (activeLink) {
                moveBubble(activeLink, true);
            }

            links.forEach(link => {
                link.addEventListener('mouseenter', () => moveBubble(link));
                link.addEventListener('click', function() {
                    links.forEach(l => l.classList.remove('active'));
                    this.classList.add('active');
                    moveBubble(this);
                });
            });

            navLinksContainer.addEventListener('mouseleave', () => {
                const currentActive = navLinksContainer.querySelector('.marque-nav-link.active');
                if (currentActive) {
                    moveBubble(currentActive);
                } else {
                    bubble.style.opacity = '0';
                }
            });

            window.addEventListener('resize', () => {
                const currentActive = navLinksContainer.querySelector('.marque-nav-link.active');
                if (currentActive) moveBubble(currentActive, true);
            });

            window.addEventListener('load', () => {
                const currentActive = navLinksContainer.querySelector('.marque-nav-link.active');
                if (currentActive) moveBubble(currentActive, true);
            });
        }

        /* Langage Dropdown */
        const langBtn = document.getElementById('desktop-lang-btn');
        const langSelector = langBtn ? langBtn.closest('.nav-dropdown') : null;
        const langItems = langSelector ? langSelector.querySelectorAll('.lang-item') : [];

        if (langBtn && langSelector) {
            langBtn.addEventListener('click', (e) => {
                e.stopPropagation();
                langSelector.classList.toggle('open');
            });

            document.addEventListener('click', (e) => {
                if (!langSelector.contains(e.target)) {
                    langSelector.classList.remove('open');
                }
            });

            langItems.forEach(item => {
                item.addEventListener('click', function(e) {
                    e.stopPropagation();
                    langItems.forEach(i => i.classList.remove('active'));
                    this.classList.add('active');

                    const fullText = this.querySelector('span').innerText.trim();
                    let shortText = 'FR';
                    if (fullText === 'Deutsch') shortText = 'DE';
                    else if (fullText === 'English') shortText = 'EN';
                    else if (fullText === 'Español') shortText = 'ES';
                    else if (fullText === 'Português') shortText = 'PT';
                    else if (fullText === 'Italiano') shortText = 'IT';

                    langBtn.querySelector('span').innerText = shortText;
                    langSelector.classList.remove('open');
                });
            });
        }

        /* Logique de génération du trou sur le menu mobile */
        function updateMobileBarShape() {
            const container = document.getElementById('mobile-bar-container');
            const bg = document.getElementById('mobile-bar-bg');
            const fab = document.getElementById('mobile-search-btn');

            if (!container || !bg) return;

            if (window.getComputedStyle(container).display === 'none') return;

            const width = container.offsetWidth;
            const height = container.offsetHeight || 60;
            const cutoutR = 30;
            const fabOffset = 50;
            const cx = width - fabOffset;
            const curveWidth = 30;

            const pathData = width > 0 ?
                'M 0 0 ' +
                'L ' + (cx - curveWidth * 1.8) + ' 0 ' +
                'C ' + (cx - curveWidth * 0.8) + ' 0, ' + (cx - curveWidth * 0.8) + ' ' + cutoutR + ', ' + cx + ' ' + cutoutR + ' ' +
                'C ' + (cx + curveWidth * 0.8) + ' ' + cutoutR + ', ' + (cx + curveWidth * 0.8) + ' 0, ' + (cx + curveWidth * 1.8) + ' 0 ' +
                'L ' + width + ' 0 ' +
                'L ' + width + ' ' + (height + 100) + ' ' +
                'L 0 ' + (height + 100) + ' ' +
                'Z' : "";

            if (width > 0) {
                bg.innerHTML = '<svg width="100%" height="100%" style="overflow:visible;">' +
                    '<path d="' + pathData + '" fill="none" opacity="0.8" />' +
                    '</svg>';

                bg.style.clipPath = "path('" + pathData + "')";
                bg.style.webkitClipPath = "path('" + pathData + "')";

                if (fab) {
                    fab.style.left = (cx - 26.5) + 'px';
                    fab.style.top = '-31px';
                }
            }
        }

        window.addEventListener('resize', updateMobileBarShape);
        window.addEventListener('load', updateMobileBarShape);
        setTimeout(updateMobileBarShape, 150);

        if (document.querySelectorAll('.flair-button').length > 0) {
            const isHoverableDevice = window.matchMedia("(hover: hover) and (pointer: fine)").matches;
            if (!isHoverableDevice) return;

            document.querySelectorAll('.flair-button').forEach(button => {
                const duration = button.dataset.duration || "0.3";
                button.style.setProperty('--flair-duration', duration + 's');
                const flair = button.querySelector('.flair-button-cercle-fond');

                const getXY = (e) => {
                    const rect = button.getBoundingClientRect();
                    let x = ((e.clientX - rect.left) / rect.width) * 100;
                    let y = ((e.clientY - rect.top) / rect.height) * 100;
                    x = Math.max(0, Math.min(100, x));
                    y = Math.max(0, Math.min(100, y));
                    return {x, y};
                };

                button.addEventListener('mouseenter', (e) => {
                    const {x, y} = getXY(e);
                    flair.style.transition = 'none';
                    flair.style.left = `${x}%`;
                    flair.style.top = `${y}%`;
                    flair.offsetHeight;
                    flair.style.transition = `left 0.4s ease-out, top 0.4s ease-out, transform ${duration}s ease-out`;
                    flair.style.transform = 'translate(-50%, -50%) scale(1)';
                });

                button.addEventListener('mousemove', (e) => {
                    const {x, y} = getXY(e);
                    flair.style.left = `${x}%`;
                    flair.style.top = `${y}%`;
                });

                button.addEventListener('mouseleave', (e) => {
                    const {x, y} = getXY(e);
                    const targetX = x > 90 ? x + 20 : x < 10 ? x - 20 : x;
                    const targetY = y > 90 ? y + 20 : y < 10 ? y - 20 : y;
                    flair.style.transition = `left 0.3s ease-out, top 0.3s ease-out, transform ${duration}s ease-out`;
                    flair.style.left = `${targetX}%`;
                    flair.style.top = `${targetY}%`;
                    flair.style.transform = 'translate(-50%, -50%) scale(0)';
                });
            });
        }
    });
    
</script>
<main class="mainttle05 theme-toutle05">
    <div id="site_espace">
        


    <link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css"
          integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY=" crossorigin="">

    <script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"
            integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo="
            crossorigin=""></script>

    <div class="container-fluid" style="width: 95%;max-width: 1287px;margin-bottom: 20px;">
        <nav aria-label="breadcrumb">
            <ol class="breadcrumb" style="background-color: transparent;">
                                    <li class="breadcrumb-item" 
                        >
                                                    <a href="/" style="color: var(--color-primary);">Accueil</a>
                                            </li>
                                    <li class="breadcrumb-item active" 
                        aria-current="page" style="color: var(--color-secondary);">
                                                    Apéro Jazz - JAM SESSION
                                            </li>
                            </ol>
        </nav>
    </div>

    <div class="tle05-event-detail">

        <div class="container-fluid tle05-event-detail__container">

                        <div class="tle05-event-detail__hero">
                <div class="row align-items-center">

                    <div class="col-12 col-lg-5 mb-4 mb-lg-0">
                        <div class="tle05-event-detail__visual">
                                                            <img src="/images/evenements/667349/9743_0.jpg"
                                     alt="Apéro Jazz - JAM SESSION"
                                     class="tle05-event-detail__main-image">
                                                    </div>
                    </div>

                    <div class="col-12 col-lg-7">
                        <div class="tle05-event-detail__hero-content">

                            <h1 class="tle05-event-detail__title">
                                Apéro Jazz - JAM SESSION
                            </h1>

                            <div class="tle05-event-detail__badges">
                                                                    <a href="/front/evenement/categorie/17"
                                       class="tle05-event-detail__badge">
                                        Sortir
                                    </a>
                                                                    <a href="/front/evenement/categorie/20"
                                       class="tle05-event-detail__badge">
                                        Nos suggestions
                                    </a>
                                                                    <a href="/front/evenement/categorie/23"
                                       class="tle05-event-detail__badge">
                                        Se divertir
                                    </a>
                                                                    <a href="/front/evenement/categorie/24"
                                       class="tle05-event-detail__badge">
                                        En Famille - Pour les Enfants
                                    </a>
                                
                                <span class="tle05-event-detail__badge tle05-event-detail__badge--price">
                                                                            gratuit
                                                                    </span>
                            </div>

                            <div class="tle05-event-detail__hero-date-box">
                                <div class="tle05-event-detail__hero-date-icon">
                                    <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" aria-hidden="true">
                                        <path d="M7 2.5a1 1 0 0 1 1 1V5h8V3.5a1 1 0 1 1 2 0V5h1.5A2.5 2.5 0 0 1 22 7.5v11A2.5 2.5 0 0 1 19.5 21h-15A2.5 2.5 0 0 1 2 18.5v-11A2.5 2.5 0 0 1 4.5 5H6V3.5a1 1 0 0 1 1-1ZM4 10v8.5a.5.5 0 0 0 .5.5h15a.5.5 0 0 0 .5-.5V10H4Z"/>
                                    </svg>
                                </div>

                                <div>
                                    <span>Dates de l'événement</span>
                                    <strong>
                                        Vendredi 22 mai 19h00
                                                                                    <span>→</span>
                                            Vendredi 22 mai 23h00
                                                                            </strong>
                                </div>
                            </div>

                            <div class="tle05-event-detail__actions">
                                <a href="#"
                                   rel="nofollow"
                                   data-table="professionnel"
                                   data-id="667349"
                                   class="tel tle05-event-detail__btn tle05-event-detail__btn--primary">
                                    <svg fill="currentColor" width="20px" height="20px" viewbox="0 0 24 24" id="phone" data-name="Line Color" xmlns="http://www.w3.org/2000/svg" class="mr-2"><path id="primary" d="M21,15v3.93a2,2,0,0,1-2.29,2A18,18,0,0,1,3.14,5.29,2,2,0,0,1,5.13,3H9a1,1,0,0,1,1,.89,10.74,10.74,0,0,0,1,3.78,1,1,0,0,1-.42,1.26l-.86.49a1,1,0,0,0-.33,1.46,14.08,14.08,0,0,0,3.69,3.69,1,1,0,0,0,1.46-.33l.49-.86A1,1,0,0,1,16.33,13a10.74,10.74,0,0,0,3.78,1A1,1,0,0,1,21,15Z" style="fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2;"></path></svg>
                                    Appeler
                                </a>

                                                                    <a href="https://www.facebook.com/jazzclub05/"
                                       target="_blank"
                                       rel="noopener"
                                       class="tle05-event-detail__btn tle05-event-detail__btn--outline">
                                        <svg fill="currentColor" width="20px" height="20px" viewbox="-2 -2 24 24" xmlns="http://www.w3.org/2000/svg" preserveaspectratio="xMinYMin" class="mr-2"><path d='M2.252 8A8.014 8.014 0 0 0 2 10c0 .69.088 1.36.252 2H5.1a19.83 19.83 0 0 1 0-4H2.252zm.818-2h2.346c.266-1.217.65-2.307 1.121-3.214A8.035 8.035 0 0 0 3.07 6zm14.678 2H14.9a19.83 19.83 0 0 1 0 4h2.848c.164-.64.252-1.31.252-2s-.088-1.36-.252-2zm-.818-2a8.035 8.035 0 0 0-3.467-3.214c.472.907.855 1.997 1.121 3.214h2.346zM7.112 8A17.763 17.763 0 0 0 7 10c0 .685.038 1.355.112 2h5.776a17.763 17.763 0 0 0 0-4H7.112zm.358-2h5.06a10.758 10.758 0 0 0-.783-2.177C11.119 2.568 10.447 2 10 2c-.448 0-1.119.568-1.747 1.823-.315.632-.58 1.367-.783 2.177zm-4.4 8a8.035 8.035 0 0 0 3.467 3.214c-.472-.907-.855-1.997-1.121-3.214H3.07zm13.86 0h-2.346c-.266 1.217-.65 2.307-1.121 3.214A8.035 8.035 0 0 0 16.93 14zm-9.46 0c.203.81.468 1.545.783 2.177C8.881 17.432 9.553 18 10 18c.448 0 1.119-.568 1.747-1.823.315-.632.58-1.367.783-2.177H7.47zM10 20C4.477 20 0 15.523 0 10S4.477 0 10 0s10 4.477 10 10-4.477 10-10 10z' /></svg>
                                        Voir le site
                                    </a>
                                
                                <a href="https://www.google.com/maps/search/?api=1&query=La%20bille%20Noire%20Rue%20Dr%20Ayasse%2005000%20GAP"
                                   target="_blank"
                                   rel="noopener"
                                   class="tle05-event-detail__btn tle05-event-detail__btn--outline">
                                    <svg fill="currentColor" width="20px" height="20px" viewbox="-1.5 -1 24 24" xmlns="http://www.w3.org/2000/svg" preserveaspectratio="xMinYMin" class="mr-2"><path d='M18.913 2.9L2.632 9.226l4.829 2.006a5.767 5.767 0 0 1 3.118 3.119l2.006 4.828L18.913 2.9zm1.847.682l-6.328 16.281c-.4 1.03-1.551 1.557-2.571 1.18a1.923 1.923 0 0 1-1.11-1.067l-2.007-4.83a3.845 3.845 0 0 0-2.079-2.078l-4.828-2.006C.833 10.645.375 9.486.814 8.472A2.05 2.05 0 0 1 1.949 7.38L18.23 1.052a1.945 1.945 0 0 1 2.53 2.53z'/></svg>
                                    Itinéraire
                                </a>
                            </div>

                        </div>
                    </div>

                </div>
            </div>

            <div class="row tle05-event-detail__layout">

                                <div class="col-12 col-lg-8">

                    <section class="tle05-event-detail__card">
                        <div class="tle05-event-detail__section-heading">
                            <span class="tle05-event-detail__section-icon">
                                <svg width="24" height="24" viewbox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4 4a2 2 0 0 1 2-2h8a1 1 0 0 1 .707.293l5 5A1 1 0 0 1 20 8v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4zm13.586 4L14 4.414V8h3.586zM12 4H6v16h12V10h-5a1 1 0 0 1-1-1V4zm-4 9a1 1 0 0 1 1-1h6a1 1 0 1 1 0 2H9a1 1 0 0 1-1-1zm0 4a1 1 0 0 1 1-1h6a1 1 0 1 1 0 2H9a1 1 0 0 1-1-1z" fill="currentColor"/></svg>
                            </span>
                            <h2>À propos de l'événement</h2>
                        </div>

                        <div class="tle05-event-detail__description">
                            <p data-path-to-node="5">Plongez dans l'ambiance authentique de notre <b data-path-to-node="5" data-index-in-node="45">Jam Session &amp; Ap&eacute;ro Jazz</b> o&ugrave; les planches de charcuterie et de fromage sont aussi savoureuses que la musique live.</p>
<p data-path-to-node="6"><b data-path-to-node="6" data-index-in-node="3">Gap | La Bille Noire</b></p>
<p data-path-to-node="7"><b data-path-to-node="7" data-index-in-node="0">L&rsquo;horaire de votre &eacute;vasion :</b> 🕒 <b data-path-to-node="7" data-index-in-node="32">19h00 :</b> Ap&eacute;ro &amp; Planches gourmandes 🎶 <b data-path-to-node="7" data-index-in-node="71">19h30 (environ) :</b> Jam Session Live 💃 <b data-path-to-node="7" data-index-in-node="109">Toute la soir&eacute;e :</b> Piste de danse Swing ouverte !</p>
<p data-path-to-node="8">C&rsquo;est authentique, c&rsquo;est intime, et c&rsquo;est <b data-path-to-node="8" data-index-in-node="42">entr&eacute;e libre</b>.</p>
<p data-path-to-node="9"><b data-path-to-node="9" data-index-in-node="0">⚠️ Mais attention, les planches partent comme des petits pains !</b> La mascotte n&deg;8 vous fait un clin d'&oelig;il, suivez son conseil.</p>
<p data-path-to-node="10"><b data-path-to-node="10" data-index-in-node="0">📞 R&eacute;servation (fortement) conseill&eacute;e pour vos planches : 04 92 51 71 85</b></p>
<p data-path-to-node="11">On se voit vendredi !</p>
<p data-path-to-node="12">#JazzGap #JamSession #AperoJazz #Gap05 #LaBilleNoire #SwingDance #WeekEndGap #JazzClb</p>
                        </div>
                    </section>

                    
                    <section class="tle05-event-detail__card tle05-event-detail__map-card">
                        <div class="tle05-event-detail__section-heading">
                            <span class="tle05-event-detail__section-icon">
                                <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" width="24" height="24" aria-hidden="true">
                                    <path fill="currentColor" fill-rule="evenodd" clip-rule="evenodd" d="M12 22C12 22 18 16.3 18 11C18 7.686 15.314 5 12 5C8.686 5 6 7.686 6 11C6 16.3 12 22 12 22ZM12 13.5C13.381 13.5 14.5 12.381 14.5 11C14.5 9.619 13.381 8.5 12 8.5C10.619 8.5 9.5 9.619 9.5 11C9.5 12.381 10.619 13.5 12 13.5Z"/>
                                </svg>
                            </span>
                            <div>
                                <h2>Lieu</h2>
                                <p>
                                    La bille Noire Rue Dr Ayasse
                                    05000
                                    GAP
                                </p>
                            </div>
                        </div>

                        <div id="event-map" class="tle05-event-detail__map"></div>

                        <a href="https://www.google.com/maps/search/?api=1&query=La%20bille%20Noire%20Rue%20Dr%20Ayasse%2005000%20GAP"
                           target="_blank"
                           rel="noopener"
                           class="tle05-event-detail__map-link">
                            Ouvrir dans Google Maps
                        </a>
                    </section>

                </div>

                                <aside class="col-12 col-lg-4">
                    <div class="tle05-event-detail__sidebar">

                                                    <section class="tle05-event-detail__side-card">
                                <div class="tle05-event-detail__section-heading">
                                    <span class="tle05-event-detail__section-icon">
                                        <svg fill="currentColor" width="24" height="24" viewbox="0 0 35 35" xmlns="http://www.w3.org/2000/svg">
                                            <path d="M17.5,16.383a8.067,8.067,0,1,1,8.067-8.067A8.076,8.076,0,0,1,17.5,16.383Zm0-13.633a5.567,5.567,0,1,0,5.567,5.566A5.573,5.573,0,0,0,17.5,2.75Z"/>
                                            <path d="M31.477,34.75a1.25,1.25,0,0,1-1.23-1.037A12.663,12.663,0,0,0,17.5,22.852,12.663,12.663,0,0,0,4.753,33.713a1.25,1.25,0,0,1-2.464-.426A15.1,15.1,0,0,1,17.5,20.352,15.1,15.1,0,0,1,32.711,33.287a1.25,1.25,0,0,1-1.02,1.444A1.2,1.2,0,0,1,31.477,34.75Z"/>
                                        </svg>
                                    </span>
                                    <h2>Organisé par</h2>
                                </div>

                                <p class="tle05-event-detail__organizer-name">
                                    JAZZ CLUB 05
                                </p>

                                
                                                                                                    
                                                                    <a href="mailto:contact@lejazzclub.fr"
                                       class="tle05-event-detail__organizer-contact">
            <span class="tle05-event-detail__organizer-contact-icon">
                <i class="fa fa-envelope" aria-hidden="true"></i>
            </span>
                                        <span>contact@lejazzclub.fr</span>
                                    </a>
                                
                                <div class="tle05-event-detail__organizer-actions">
                                    <a href="#"
                                       rel="nofollow"
                                       data-table="professionnel"
                                       data-id="667349"
                                       class="tel tle05-event-detail__btn tle05-event-detail__btn--primary tle05-event-detail__btn--full">
                                        <i class="fa fa-phone mr-2" aria-hidden="true"></i>
                                        Appeler
                                    </a>

                                                                            <a href="https://www.facebook.com/jazzclub05/"
                                           target="_blank"
                                           rel="noopener"
                                           class="tle05-event-detail__btn tle05-event-detail__btn--outline">
                                            <svg fill="currentColor" width="20px" height="20px" viewbox="-2 -2 24 24" xmlns="http://www.w3.org/2000/svg" preserveaspectratio="xMinYMin" class="mr-2"><path d='M2.252 8A8.014 8.014 0 0 0 2 10c0 .69.088 1.36.252 2H5.1a19.83 19.83 0 0 1 0-4H2.252zm.818-2h2.346c.266-1.217.65-2.307 1.121-3.214A8.035 8.035 0 0 0 3.07 6zm14.678 2H14.9a19.83 19.83 0 0 1 0 4h2.848c.164-.64.252-1.31.252-2s-.088-1.36-.252-2zm-.818-2a8.035 8.035 0 0 0-3.467-3.214c.472.907.855 1.997 1.121 3.214h2.346zM7.112 8A17.763 17.763 0 0 0 7 10c0 .685.038 1.355.112 2h5.776a17.763 17.763 0 0 0 0-4H7.112zm.358-2h5.06a10.758 10.758 0 0 0-.783-2.177C11.119 2.568 10.447 2 10 2c-.448 0-1.119.568-1.747 1.823-.315.632-.58 1.367-.783 2.177zm-4.4 8a8.035 8.035 0 0 0 3.467 3.214c-.472-.907-.855-1.997-1.121-3.214H3.07zm13.86 0h-2.346c-.266 1.217-.65 2.307-1.121 3.214A8.035 8.035 0 0 0 16.93 14zm-9.46 0c.203.81.468 1.545.783 2.177C8.881 17.432 9.553 18 10 18c.448 0 1.119-.568 1.747-1.823.315-.632.58-1.367.783-2.177H7.47zM10 20C4.477 20 0 15.523 0 10S4.477 0 10 0s10 4.477 10 10-4.477 10-10 10z' /></svg>
                                            Voir le site
                                        </a>
                                                                    </div>
                            </section>
                        
                        <section class="tle05-event-detail__side-card tle05-event-detail__side-card--soft" style="background-color: color-mix(in srgb, var(--color-primary) 10%, transparent);">
                            <div class="tle05-event-detail__section-heading">
                                <span class="tle05-event-detail__section-icon">
                                    <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewbox="0 0 32 32" enable-background="new 0 0 32 32" xml:space="preserve" width="24" height="24">
                                        <rect x="15" y="14" width="2" height="8" fill="currentColor"/>
                                        <rect x="15" y="10" width="2" height="2" fill="currentColor"/>
                                        <circle fill="none" stroke="currentColor" stroke-width="2" stroke-miterlimit="10" cx="16" cy="16" r="12"/>
                                    </svg>
                                </span>
                                <h2>Informations pratiques</h2>
                            </div>

                            <div class="tle05-event-detail__info-list">

                                <div class="tle05-event-detail__info-row">
                                    <span style="color: var(--color-primary);">Dates</span>
                                    <p style="color: var(--color-primary);">
                                        <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" width="16" height="16" fill="currentColor" style="margin-right: 6px; vertical-align: text-top;"><path d="M7 2.5a1 1 0 0 1 1 1V5h8V3.5a1 1 0 1 1 2 0V5h1.5A2.5 2.5 0 0 1 22 7.5v11A2.5 2.5 0 0 1 19.5 21h-15A2.5 2.5 0 0 1 2 18.5v-11A2.5 2.5 0 0 1 4.5 5H6V3.5a1 1 0 0 1 1-1ZM4 10v8.5a.5.5 0 0 0 .5.5h15a.5.5 0 0 0 .5-.5V10H4Z"/></svg>
                                        Du Vendredi 22 mai 19h00
                                                                                    <br>au Vendredi 22 mai 23h00
                                                                            </p>
                                </div>

                                <div class="tle05-event-detail__info-row">
                                    <span style="color: var(--color-primary);">Tarif</span>
                                    <p style="color: var(--color-primary);">
                                        <svg fill="currentColor" width="16" height="16" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" style="margin-right: 6px; vertical-align: text-top;">
                                          <path d="M3,5.5 C3,4.11928813 4.11928813,3 5.5,3 L11.5,3 C11.6326082,3 11.7597852,3.05267842 11.8535534,3.14644661 L20.1564971,11.4493903 C21.2890176,12.5819108 21.2890176,14.4180892 20.1564971,15.5506097 L15.5506097,20.1564971 C14.4180892,21.2890176 12.5819108,21.2890176 11.4493903,20.1564971 L3.14644661,11.8535534 C3.05267842,11.7597852 3,11.6326082 3,11.5 L3,5.5 Z M11.2928932,4 L5.5,4 C4.67157288,4 4,4.67157288 4,5.5 L4,11.2928932 L12.1564971,19.4493903 C12.8984933,20.1913865 14.1015067,20.1913865 14.8435029,19.4493903 L19.4493903,14.8435029 C20.1913865,14.1015067 20.1913865,12.8984933 19.4493903,12.1564971 L11.2928932,4 Z M8,7 C7.44771525,7 7,7.44771525 7,8 C7,8.55228475 7.44771525,9 8,9 C8.55228475,9 9,8.55228475 9,8 C9,7.44771525 8.55228475,7 8,7 Z M8,6 C9.1045695,6 10,6.8954305 10,8 C10,9.1045695 9.1045695,10 8,10 C6.8954305,10 6,9.1045695 6,8 C6,6.8954305 6.8954305,6 8,6 Z"/>
                                        </svg>
                                                                                    gratuit
                                                                            </p>
                                </div>

                                <div class="tle05-event-detail__info-row">
                                    <span style="color: var(--color-primary);">Catégories</span>
                                    <p style="color: var(--color-primary);">
                                        <svg fill="currentColor" width="16" height="16" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" style="margin-right: 6px; vertical-align: text-top; transform: scaleX(-1);">
                                          <path d="M3,5.5 C3,4.11928813 4.11928813,3 5.5,3 L11.5,3 C11.6326082,3 11.7597852,3.05267842 11.8535534,3.14644661 L20.1564971,11.4493903 C21.2890176,12.5819108 21.2890176,14.4180892 20.1564971,15.5506097 L15.5506097,20.1564971 C14.4180892,21.2890176 12.5819108,21.2890176 11.4493903,20.1564971 L3.14644661,11.8535534 C3.05267842,11.7597852 3,11.6326082 3,11.5 L3,5.5 Z M11.2928932,4 L5.5,4 C4.67157288,4 4,4.67157288 4,5.5 L4,11.2928932 L12.1564971,19.4493903 C12.8984933,20.1913865 14.1015067,20.1913865 14.8435029,19.4493903 L19.4493903,14.8435029 C20.1913865,14.1015067 20.1913865,12.8984933 19.4493903,12.1564971 L11.2928932,4 Z M8,7 C7.44771525,7 7,7.44771525 7,8 C7,8.55228475 7.44771525,9 8,9 C8.55228475,9 9,8.55228475 9,8 C9,7.44771525 8.55228475,7 8,7 Z M8,6 C9.1045695,6 10,6.8954305 10,8 C10,9.1045695 9.1045695,10 8,10 C6.8954305,10 6,9.1045695 6,8 C6,6.8954305 6.8954305,6 8,6 Z"/>
                                        </svg>
                                                                                    Sortir,                                                                                     Nos suggestions,                                                                                     Se divertir,                                                                                     En Famille - Pour les Enfants                                                                            </p>
                                </div>

                                                                    <div class="tle05-event-detail__info-row">
                                        <span style="color: var(--color-primary);">Site web</span>
                                        <p style="color: var(--color-primary);">
                                            <svg fill="currentColor" width="16" height="16" viewbox="-2 -2 24 24" xmlns="http://www.w3.org/2000/svg" preserveaspectratio="xMinYMin" style="margin-right: 6px; vertical-align: text-top;"><path d='M2.252 8A8.014 8.014 0 0 0 2 10c0 .69.088 1.36.252 2H5.1a19.83 19.83 0 0 1 0-4H2.252zm.818-2h2.346c.266-1.217.65-2.307 1.121-3.214A8.035 8.035 0 0 0 3.07 6zm14.678 2H14.9a19.83 19.83 0 0 1 0 4h2.848c.164-.64.252-1.31.252-2s-.088-1.36-.252-2zm-.818-2a8.035 8.035 0 0 0-3.467-3.214c.472.907.855 1.997 1.121 3.214h2.346zM7.112 8A17.763 17.763 0 0 0 7 10c0 .685.038 1.355.112 2h5.776a17.763 17.763 0 0 0 0-4H7.112zm.358-2h5.06a10.758 10.758 0 0 0-.783-2.177C11.119 2.568 10.447 2 10 2c-.448 0-1.119.568-1.747 1.823-.315.632-.58 1.367-.783 2.177zm-4.4 8a8.035 8.035 0 0 0 3.467 3.214c-.472-.907-.855-1.997-1.121-3.214H3.07zm13.86 0h-2.346c-.266 1.217-.65 2.307-1.121 3.214A8.035 8.035 0 0 0 16.93 14zm-9.46 0c.203.81.468 1.545.783 2.177C8.881 17.432 9.553 18 10 18c.448 0 1.119-.568 1.747-1.823.315-.632.58-1.367.783-2.177H7.47zM10 20C4.477 20 0 15.523 0 10S4.477 0 10 0s10 4.477 10 10-4.477 10-10 10z' /></svg>
                                            <a href="https://www.facebook.com/jazzclub05/" target="_blank" rel="noopener" style="color: var(--color-primary); text-decoration: underline;">
                                                https://www.facebook.com/jazzclub05/
                                            </a>
                                        </p>
                                    </div>
                                
                            </div>
                        </section>

                    </div>
                </aside>

            </div>
        </div>
    </div>

    <script src="/javascripts/fiche_pro.js?v=3"></script>

    <script>
        const address = "La bille Noire Rue Dr Ayasse";
        const city = "GAP";
        const postalCode = "05000";
        const fullAddress = address + " " + postalCode + " " + city;

        try {
            const map = L.map('event-map').setView([44.5667, 6.0833], 10);

            
            L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
                attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
            }).addTo(map);
            

            const geocodeUrl = "https://nominatim.openstreetmap.org/search?format=json&q=" + encodeURIComponent(fullAddress);

            fetch(geocodeUrl)
                .then(response => response.json())
                .then(data => {
                    if (data && data.length > 0) {
                        const lat = parseFloat(data[0].lat);
                        const lon = parseFloat(data[0].lon);

                        map.setView([lat, lon], 14);

                        const marker = L.marker([lat, lon]).addTo(map);
                        marker.bindPopup(fullAddress);
                    } else {
                        const simplifiedAddress = postalCode + " " + city;

                        return fetch("https://nominatim.openstreetmap.org/search?format=json&q=" + encodeURIComponent(simplifiedAddress))
                            .then(response => response.json())
                            .then(data => {
                                if (data && data.length > 0) {
                                    const lat = parseFloat(data[0].lat);
                                    const lon = parseFloat(data[0].lon);

                                    map.setView([lat, lon], 13);

                                    const marker = L.marker([lat, lon]).addTo(map);
                                    marker.bindPopup(simplifiedAddress);
                                }
                            });
                    }
                })
                .catch(error => {
                    console.error("Erreur lors du géocodage:", error);
                });

        } catch (error) {
            console.error("Erreur lors de l'initialisation de la carte:", error);
        }

        // Script de réorganisation sur mobile (déplace la carte à la fin)
        document.addEventListener("DOMContentLoaded", function() {
            function handleMobileLayout() {
                const mapCard = document.querySelector('.tle05-event-detail__map-card');
                const layoutRow = document.querySelector('.tle05-event-detail__layout');
                const leftCol = document.querySelector('.tle05-event-detail__layout > .col-12.col-lg-8');
                
                if (!mapCard || !layoutRow || !leftCol) return;

                if (window.innerWidth < 992) {
                    // Si on est sur mobile et que la carte est encore dans la colonne de gauche, on la déplace à la racine de la row
                    if (mapCard.parentElement === leftCol) {
                        const wrapper = document.createElement('div');
                        wrapper.className = 'col-12 mobile-map-wrapper';
                        wrapper.appendChild(mapCard);
                        layoutRow.appendChild(wrapper);
                    }
                } else {
                    // Si on repasse sur desktop, on remet la carte à sa place d'origine
                    const wrapper = document.querySelector('.mobile-map-wrapper');
                    if (wrapper && mapCard.parentElement === wrapper) {
                        leftCol.appendChild(mapCard);
                        wrapper.remove();
                    }
                }
            }

            // Exécuter au chargement et lors du redimensionnement
            handleMobileLayout();
            window.addEventListener('resize', handleMobileLayout);
        });
    </script>


</div><!-- Fin site espace -->
</main>

    <footer class="page-footer">
    <div class="container">
                    <div class="row nomargin pdp-text">
                <div class="col-12 col-md-8">
                    <h4>Nos services</h4>
                    <div class="row">
                        <div class="col-12 col-md-4">
                            <ul>
                                <li><a href="/docs/qui-sommes-nous.php" class="pdp_orange white-text" id="pdp_nous"
                                       title="Qui sommes nous ?">Qui sommes-nous ?</a></li>
                                <li><a href="/front/recrutement" title="Recrutement">Rejoignez-nous !</a></li>
                                                                <li><a href="/prix/" title="Voir">prix</a>
                                </li>
                                                            </ul>
                        </div>
                        <div class="col-12 col-md-4">
                            <ul>
                                                                                                                                                                <li><a rel="nofollow" href="/docs/cgv.php" title="Mentions légales et CGV">Mentions l&eacute;gales
                                        et CGV</a></li>


                            </ul>
                        </div>

                        <div class="col-12 col-md-4">
                            <ul>
                                <li><a href="/docs/partenaires.php">Partenaires</a></li>

                                                            </ul>
                        </div>
                    </div>
                </div>
                <div class="col-12 col-md-4 text-center linksocial">

                    <ul class="col s2 offset-m4 offset-s2">
                                                                            <li><a target="_blank" rel="nofollow" href="https://www.facebook.com/toutle05"
                                   title="Voir la page facebook">
                                    <span class="fa-stack fa-lg">
                                        <i class="fa fa-circle fa-stack-2x"></i>
                                        <i class="fa fa-facebook facebook-color fa-stack-1x fa-inverse"></i>
                                    </span>
                                </a></li>
                        
                    </ul>

                </div>

            </div>
            <!-- lien_partage-->
                            <div class="footer-copyright">
                <div class="container text-center">
                    &copy; 2007-2026 <span
                            class="hide-on-small-only">Toutle05</span>
                                    </div>
            </div>
            <!-- Mentions Légales-->
            </div>
</footer><!-- Fin footer -->


<noscript>
    <link href='/css/style-pages-pro.css' rel='stylesheet' type='text/css'>
    <link href="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.13.2/themes/base/jquery-ui.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
</noscript>

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.lazyload/1.9.1/jquery.lazyload.min.js" defer></script>
<script>
    function loadStyleSheet(src) {
        console.log("Loading stylesheet: " + src);
        if (document.createStyleSheet) {
            document.createStyleSheet(src);
        } else {
            $("head").append($("<link rel='stylesheet' href='" + src + "' type='text/css' media='screen' />"));
        }
    };
    
    window.addEventListener("load", function() {
        loadStyleSheet('https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.13.2/themes/base/jquery-ui.min.css');
        loadStyleSheet('https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css');
        if (jQuery().lazyload) {
            $("img.lazy").lazyload({
                threshold: 400
            });
            setTimeout(function () {
                $("img.lazyInstant").each(function () {
                    $(this).attr("src", $(this).data("original"));
                });
            }, 300)
        }
    });
    
</script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://api.meilleur-artisan.com/gtag/js?id=G-6RV9TGENJ8"></script>
<script>
    let user_data;
        //add fbc to user_data
    //user_data.fbc = '';
    
    window.dataLayer = window.dataLayer || [];

    let trackingMaFooter = new TrackingMa();

    function gtag() {
        dataLayer.push(arguments);
    }
    
    gtag('config', 'G-6RV9TGENJ8', {
        'transport_url': 'https://api.meilleur-artisan.com',
        'first_party_collection': true, //to send user_data
        user_data: user_data,
        test_event_code: trackingMaFooter.test_event_code
    });
    gtag('js', new Date()); //send the pageview event
</script>

<!-- End Google Analytics -->


</body>
</html>