{"version":3,"sources":["scripts.js","lightgallery.min.js","navigation.js","wow.min.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AC/XA;AACA;AACA;AACA;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AC9GA;AACA","file":"global.min.js","sourcesContent":["\njQuery(function($) {\n\n // /////////// //\n // JS : GALERIE D'IMAGE //\n // /////////// //\n $(\"#lightgallery\").lightGallery({\n subHtmlSelectorRelative: true\n }); \n\n\n\n $(\".wysiwyg .gallery\").lightGallery({\n selector:'a',\n subHtmlSelectorRelative: true\n }); \n\n\n\n\n // WOW EFFECT //\n var wow = new WOW(\n {\n boxClass: 'wow', // animated element css class (default is wow)\n animateClass: 'animated', // animation css class (default is animated)\n offset: 0, // distance to the element when triggering the animation (default is 0)\n mobile: false, // trigger animations on mobile devices (default is true)\n live: true, // act on asynchronously loaded content (default is true)\n callback: function(box) {\n // the callback is fired every time an animation is started\n // the argument that is passed in is the DOM node being animated\n },\n scrollContainer: null // optional scroll container selector, otherwise use window\n }\n );\n wow.init();\n\n\n\n \n //alert('a'); // comprends pas pourquoi on voit deux fois ce message.\n\n\n ////////////////////////\n ///// VAR ////////////\n /////////////////////\n\n var $dest_sub_menu, l_window, $active_menu,LARGEUR_MAX_MOBILE;\n l_window = parseInt($(window).width());\n LARGEUR_MAX_MOBILE = 1023;\n var header = $('#masthead');\n \n /* Transition des pages */\n $('.header-sub-link, #footer-menu a, .OtherPage a, .link_espace_adherent').click(function(e){\n $('body').addClass('to_transition_page');\n\n var link = $(this).attr(\"href\");\n setTimeout(function() {\n window.location.href = link;\n },300);\n e.preventDefault();\n });\n\n\n\n // $('.link_espace_adherent').click(function(e){\n // $('body').addClass('to_transition_adherent');\n // var link = $(this).attr(\"href\");\n // setTimeout(function() {\n // window.location.href = link;\n // }, 300);\n\n // e.preventDefault();\n\n // });\n\n \n /*************/\n /* CLICK SUR BTN ESPACE ADHERENT = TRANSITION VERS PAGE = ATTENTE EN JS */\n /*************/\n\n\n /*************/\n /* OUVERTURE / FERMETURE DU MENU */\n /*************/\n $('.menu-toggle').click(function(e){\n if($(this).attr('aria-expanded') == 'false'){\n $(this).find('.txt').text('Fermer');\n $active_menu = '';\n $dest_sub_menu = $('#smenu-menu');\n active_sub_menu($active_menu, $dest_sub_menu);\n $(this).attr('aria-expanded', \"true\");\n $(\"body\").addClass('toggled-menu-desktop');\n\n }else{\n $(this).find('.txt').text('Menu');\n $(this).attr('aria-expanded', \"false\");\n disable_sub_menu('', $('#smenu-menu'));\n $(\"body\").removeClass('toggled-menu-desktop');\n }\n e.preventDefault();\n });\n\n\n// FIN VAR ////\n \n $( \"#nav-main .container_menu--inner .header-nav-item.toDoHover\" ).mouseover(function() {\n $active_menu = $(this);\n $dest_sub_menu = $('.header-sub[data-link-id=\"'+$(this).attr('data-link-id')+'\"]'); \n active_sub_menu($active_menu, $dest_sub_menu);\n });\n\n\n $( \"#nav-main .container_menu--inner .header-nav-item.toDoHover\" ).mouseleave(function(e) {\n console.log('On quitte l\\'item');\n if($(e.relatedTarget).parents('.header-subs').length) {\n \n }else{\n disable_sub_menu($active_menu, $dest_sub_menu);\n }\n });\n\n /// Ajout code pour sortir des sous-menu actif\n $( \".header-sub\" ).mouseleave(function(e) {\n disable_sub_menu($active_menu, $dest_sub_menu);\n //if(header_sub_destination.hasClass('active')) disable_sub_menu_dest();\n });\n\n\n // Ajout pour fermer le menu si on clique sur le sous-menu avec la croix\n $('body').on('click', \".header-sub.active\", function(e) {\n console.log($(e.target));\n console.log($(e.relatedTarget));\n if (!$(e.target).parent().is('a')) {\n disable_sub_menu($active_menu, $dest_sub_menu);\n console.log('here');\n e.stopPropagation();\n e.preventDefault();\n }\n \n });\n\n function to_reinit_main_menu(){\n $('.menu-toggle').find('.txt').text('Menu');\n $('.menu-toggle').attr('aria-expanded', \"false\");\n $(\"body\").removeClass('toggled-menu-desktop');\n }\n function active_sub_menu($active_menu,$dest_sub_menu){\n\n if($('.menu-toggle').attr('aria-expanded') == 'true'){\n disable_sub_menu('', $('#smenu-menu'));\n }\n \n $('#nav-main .container_menu--inner .header-nav-item.toDoHover').removeClass('is-hover');\n $('.header-sub').removeClass('active');\n if($active_menu){\n $active_menu.addClass('is-hover');\n } \n \n $dest_sub_menu.addClass('active');\n }\n\n function disable_sub_menu($active_menu,$dest_sub_menu){\n if($active_menu){\n $active_menu.removeClass('is-hover');\n }else{\n to_reinit_main_menu();\n }\n \n $dest_sub_menu.removeClass('active');\n // header.removeClass('bg_for_hover');\n }\n\n\n\n /* ***************************\n APPARITION DE LA NAV A DROITE\n ******************************** */\n if($(\".ClassicPage-Nav\").length){\n var pos_blockContent = parseInt($('.ClassicPage-Bottom').position().top);\n var pos_nav = parseInt($('.ClassicPage-Nav').height() / 2);\n var h_header = 111; //$(\"#masthead\").height();\n } \n //pos_nav sert a tchi\n function to_appaer_nav(){\n\n if ($(window).scrollTop() > (pos_blockContent - h_header - pos_nav)){\n $('.ClassicPage-Nav').addClass('visible');\n }else{\n $('.ClassicPage-Nav').removeClass('visible');\n }\n\n }\n\n\n $( window ).resize(function() {\n if($(\".ClassicPage-Nav\").length){\n h_header = $(\"#masthead\").height();\n pos_blockContent = parseInt($('.ClassicPage-Bottom').position().top);\n pos_nav = parseInt($('.ClassicPage-Nav').height() / 2);\n }\n });\n\n\n // Cache selectors\n var lastId,\n topMenu = $(\"#masthead\"),\n $SubMenuLink = $(\"#sub_menu\"),\n topMenuHeight = topMenu.outerHeight()+15,\n // All list menuItems\n menuItems = $SubMenuLink.find(\"a\"),\n // Anchors corresponding to menu items\n scrollItems = menuItems.map(function(){\n var item = $($(this).attr(\"href\"));\n if (item.length) {return item;}\n });\n \n // Bind click handler to menu items\n // so we can get a fancy scroll animation\n menuItems.click(function(e){\n var href = $(this).attr(\"href\");\n var variable = 0;\n var offsetTop = href === \"#\" ? 0 : $(href).offset().top-topMenuHeight+1-variable;\n $('html, body').stop().animate({ \n scrollTop: offsetTop\n }, 500);\n \n \n e.preventDefault();\n });\n\n // Bind to scroll\n $(window).scroll(function(){\n // Get container scroll position\n var fromTop = $(this).scrollTop();\n \n // Get id of current scroll item\n var cur = scrollItems.map(function(){\n variable_top = 10;\n if ($(this).offset().top - topMenuHeight - variable_top < fromTop)\n {\n\n return this;\n }\n });\n // Get the id of the current element\n cur = cur[cur.length-1];\n var id = cur && cur.length ? cur[0].id : \"section_1\";\n \n if (lastId !== id) {\n lastId = id;\n // Set/remove active class\n menuItems.removeClass(\"active\");\n menuItems.filter(\"a[href='#\"+id+\"']\").addClass(\"active\");\n }else{\n // console.log('here' + id);\n // menuItems.filter(\"a[href='#section_1']\").addClass(\"active\");\n } \n });\n\n\n var other_link = $('.link_to_scroll, .btn-loupe > a');\n other_link.click(function(e){\n \n var href = $(this).attr(\"href\");\n\n if(href.indexOf('/') !== -1){\n var array_href = href.split(/[/]/);\n href = array_href[array_href.length-1];\n }\n \n var offsetTop = href === \"#\" ? 0 : $(href).offset().top-topMenuHeight+59; // difference entre menu ouvert et fermé... 44 + 15 \n $('html, body').stop().animate({ \n scrollTop: offsetTop\n }, 500);\n e.preventDefault();\n });\n\n\n\n /* ***************************\n SCROLL FIXED MENU \n ******************************** */\n $(window).scroll(function () {\n action_on_scroll();\n if($(\".ClassicPage-Nav\").length){\n to_appaer_nav();\n }\n });\n\n function action_on_scroll(){\n\n l_window = parseInt($(window).width());\n h_header = $(\"#masthead\").height();\n\n if (l_window > LARGEUR_MAX_MOBILE){\n if ($(window).scrollTop() > h_header - 30){\n header.addClass(\"Masthead--sticky\");\n $(\"body\").addClass('header--sticky');\n }else{\n header.removeClass(\"Masthead--sticky\");\n $(\"body\").removeClass('header--sticky');\n }\n }\n }\n\n\n\n\n\n /* ***************** */\n /* ACCORDEON // Nottament pour la partie : Mon compte : documnet\n /* ***************** */\n\n //$('.accordion-section-content').hide();\n // ACCORDEON SECTION \n function close_accordion_section() {\n $('.AccordeonBloc .accordion-section-title').removeClass('active');\n $('.AccordeonBloc .accordion-section-content').slideUp(300).removeClass('open');\n $('.AccordeonBloc .Acc-Item_img').slideUp(300);\n }\n\n function init_accordeon(){\n $('.accordion-section-content').hide();\n //$('.accordion-section-content').parent().addClass('active');\n }\n init_accordeon();\n\n $('.accordion-section-title').click(function(e) {\n // Grab current anchor value\n var currentAttrValue = $(this).attr('href');\n \n $('.accordion-section-content[data-id!=\"'+currentAttrValue+'\"]').slideUp(300);\n $('.accordion-section-content[data-id!=\"'+currentAttrValue+'\"]').parent().removeClass('active'); \n\n \n if($(this).parent().parent().hasClass('active')) {\n \n // close_accordion_section();\n $('.accordion-section-content[data-id=\"'+currentAttrValue+'\"]').slideUp(300).removeClass('open');\n $(this).parent().parent().removeClass('active');\n\n // $('.Acc-Item_img[data-id=\"'+currentAttrValue+'\"]').slideUp(300).removeClass('open'); \n\n }else {\n // close_accordion_section();\n \n // Add active class to section title\n $(this).parent().parent().addClass('active');\n // Open up the hidden content panel\n $('.accordion-section-content[data-id=\"'+currentAttrValue+'\"]').slideDown(300).addClass('open'); \n \n }\n \n e.preventDefault();\n });\n // FIN ACCORDEON //\n ////////////////////\n\n\n\n\n\n\n // FORM CONTACT LABEL ///\n $( \".wpcf7-form input[type='text'],.wpcf7-form input[type='email'],.wpcf7-form textare\" ).click(function() {\n $( this ).parent().parent().addClass('focus');\n });\n\n $( \".wpcf7-form label.to_move\" ).click(function() {\n $( this ).parent().addClass('focus');\n });\n\n $( \".wpcf7-form input[type='text'],.wpcf7-form input[type='email'],.wpcf7-form textarea\" ).focus(function() {\n $( this ).parent().parent().addClass('focus');\n });\n\n $( \".wpcf7-form input[type='email'],.wpcf7-form input[type='text'],.wpcf7-form textarea\" ).each(function() {\n if($(this).val() != '') $( this ).parent().parent().addClass('focus');\n });\n\n\n\n });","/*! lightgallery - v1.6.12 - 2019-02-19\n* http://sachinchoolur.github.io/lightGallery/\n* Copyright (c) 2019 Sachin N; Licensed GPLv3 */\n!function(a,b){\"function\"==typeof define&&define.amd?define([\"jquery\"],function(a){return b(a)}):\"object\"==typeof module&&module.exports?module.exports=b(require(\"jquery\")):b(a.jQuery)}(this,function(a){!function(){\"use strict\";function b(b,d){if(this.el=b,this.$el=a(b),this.s=a.extend({},c,d),this.s.dynamic&&\"undefined\"!==this.s.dynamicEl&&this.s.dynamicEl.constructor===Array&&!this.s.dynamicEl.length)throw\"When using dynamic mode, you must also define dynamicEl as an Array.\";return this.modules={},this.lGalleryOn=!1,this.lgBusy=!1,this.hideBartimeout=!1,this.isTouch=\"ontouchstart\"in document.documentElement,this.s.slideEndAnimatoin&&(this.s.hideControlOnEnd=!1),this.s.dynamic?this.$items=this.s.dynamicEl:\"this\"===this.s.selector?this.$items=this.$el:\"\"!==this.s.selector?this.s.selectWithin?this.$items=a(this.s.selectWithin).find(this.s.selector):this.$items=this.$el.find(a(this.s.selector)):this.$items=this.$el.children(),this.$slide=\"\",this.$outer=\"\",this.init(),this}var c={mode:\"lg-slide\",cssEasing:\"ease\",easing:\"linear\",speed:600,height:\"100%\",width:\"100%\",addClass:\"\",startClass:\"lg-start-zoom\",backdropDuration:150,hideBarsDelay:6e3,useLeft:!1,closable:!0,loop:!0,escKey:!0,keyPress:!0,controls:!0,slideEndAnimatoin:!0,hideControlOnEnd:!1,mousewheel:!0,getCaptionFromTitleOrAlt:!0,appendSubHtmlTo:\".lg-sub-html\",subHtmlSelectorRelative:!1,preload:1,showAfterLoad:!0,selector:\"\",selectWithin:\"\",nextHtml:\"\",prevHtml:\"\",index:!1,iframeMaxWidth:\"100%\",download:!0,counter:!0,appendCounterTo:\".lg-toolbar\",swipeThreshold:50,enableSwipe:!0,enableDrag:!0,dynamic:!1,dynamicEl:[],galleryId:1};b.prototype.init=function(){var b=this;b.s.preload>b.$items.length&&(b.s.preload=b.$items.length);var c=window.location.hash;c.indexOf(\"lg=\"+this.s.galleryId)>0&&(b.index=parseInt(c.split(\"&slide=\")[1],10),a(\"body\").addClass(\"lg-from-hash\"),a(\"body\").hasClass(\"lg-on\")||(setTimeout(function(){b.build(b.index)}),a(\"body\").addClass(\"lg-on\"))),b.s.dynamic?(b.$el.trigger(\"onBeforeOpen.lg\"),b.index=b.s.index||0,a(\"body\").hasClass(\"lg-on\")||setTimeout(function(){b.build(b.index),a(\"body\").addClass(\"lg-on\")})):b.$items.on(\"click.lgcustom\",function(c){try{c.preventDefault(),c.preventDefault()}catch(a){c.returnValue=!1}b.$el.trigger(\"onBeforeOpen.lg\"),b.index=b.s.index||b.$items.index(this),a(\"body\").hasClass(\"lg-on\")||(b.build(b.index),a(\"body\").addClass(\"lg-on\"))})},b.prototype.build=function(b){var c=this;c.structure(),a.each(a.fn.lightGallery.modules,function(b){c.modules[b]=new a.fn.lightGallery.modules[b](c.el)}),c.slide(b,!1,!1,!1),c.s.keyPress&&c.keyPress(),c.$items.length>1?(c.arrow(),setTimeout(function(){c.enableDrag(),c.enableSwipe()},50),c.s.mousewheel&&c.mousewheel()):c.$slide.on(\"click.lg\",function(){c.$el.trigger(\"onSlideClick.lg\")}),c.counter(),c.closeGallery(),c.$el.trigger(\"onAfterOpen.lg\"),c.$outer.on(\"mousemove.lg click.lg touchstart.lg\",function(){c.$outer.removeClass(\"lg-hide-items\"),clearTimeout(c.hideBartimeout),c.hideBartimeout=setTimeout(function(){c.$outer.addClass(\"lg-hide-items\")},c.s.hideBarsDelay)}),c.$outer.trigger(\"mousemove.lg\")},b.prototype.structure=function(){var b,c=\"\",d=\"\",e=0,f=\"\",g=this;for(a(\"body\").append('
'),a(\".lg-backdrop\").css(\"transition-duration\",this.s.backdropDuration+\"ms\"),e=0;e