/**handles:fl-builder-layout-216**/
var wpAjaxUrl="https://www.tons-voisins.com/wp-admin/admin-ajax.php",flBuilderUrl="https://www.tons-voisins.com/wp-content/plugins/bb-plugin/",FLBuilderLayoutConfig={anchorLinkAnimations:{duration:1e3,easing:"swing",offset:100},paths:{pluginUrl:"https://www.tons-voisins.com/wp-content/plugins/bb-plugin/",wpAjaxUrl:"https://www.tons-voisins.com/wp-admin/admin-ajax.php"},breakpoints:{small:768,medium:992,large:1200},waypoint:{offset:80}};!function(m){"undefined"==typeof FLBuilderLayout&&(FLBuilderLayout={init:function(){FLBuilderLayout._destroy(),FLBuilderLayout._initClasses(),FLBuilderLayout._initBackgrounds(),FLBuilderLayout._initRowShapeLayerHeight(),0===m(".fl-builder-edit").length&&(FLBuilderLayout._initModuleAnimations(),FLBuilderLayout._initAnchorLinks(),FLBuilderLayout._initHash(),FLBuilderLayout._initForms(),FLBuilderLayout._reorderMenu())},refreshGalleries:function(i){var a=m(void 0===i?"body":i),e=a.find(".fl-mosaicflow-content"),i=a.find(".fl-gallery"),a=null;e&&(a=e.data("mosaicflow"))&&(a.columns=m([]),a.columnsHeights=[],e.data("mosaicflow",a),e.mosaicflow("refill")),i&&i.trigger("refreshWookmark")},refreshGridLayout:function(i){var a,i=m(void 0===i?"body":i).find(".masonry");i.length&&i.masonry("layout")},reloadSlider:function(i){var i=m(void 0===i?"body":i);0<i.find(".bx-viewport > div").length&&m.each(i.find(".bx-viewport > div"),function(i,a){setTimeout(function(){m(a).data("bxSlider").reloadSlider()},100)})},resizeAudio:function(i){var a,i=m(void 0===i?"body":i).find(".wp-audio-shortcode.mejs-audio"),e=null,t=null,o=null,l=400;i.length&&"undefined"!=typeof mejs&&i.each(function(){e=m(this),t=mejs.players[e.attr("id")],o=e.find(".mejs-controls .mejs-time-rail");var i=e.find(".mejs-inner"),a=e.find(".mejs-controls .mejs-time-total");void 0!==t&&(l=Math.ceil(.8*e.width()),i.length&&(o.css("width",l+"px!important"),t.options.autosizeProgress=!0,setTimeout(function(){t.setControlsSize()},50),e.find(".mejs-inner").css({visibility:"visible",height:"inherit"})))})},preloadAudio:function(i){var a=m(void 0===i?"body":i),i=a.closest(".fl-accordion-item"),a=a.find(".wp-audio-shortcode.mejs-audio");!i.hasClass("fl-accordion-item-active")&&a.find(".mejs-inner").length&&a.find(".mejs-inner").css({visibility:"hidden",height:0})},resizeSlideshow:function(){"undefined"!=typeof YUI&&YUI().use("node-event-simulate",function(i){i.one(window).simulate("resize")})},reloadGoogleMap:function(i){var a,i=m(void 0===i?"body":i).find('iframe[src*="google.com/maps"]');i.length&&i.attr("src",function(i,a){return a})},_destroy:function(){var i=m(window);i.off("scroll.fl-bg-parallax"),i.off("resize.fl-bg-video")},_isTouch:function(){return!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)},_isMobile:function(){return/Mobile|Android|Silk\/|Kindle|BlackBerry|Opera Mini|Opera Mobi|webOS/i.test(navigator.userAgent)},_initClasses:function(){var i=m("body"),a=navigator.userAgent;!i.hasClass("archive")&&0<m(".fl-builder-content-primary").length&&i.addClass("fl-builder"),FLBuilderLayout._isTouch()&&i.addClass("fl-builder-touch"),FLBuilderLayout._isMobile()&&i.addClass("fl-builder-mobile"),m(window).width()<FLBuilderLayoutConfig.breakpoints.small&&i.addClass("fl-builder-breakpoint-small"),m(window).width()>FLBuilderLayoutConfig.breakpoints.small&&m(window).width()<FLBuilderLayoutConfig.breakpoints.medium&&i.addClass("fl-builder-breakpoint-medium"),m(window).width()>FLBuilderLayoutConfig.breakpoints.medium&&m(window).width()<FLBuilderLayoutConfig.breakpoints.large&&i.addClass("fl-builder-breakpoint-large"),m(window).width()>FLBuilderLayoutConfig.breakpoints.large&&i.addClass("fl-builder-breakpoint-default"),-1<a.indexOf("Trident/7.0")&&-1<a.indexOf("rv:11.0")&&i.addClass("fl-builder-ie-11")},_initBackgrounds:function(){var i=m(window),a;0<m(".fl-row-bg-parallax").length&&!FLBuilderLayout._isMobile()&&(FLBuilderLayout._scrollParallaxBackgrounds(),FLBuilderLayout._initParallaxBackgrounds(),i.on("resize.fl-bg-parallax",FLBuilderLayout._initParallaxBackgrounds),i.on("scroll.fl-bg-parallax",FLBuilderLayout._scrollParallaxBackgrounds)),0<m(".fl-bg-video").length&&(FLBuilderLayout._initBgVideos(),FLBuilderLayout._resizeBgVideos(),a=null,i.on("resize.fl-bg-video",function(i){clearTimeout(a),a=setTimeout(function(){FLBuilderLayout._resizeBgVideos(i)},100)}))},_initParallaxBackgrounds:function(){m(".fl-row-bg-parallax").each(FLBuilderLayout._initParallaxBackground)},_initParallaxBackground:function(){var i=m(this),a=i.find("> .fl-row-content-wrap"),e=m(window).width(),t="",o={default:"",medium:"",responsive:""};o.default=i.data("parallax-image")||"",o.medium=i.data("parallax-image-medium")||o.default,o.responsive=i.data("parallax-image-responsive")||o.medium,e>FLBuilderLayoutConfig.breakpoints.medium?t="default":e>FLBuilderLayoutConfig.breakpoints.small&&e<=FLBuilderLayoutConfig.breakpoints.medium?t="medium":e<=FLBuilderLayoutConfig.breakpoints.small&&(t="responsive"),a.css("background-image","url("+o[t]+")"),i.data("current-image-loaded",t)},_scrollParallaxBackgrounds:function(){m(".fl-row-bg-parallax").each(FLBuilderLayout._scrollParallaxBackground)},_scrollParallaxBackground:function(){var i=m(window),a=m(this),e=a.find("> .fl-row-content-wrap"),t=a.data("parallax-speed"),o=e.offset(),t=-(i.scrollTop()-o.top)/t,a=null!=a.data("parallax-offset")?a.data("parallax-offset"):0,l;e.css("background-position","center "+(t-a)+"px")},_initBgVideos:function(){m(".fl-bg-video").each(FLBuilderLayout._initBgVideo)},_initBgVideo:function(){var i=m(this),a=i.data("width"),e=i.data("height"),t=i.data("mp4"),o=i.data("youtube"),l=i.data("vimeo"),n=i.data("mp4-type"),d=i.data("webm"),r=i.data("webm-type"),u=i.data("fallback"),s=i.data("loaded"),f=i.data("video-mobile"),c="",h=null,p=null,g=null;s||(h=m("<video autoplay loop muted playsinline></video>"),void 0!==u&&""!=u&&(h.attr("poster","data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"),h.css({backgroundImage:'url("'+u+'")',backgroundColor:"transparent",backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundPosition:"center center"})),void 0!==t&&""!=t&&((p=m("<source />")).attr("src",t),p.attr("type",n),h.append(p)),void 0!==d&&""!=d&&((g=m("<source />")).attr("src",d),g.attr("type",r),h.append(g)),!FLBuilderLayout._isMobile()||FLBuilderLayout._isMobile()&&"yes"==f?void 0!==o?FLBuilderLayout._initYoutubeBgVideo.apply(this):void 0!==l?FLBuilderLayout._initVimeoBgVideo.apply(this):i.append(h):(h.attr("src",""),i.append(h)),i.data("loaded",!0))},_initYoutubeBgVideo:function(){var e=m(this),i=e.data("video-id"),t=e.find(".fl-bg-video-player"),o=e.data("enable-audio"),l=e.find(".fl-bg-video-audio"),n=void 0!==e.data("start")?e.data("start"):0,n=void 0!==e.data("t")&&0===n?e.data("t"):n,d=void 0!==e.data("end")?e.data("end"):0,r=void 0!==e.data("loop")?e.data("loop"):1,u=0,s,f;i&&(fallback=e.data("fallback")||!1,fallback&&(e.find("iframe").remove(),fallbackTag=m("<div></div>"),fallbackTag.addClass("fl-bg-video-fallback"),fallbackTag.css("background-image","url("+e.data("fallback")+")"),fallbackTag.css("background-size","cover"),fallbackTag.css("transition","background-image 1s"),e.append(fallbackTag),f=!0),FLBuilderLayout._onYoutubeApiReady(function(a){setTimeout(function(){s=new a.Player(t[0],{videoId:i,events:{onReady:function(i){"no"===o||FLBuilderLayout._isMobile()?i.target.mute():"yes"===o&&i.target.isMuted&&i.target.unMute(),e.data("YTPlayer",s),FLBuilderLayout._resizeYoutubeBgVideo.apply(e),i.target.playVideo(),0<l.length&&!FLBuilderLayout._isMobile()&&l.on("click",{button:l,player:s},FLBuilderLayout._toggleBgVideoAudio)},onStateChange:function(i){1===i.data&&f&&m(".fl-bg-video-fallback").css("background-image","url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)"),u<4&&u++,1<u&&(-1===i.data||2===i.data)&&"yes"===o&&(s.mute(),s.playVideo(),l.show()),i.data===a.PlayerState.ENDED&&1===r&&(0<n?s.seekTo(n):s.playVideo())},onError:function(i){console.info("YT Error: "+i.data),FLBuilderLayout._onErrorYoutubeVimeo(e)}},playerVars:{playsinline:FLBuilderLayout._isMobile()?1:0,controls:0,showinfo:0,rel:0,start:n,end:d}})},1)}))},_onErrorYoutubeVimeo:function(i){if(fallback=i.data("fallback")||!1,!fallback)return!1;i.find("iframe").remove(),fallbackTag=m("<div></div>"),fallbackTag.addClass("fl-bg-video-fallback"),fallbackTag.css("background-image","url("+i.data("fallback")+")"),i.append(fallbackTag)},_onYoutubeApiReady:function(i){window.YT&&YT.loaded?i(YT):setTimeout(function(){FLBuilderLayout._onYoutubeApiReady(i)},350)},_initVimeoBgVideo:function(){var a=m(this),i=a.data("video-id"),e=a.find(".fl-bg-video-player"),t=a.data("enable-audio"),o=a.find(".fl-bg-video-audio"),i,l=a.outerWidth(),n=navigator.userAgent;"undefined"!=typeof Vimeo&&i&&(i=new Vimeo.Player(e[0],{id:i,loop:!0,title:!1,portrait:!1,background:!0,autopause:!1,muted:!0}),a.data("VMPlayer",i),"no"===t?i.setVolume(0):"yes"===t&&(-1<n.indexOf("Safari")||-1<n.indexOf("Chrome")||-1<n.indexOf("Firefox")?(i.setVolume(0),o.show()):i.setVolume(1)),i.play().catch(function(i){FLBuilderLayout._onErrorYoutubeVimeo(a)}),0<o.length&&o.on("click",{button:o,player:i},FLBuilderLayout._toggleBgVideoAudio))},_toggleBgVideoAudio:function(i){var a=i.data.player,e=i.data.button.find(".fl-audio-control");e.hasClass("fa-volume-off")?(e.removeClass("fa-volume-off").addClass("fa-volume-up"),i.data.button.find(".fa-times").hide(),"function"==typeof a.unMute?a.unMute():a.setVolume(1)):(e.removeClass("fa-volume-up").addClass("fa-volume-off"),i.data.button.find(".fa-times").show(),"function"==typeof a.unMute?a.mute():a.setVolume(0))},_videoBgSourceError:function(i){var a=m(i.target),e=a.closest(".fl-bg-video"),t=e.find("video"),o=e.data("fallback"),i="";a.remove(),t.find("source").length||""!==o&&((i=m("<div></div>")).addClass("fl-bg-video-fallback"),i.css("background-image","url("+o+")"),e.append(i),t.remove())},_resizeBgVideos:function(){m(".fl-bg-video").each(function(){FLBuilderLayout._resizeBgVideo.apply(this),0<m(this).parent().find("img").length&&m(this).parent().imagesLoaded(m.proxy(FLBuilderLayout._resizeBgVideo,this))})},_resizeBgVideo:function(){if(0!==m(this).find("video").length||0!==m(this).find("iframe").length){var i=m(this),a=i.outerHeight(),e=i.outerWidth(),t=i.find("video"),o=i.data("height"),l=i.data("width"),n=e,d=Math.round(o*e/l),r=0,u=0,s=i.find("iframe"),f=m(this).closest(".fl-row-bg-video").hasClass("fl-row-full-height"),c={top:"50%",left:"50%",transform:"translate(-50%,-50%)"};if(t.length){if(""===o||void 0===o||""===l||void 0===l)return t.css({left:"0px",top:"0px",width:n+"px"}),void t.on("loadedmetadata",FLBuilderLayout._resizeOnLoadedMeta);f||(d<a?(d=a,r=-(n-e)/2,n=o?Math.round(l*a/o):n):u=-(d-a)/2,c={left:r+"px",top:u+"px",height:d+"px",width:n+"px"}),t.css(c)}else s.length&&void 0!==i.data("youtube")&&FLBuilderLayout._resizeYoutubeBgVideo.apply(this)}},_resizeOnLoadedMeta:function(){var i=m(this),a=i.parent().outerHeight(),e=i.parent().outerWidth(),t=i[0].videoWidth,o=i[0].videoHeight,l=Math.round(o*e/t),n=e,d=0,r=0;l<a?(l=a,d=-((n=Math.round(t*a/o))-e)/2):r=-(l-a)/2,i.parent().data("width",t),i.parent().data("height",o),i.css({left:d+"px",top:r+"px",width:n+"px",height:l+"px"})},_resizeYoutubeBgVideo:function(){var i=m(this),a=i.outerWidth(),e=i.outerHeight(),t=i.data("YTPlayer"),o=t?t.getIframe():null,l,n="16:9".split(":"),i=n[0]/n[1],d,r,t=i<a/e,n=t?a:e*i,e=t?a/i:e;o&&m(o).width(n).height(e)},_initModuleAnimations:function(){void 0!==jQuery.fn.waypoint&&m(".fl-animation").each(function(){var i=m(this),a=i.offset().top,e=m(window).height(),t=m("body").height(),o,l="80%";FLBuilderLayoutConfig.waypoint.offset,l=FLBuilderLayoutConfig.waypoint.offset+"%",i.waypoint({offset:l=t-a<.2*e?"100%":l,handler:FLBuilderLayout._doModuleAnimation})})},_doModuleAnimation:function(){var i=void 0===this.element?m(this):m(this.element),a=parseFloat(i.data("animation-delay")),e=parseFloat(i.data("animation-duration"));isNaN(e)||i.css("animation-duration",e+"s"),!isNaN(a)&&0<a?setTimeout(function(){i.addClass("fl-animated")},1e3*a):setTimeout(function(){i.addClass("fl-animated")},1)},_initHash:function(){var i=window.location.hash.replace("#","").split("/").shift(),a=null,e=null,t=null,o=null,l=null;if(""!==i)try{0<(a=m("#"+i)).length&&(a.hasClass("fl-accordion-item")&&setTimeout(function(){a.find(".fl-accordion-button").trigger("click")},100),a.hasClass("fl-tabs-panel")&&setTimeout(function(){e=a.closest(".fl-tabs"),t=a.find(".fl-tabs-panel-label"),o=t.data("index"),(l=e.find(".fl-tabs-labels .fl-tabs-label[data-index="+o+"]"))[0].click(),FLBuilderLayout._scrollToElement(a)},100))}catch(i){}},_initAnchorLinks:function(){m("a").each(FLBuilderLayout._initAnchorLink)},_initAnchorLink:function(){var i=m(this),a=i.attr("href"),e=window.location,t=null,o=null,l=!1;if(void 0!==a&&-1<a.indexOf("#")&&i.closest("svg").length<1&&e.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&e.hostname==this.hostname)try{if(!(t=a.split("#").pop()))return;0<(o=m("#"+t)).length&&(l=o.hasClass("fl-row")||o.hasClass("fl-col")||o.hasClass("fl-module"),o.hasClass("fl-no-scroll")||!i.hasClass("fl-scroll-link")&&!l||m(i).on("click",FLBuilderLayout._scrollToElementOnLinkClick),o.hasClass("fl-accordion-item")&&m(i).on("click",FLBuilderLayout._scrollToAccordionOnLinkClick),o.hasClass("fl-tabs-panel")&&m(i).on("click",FLBuilderLayout._scrollToTabOnLinkClick))}catch(i){}},_scrollToElementOnLinkClick:function(i,a){var e=m("#"+m(this).attr("href").split("#").pop());FLBuilderLayout._scrollToElement(e,a),i.preventDefault()},_scrollToElement:function(i,a){var e=FLBuilderLayoutConfig.anchorLinkAnimations,t=0,o=m(window),l=m(document);0<i.length&&(t="fixed"===i.css("position")||"fixed"===i.parent().css("position")?i.position().top:i.offset().top>l.height()-o.height()?l.height()-o.height():i.offset().top-e.offset,m("html, body").animate({scrollTop:t},e.duration,e.easing,function(){void 0!==a&&a(),null!=i.attr("id")&&(history.pushState?history.pushState(null,null,"#"+i.attr("id")):window.location.hash=i.attr("id"))}))},_scrollToAccordionOnLinkClick:function(i){var a=m("#"+m(this).attr("href").split("#").pop()),e;0<a.length&&FLBuilderLayout._scrollToElementOnLinkClick.call(this,i,function(){a&&(a.find(".fl-accordion-button").trigger("click"),a=!1)})},_scrollToTabOnLinkClick:function(i){var a=m("#"+m(this).attr("href").split("#").pop()),e=null,t=null,o=null,l,e,o;0<a.length&&(e=a.closest(".fl-tabs"),o=a.find(".fl-tabs-panel-label"),tabIndex=o.data("index"),t=e.find(".fl-tabs-labels .fl-tabs-label[data-index="+tabIndex+"]"),o.is(":visible")?FLBuilderLayout._scrollToElementOnLinkClick.call(this,i,function(){a&&o.trigger(m.Event("click",{which:1}))}):(t[0].click(),FLBuilderLayout._scrollToElement(a)),i.preventDefault())},_initForms:function(){FLBuilderLayout._hasPlaceholderSupport||m(".fl-form-field input").each(FLBuilderLayout._initFormFieldPlaceholderFallback),m(".fl-form-field input").on("focus",FLBuilderLayout._clearFormFieldError)},_hasPlaceholderSupport:function(){var i;return"undefined"!=document.createElement("input").placeholder},_initFormFieldPlaceholderFallback:function(){var i=m(this),a=i.val(),e=i.attr("placeholder");"undefined"!=e&&""===a&&(i.val(e),i.on("focus",FLBuilderLayout._hideFormFieldPlaceholderFallback),i.on("blur",FLBuilderLayout._showFormFieldPlaceholderFallback))},_hideFormFieldPlaceholderFallback:function(){var i=m(this),a,e;i.val()==i.attr("placeholder")&&i.val("")},_showFormFieldPlaceholderFallback:function(){var i=m(this),a=i.val(),e=i.attr("placeholder");""===a&&i.val(e)},_clearFormFieldError:function(){var i=m(this);i.removeClass("fl-form-error"),i.siblings(".fl-form-error-message").hide()},_initRowShapeLayerHeight:function(){FLBuilderLayout._adjustRowShapeLayerHeight(),m(window).on("resize",FLBuilderLayout._adjustRowShapeLayerHeight)},_adjustRowShapeLayerHeight:function(){var i=m(".fl-builder-shape-layer");m(i).each(function(i){var a=m(this),e=m(a).find("svg"),t=e.height(),o;a.is(".fl-builder-shape-circle, .fl-builder-shape-dot-cluster, .fl-builder-shape-topography, .fl-builder-shape-rect")||m(e).css("height",Math.ceil(t))})},_string_to_slug:function(i){return i=i.replace(/^\s+|\s+$/g,""),regex=void 0===window._fl_string_to_slug_regex?new RegExp("[^a-zA-Z0-9'\":() !.,-_|]","g"):new RegExp("[^"+window._fl_string_to_slug_regex+"'\":() !.,-_|\\p{Letter}]","ug"),i=i.replace(regex,"").replace(/\s+/g," ")},_reorderMenu:function(){1<m("#wp-admin-bar-fl-builder-frontend-edit-link-default li").length&&m("#wp-admin-bar-fl-builder-frontend-duplicate-link").appendTo("#wp-admin-bar-fl-builder-frontend-edit-link-default").css("padding-top","5px").css("border-top","2px solid #1D2125").css("margin-top","5px")}},m(function(){FLBuilderLayout.init()}))}(jQuery);