/* PurVapor.ch - pv-ch-c-v1 - genere le 2026-10-03 - ne pas modifier a la main */ /* pv-badges-v1 */ try{ (function(){if(window.__pvBadges)return;window.__pvBadges=1; var HOUSE=/^(source alpine|les affranchis|n&vape|standard for ever|orishas|hors piste)$/i; var css=".pv-pills{display:flex;flex-wrap:wrap;gap:4px;margin:4px 0 2px}"+ ".pv-pill{display:inline-flex;align-items:center;gap:4px;height:20px;padding:0 8px;border-radius:999px;font:700 11px/20px Barlow,Arial,sans-serif;letter-spacing:.01em;text-transform:none;white-space:nowrap}"+ ".pv-pill-a{background:#E8F0EA;color:#24483A}"+ ".pv-pill-a:before{content:'';width:9px;height:9px;flex:none;background:currentColor;-webkit-mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 2 21h20z'/%3E%3C/svg%3E\") center/contain no-repeat;mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 2 21h20z'/%3E%3C/svg%3E\") center/contain no-repeat}"+ ".pv-pill-p{background:#EFE7FA;color:#4B2E7A}"+ "html body .pvp-tag.pvp-tag-s,html body .ListeProduitsItem-riboon.pv-rib-off{display:none!important}"+ "html body .pvp-tag.pvp-tag-b,html body .ListeProduitsItem-riboon.pv-rib-best.pv-rib-best{background:#1E5B45!important;color:#fff!important;border:0!important}"+ "html body .ListeProduitsItem-rating .rating-count.pv-rc{color:#4A5252!important;font-weight:600}"+ "html body .pvp-body .pv-pills.pv-pills{order:-1;margin:0 0 4px}html body #pvg .pvp-tag.pvp-tag{text-transform:uppercase;font-weight:800!important;letter-spacing:.2px!important}@media screen and (max-width:767px){html body #pvg .pvp-tag.pvp-tag{height:18px!important;line-height:12px!important;padding:3px 7px!important;font-size:11px!important}html body #pvg .pvp-media.pvp-media.pv-disc{aspect-ratio:auto!important;height:auto!important;padding:30px 0 6px!important;box-sizing:border-box!important}}"+ "html body .pvth-grid:has(.pvth-rb) .pvth-m{margin-top:26px!important}"+ "html body .pvth-c .pvth-rb.pvth-rb{top:-26px!important;left:0!important;height:18px!important;line-height:12px!important;padding:3px 7px!important;font-size:11px!important;font-weight:800!important;text-transform:uppercase;letter-spacing:.2px;border-radius:999px!important;white-space:nowrap}"+ "html body .pvth-c .pvth-rb.pv-rb-b{background:#1E5B45!important;color:#fff!important}html body .pvth-c .pvth-rb.pv-rb-n{background:#000!important;color:#fff!important}"+ "html body .pvth-c .pv-pills{margin:6px 0 2px}"; function addCss(){if(document.getElementById("pv-badges-css-v1"))return;var s=document.createElement("style");s.id="pv-badges-css-v1";s.textContent=css;document.head.appendChild(s)} function pill(c,t){var s=document.createElement("span");s.className="pv-pill "+c;s.textContent=t;return s} function run(){addCss();[].forEach.call(document.querySelectorAll(".ListeProduitsItem"),function(it){if(it.getAttribute("data-pv-b")||/pvx-item|encartPub/.test(it.className))return; var pvp=it.querySelector(".pvp");if(!pvp&&document.getElementById("pvcat-js")&&it.closest(".ListeProduits"))return;var bEl=it.querySelector(pvp?".pvp-brand":".ListeProduitsItem-marque");if(!bEl)return;it.setAttribute("data-pv-b","1"); var brand=bEl.textContent.replace(/\s+/g," ").trim();var a=it.querySelector("a[href]");var href=a?a.getAttribute("href"):"";var tEl=it.querySelector(".pvp-title,.ListeProduitsItem-title");var title=tEl?tEl.textContent:""; var best=/\btopVente\b/.test(it.className); if(pvp){var tags=pvp.querySelector(".pvp-tags");if(best){if(!tags){tags=document.createElement("div");tags.className="pvp-tags";var m=pvp.querySelector(".pvp-media");if(m)m.insertBefore(tags,m.querySelector(".pvp-gout"))}tags.innerHTML="";var sp=document.createElement("span");sp.className="pvp-tag pvp-tag-b";sp.textContent="Meilleure vente";tags.appendChild(sp)}} else{[].forEach.call(it.querySelectorAll(".ListeProduitsItem-riboon"),function(r){if(/s[\u00e9e]lection/i.test(r.textContent)||best)r.classList.add("pv-rib-off")});if(best){var box=it.querySelector(".ListeProduitsItem-content-riboon");if(box){var d=document.createElement("div");d.className="ListeProduitsItem-riboon pv-rib-best";d.textContent="Meilleure vente";box.insertBefore(d,box.firstChild)}} var rc=it.querySelector(".ListeProduitsItem-rating .rating-count");if(rc){var n=parseInt(rc.textContent.replace(/\D/g,""),10);if(n){rc.textContent=n+" avis";rc.classList.add("pv-rc")}}} var house=HOUSE.test(brand),puff=/hors piste/i.test(brand)||/go[u\u00fb]t[- ]puff/i.test(title+" "+href); if(!house&&!puff)return;var w=document.createElement("span");w.className="pv-pills";if(house)w.appendChild(pill("pv-pill-a","N\u00e9 dans les Alpes"));if(puff)w.appendChild(pill("pv-pill-p","Go\u00fbt puff"));bEl.parentNode.insertBefore(w,bEl.nextSibling)});th()} function pills(br,h){var house=HOUSE.test(br),puff=/hors piste/i.test(br)||/go[u\u00fb]t[- ]puff/i.test(h);if(!house&&!puff)return null;var w=document.createElement("span");w.className="pv-pills";if(house)w.appendChild(pill("pv-pill-a","N\u00e9 dans les Alpes"));if(puff)w.appendChild(pill("pv-pill-p","Go\u00fbt puff"));return w} function th(){[].forEach.call(document.querySelectorAll(".pvth-c"),function(c){if(c.getAttribute("data-pv-b"))return;c.setAttribute("data-pv-b","1");var h=c.getAttribute("href"),src=null;[].some.call(document.querySelectorAll(".ListeProduitsItem-link"),function(a){if(a.getAttribute("href")===h){src=a.closest(".ListeProduitsItem");return true}}); var best=!!src&&/\btopVente\b/.test(src.className),lab="",m=c.querySelector(".pvth-m"),rb=c.querySelector(".pvth-rb"); if(best)lab="Meilleure vente";else if(src)[].some.call(src.querySelectorAll(".ListeProduitsItem-riboon"),function(r){var t=r.textContent.trim();if(t&&!/s[\u00e9e]lection|meilleure/i.test(t)){lab=t;return true}});else if(rb&&!/s[\u00e9e]lection/i.test(rb.textContent))lab=rb.textContent.trim(); if(!lab){if(rb)rb.parentNode.removeChild(rb)}else if(m){if(!rb){rb=document.createElement("span");rb.className="pvth-rb";m.appendChild(rb)}rb.textContent=lab.replace(/coeur/i,"c\u0153ur");rb.classList.add(best?"pv-rb-b":/c(oe|\u0153)ur/i.test(lab)?"pv-rb-c":"pv-rb-n")} var mq=c.querySelector(".pvth-mq");if(mq){var w=pills(mq.textContent.replace(/\s+/g," ").trim(),h);if(w)mq.parentNode.insertBefore(w,mq)}})} if(document.readyState==="loading")document.addEventListener("DOMContentLoaded",run);else run(); window.addEventListener("load",function(){run();setTimeout(run,1200)}); try{Sys.WebForms.PageRequestManager.getInstance().add_endRequest(function(){setTimeout(run,80)})}catch(e){} })(); }catch(e){window.console&&console.error("pv-badges-v1",e)} /* pv-home-mobile-v1 */ try{ (function(){if(window.__pvHomeM)return;window.__pvHomeM=1; if(!document.querySelector(".pvhh"))return; var S="::-webkit-scrollbar{display:none}"; var css="@media screen and (max-width:767px){"+ "html body .pvhh .pvhh-cta{flex-direction:row!important;gap:8px!important}"+ "html body .pvhh .pvhh-cta>a{flex:1 1 0!important;min-width:0!important;width:auto!important;padding:0 8px!important;font-size:12px!important;letter-spacing:0!important;line-height:1.1!important;white-space:normal!important;text-align:center!important}"+ "html body .pvhh .pvhh-pic,html body .pvhh .pvhh-pic img{width:100%!important;max-width:none!important;height:150px!important;min-height:0!important;object-fit:cover!important;border-radius:16px}"+ "html body .pvhh .pvhh-infos{display:none!important}"+ "html body .pvhs .pvhs-tabs.pvhs-tabs{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin:0!important;padding:0!important;overflow:visible!important}"+ "html body .pvhs .pvhs-tabs"+S+ "html body .pvhs .pvhs-tabs .pvhs-tab{width:100%!important;min-width:0!important;min-height:40px!important;padding:0 8px!important;white-space:nowrap!important;font-size:13px!important}"+ "html body .pvhs .swiper-wrapper,html body .ccb932 .swiper-wrapper{display:grid!important;grid-auto-flow:column!important;grid-template-columns:none!important;grid-auto-columns:47%!important;overflow-x:auto!important;scroll-snap-type:x mandatory;gap:10px!important;scrollbar-width:none;transform:none!important}"+ "html body .pvhs .swiper-wrapper"+S+"html body .ccb932 .swiper-wrapper"+S+ "html body .pvhs .swiper-wrapper>*,html body .ccb932 .swiper-wrapper>*{scroll-snap-align:start;width:auto!important;margin:0!important}"+ "html body .pvhs .swiper-container,html body .ccb932 .swiper-container{overflow:visible!important}"+ "html body .ccb867 .pv-home-flavors.pv-home-flavors{display:flex!important;flex-wrap:nowrap!important;justify-content:flex-start!important;overflow-x:auto;gap:4px!important;scrollbar-width:none;margin-right:-16px!important;padding-right:16px}"+ "html body .pv-home-flavors"+S+ "html body .pv-home-flavors>a{flex:0 0 78px!important}"+ "html body .ccb867{padding-top:24px!important;padding-bottom:24px!important}"+ "html body .ccb868>.ct{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important}"+ "html body .ccb868 .contenuTexte2ColHaut{grid-column:1/-1}"+ "html body .ccb868 .contenuTexte2ColG,html body .ccb868 .contenuTexte2ColD{display:flex!important;flex-direction:column;justify-content:space-between;gap:8px;margin:0!important;padding:12px!important;min-width:0}"+ "html body .ccb868 .contenuTexte2ColG p,html body .ccb868 .contenuTexte2ColD p{display:none!important}"+ "html body .ccb868 .contenuTexte2ColG h2,html body .ccb868 .contenuTexte2ColD h2{font-size:18px!important}"+ "html body .ccb868 .btn-border{display:flex!important;align-items:center;justify-content:center;min-height:40px;padding:6px 8px!important;font-size:11.5px!important;text-align:center;white-space:normal}"+ "html body .pvha .pvha-photo,html body .pvha .pvha-ski{display:none!important}"+ "html body .pvha .pvha-p{display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}"+ "html body .pv-fold-btn{display:flex;width:100%;align-items:center;justify-content:space-between;gap:12px;min-height:48px;margin:6px 0 0;padding:0;border:0;border-top:1px solid #E2DACE;background:none;color:#1F2828;font:700 14px Barlow,Arial,sans-serif;text-transform:uppercase;text-align:left;cursor:pointer}"+ "html body .pv-fold-btn:after{content:'+';font-size:24px;font-weight:300}"+ "html body .pv-fold.pv-open .pv-fold-btn:after{content:'\\2212'}"+ "html body .pvx-cree.pv-fold:not(.pv-open) .pvx-cree-r{display:none!important}"+ "html body .pvx-marq.pv-fold:not(.pv-open) .pvx-p{display:none!important}"+ "html body #faq-accueil .intro>p:not(.k){display:none!important}"+ "}"; function mob(){return window.matchMedia&&window.matchMedia("(max-width:767px)").matches} function addCss(){if(document.getElementById("pv-home-mobile-css-v1"))return;var s=document.createElement("style");s.id="pv-home-mobile-css-v1";s.textContent=css;document.head.appendChild(s)} function fold(sec,anchor,label){if(!sec||!anchor||sec.getAttribute("data-pv-fold"))return;sec.setAttribute("data-pv-fold","1");sec.classList.add("pv-fold");var b=document.createElement("button");b.type="button";b.className="pv-fold-btn";b.textContent=label;b.setAttribute("aria-expanded","false");anchor.parentNode.insertBefore(b,anchor.nextSibling);b.addEventListener("click",function(){var o=sec.classList.toggle("pv-open");b.setAttribute("aria-expanded",o?"true":"false")})} function run(){if(!mob())return;addCss(); var c=document.querySelector(".pvx-cree");fold(c,c&&c.querySelector(".pvx-cree-l"),"Notre histoire et nos engagements"); var m=document.querySelector(".pvx-marq");fold(m,m&&m.querySelector(".pvx-head"),"D\u00e9couvrir nos marques"); var f=document.querySelector("#faq-accueil details[open]");if(f&&!document.body.getAttribute("data-pv-faq")){document.body.setAttribute("data-pv-faq","1");f.removeAttribute("open")}} if(document.readyState==="loading")document.addEventListener("DOMContentLoaded",run);else run(); window.addEventListener("load",run); })(); }catch(e){window.console&&console.error("pv-home-mobile-v1",e)} /* pv-cart-trust-v1 */ try{ (function(){ function go(){ if(!/\/boutique\//.test(location.pathname)||document.getElementById('pvtr'))return; var anchor=document.getElementById('pvc-reas');if(!anchor)return; function render(d){if(document.getElementById('pvtr')||!d||!d.n)return; var st=document.createElement('style');st.textContent='#pvtr{margin:12px 0 0;padding:12px 14px;background:#fff;border:1px solid #E5DED3;border-radius:14px;font:14px/1.4 "D-DIN Regular",sans-serif;color:#111}#pvtr .s{color:#FFA11F;letter-spacing:1px}#pvtr b{font-weight:700}#pvtr a{color:#111;text-decoration:underline;font-size:13px}#pvtr p{margin:0 0 4px}';document.head.appendChild(st); var w=document.createElement('div');w.id='pvtr'; w.innerHTML='\u003cp>\u003cspan class="s">\u2605\u2605\u2605\u2605\u2605\u003c/span> \u003cb>'+d.r+'/5\u003c/b> \u00b7 '+d.n.toLocaleString('fr-FR')+' avis Google sur nos 4 boutiques\u003c/p>\u003cp>Gen\u00e8ve \u00b7 Lausanne \u00b7 Annecy \u00b7 Lyon \u2014 une \u00e9quipe joignable avant et apr\u00e8s votre commande.\u003c/p>\u003ca href="/avis-clients-1408">Voir les avis clients v\u00e9rifi\u00e9s\u003c/a>'; anchor.parentNode.insertBefore(w,anchor.nextSibling)} var K='pvtr_g',c=null;try{c=JSON.parse(localStorage.getItem(K)||'null')}catch(e){} if(c&&86400000>Date.now()-c.t){render(c);return} fetch('/avis-clients-1408',{credentials:'same-origin'}).then(function(r){return r.text()}).then(function(t){ var s=t.replace(/\u003c[^>]+>/g,' '),re=/(\d),(\d)\s*\u00b7\s*(\d+)\s*avis Google/g,m,n=0,sum=0; while((m=re.exec(s))){var v=parseFloat(m[1]+'.'+m[2]),k=parseInt(m[3],10);n+=k;sum+=v*k} if(!n)return;var d={n:n,r:(Math.round(sum/n*10)/10).toFixed(1).replace('.',','),t:Date.now()}; try{localStorage.setItem(K,JSON.stringify(d))}catch(e){}render(d)}).catch(function(){}); } if(document.readyState!=='loading')setTimeout(go,300);else document.addEventListener('DOMContentLoaded',function(){setTimeout(go,300)}); window.addEventListener('load',function(){setTimeout(go,500);try{Sys.WebForms.PageRequestManager.getInstance().add_endRequest(function(){setTimeout(go,200)})}catch(e){}}); })(); }catch(e){window.console&&console.error("pv-cart-trust-v1",e)} /* pv-infoannex-ch-v1 */ try{ (function(){function fx(){[].forEach.call(document.querySelectorAll(".infoAnnex"),function(el){var w=document.createTreeWalker(el,NodeFilter.SHOW_TEXT),n;while((n=w.nextNode())){if(/29[.,]90\s*\u20ac/.test(n.nodeValue))n.nodeValue=n.nodeValue.replace(/29[.,]90\s*\u20ac/g,"29 Fr.")}})}if(document.readyState==="loading")document.addEventListener("DOMContentLoaded",fx);else fx();try{Sys.WebForms.PageRequestManager.getInstance().add_endRequest(fx)}catch(e){}})(); }catch(e){window.console&&console.error("pv-infoannex-ch-v1",e)} /* pv-pvlgrid-v1 */ try{ (function(){if(document.getElementById("pv-pvlgrid-css"))return;var s=document.createElement("style");s.id="pv-pvlgrid-css";s.textContent="@media (max-width:767px){body.pageLiquide .pvl .ListeProduits-items{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}body.pageLiquide .pvl .ListeProduits-items\u003e.ListeProduitsItem{width:auto!important;max-width:none!important;flex:0 0 auto!important}}";document.head.appendChild(s)})(); }catch(e){window.console&&console.error("pv-pvlgrid-v1",e)} /* pv-mkbtn-v1 */ try{ (function(){if(document.getElementById("pv-mkbtn-css"))return;var s=document.createElement("style");s.id="pv-mkbtn-css";s.textContent=".btq_PanierMini-recap a.btnBootik{border-radius:999px!important;margin-bottom:16px!important}.btq_PanierMini-recap a.btnBootik::before{top:0!important;left:0!important;right:auto!important;bottom:auto!important;width:100%!important;height:100%!important;box-sizing:border-box!important;border-radius:999px!important;transform:translate(5px,5px)!important;pointer-events:none}";document.head.appendChild(s)})(); }catch(e){window.console&&console.error("pv-mkbtn-v1",e)} /* pv-nocbd-ch-v1 */ try{ (function(){if(document.getElementById("pv-nocbd-css"))return;var s=document.createElement("style");s.id="pv-nocbd-css";s.textContent="a[href*=\"/c/gout-6/cbd-17\"]{display:none!important}";document.head.appendChild(s)})(); }catch(e){window.console&&console.error("pv-nocbd-ch-v1",e)} /* pv-ribfix-v1 */ try{ (function(){if(document.getElementById("pv-ribfix-css"))return;var s=document.createElement("style");s.id="pv-ribfix-css";s.textContent=".ListeProduitsItem-link{position:relative}.ListeProduitsItem-link\u003e.ListeProduitsItem-riboon{position:absolute!important;top:8px!important;left:8px!important;margin:0!important;z-index:2}";document.head.appendChild(s)})(); }catch(e){window.console&&console.error("pv-ribfix-v1",e)} /* pv-kitpage-v1 */ try{ (function(){ function go(){ if(!document.querySelector('.pv-kit')||document.getElementById('pvkit-css'))return; var F='"D-DIN Condensed DINCondensed-Bold","D-DIN Condensed",sans-serif',R='"D-DIN Regular",sans-serif'; var c=[ '.pv-kit{color:#111!important}', '.pv-kit h1,.pv-kit h2{color:#111!important;font-family:'+F+'!important;font-weight:400!important;text-transform:uppercase;letter-spacing:0!important}', '.pv-kit h1{font-size:58px!important;line-height:.95!important;margin:0 0 18px!important}', '.pv-kit h2{font-size:42px!important;line-height:1!important;margin:0 0 14px!important}', '.pv-kit-kicker{font:13px/1 "Courier New",monospace!important;letter-spacing:.18em!important;text-transform:uppercase;color:#111!important;margin:0 0 10px!important}', '.pv-kit p,.pv-kit li,.pv-kit summary{font-family:'+R+'!important;color:#333!important;font-size:16px!important;line-height:1.6!important;font-weight:400!important}', '.pv-kit-lead{font-size:18px!important;max-width:720px}', '.pv-kit strong{color:#111!important;font-weight:700!important}', '.pv-kit-highlight,.pv-kit-check,.pv-kit-note,.pv-kit-warning{background:#FFF1DD!important;border:0!important;border-left:3px solid #FFA11F!important;border-radius:12px!important;color:#111!important}', '.pv-kit-btn,.pv-kit-links a,.pv-kit-cta a{display:inline-flex!important;align-items:center;justify-content:center;border-radius:999px!important;padding:14px 24px!important;font:700 14px/1 '+R+'!important;text-transform:uppercase;letter-spacing:.04em;text-decoration:none!important;box-shadow:none!important}', '.pv-kit-primary,.pv-kit-links a:first-child,.pv-kit-cta a:first-of-type{background:#FFA11F!important;color:#111!important;border:0!important}', '.pv-kit-secondary,.pv-kit-outline,.pv-kit-links a+a,.pv-kit-cta a+a{background:#fff!important;color:#111!important;border:1.5px solid #111!important}', '.pv-kit-card{background:#fff!important;border:1px solid #E5DED3!important;border-radius:16px!important;padding:22px!important;box-shadow:none!important}', '.pv-kit-card h3,.pv-kit-offer h3,.pv-kit-check h3{font:700 19px/1.2 '+R+'!important;color:#111!important;text-transform:none!important;letter-spacing:0!important;margin:10px 0 8px!important}', '.pv-kit-num{background:#FFA11F!important;color:#111!important;font-weight:700!important}', '.pv-kit-offer{background:#fff!important;color:#111!important;border:1px solid #E5DED3!important;border-radius:18px!important;box-shadow:none!important;overflow:hidden}', '.pv-kit-offer:before,.pv-kit-offer:after{display:none!important}', '.pv-kit-offer p,.pv-kit-offer h3{color:#111!important}', '.pv-kit-budget{background:#FFA11F!important;color:#111!important;border-radius:999px!important;font:700 12px/1 '+R+'!important;padding:7px 12px!important;display:inline-block}', '.pv-kit-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}', '.pvk-vis{display:flex;align-items:center;justify-content:center;gap:10px;background:#FBF8F3;border-radius:14px;padding:14px;margin:0 0 14px}', '.pvk-vis img{width:120px;height:120px;object-fit:contain;mix-blend-mode:multiply}', '.pvk-vis span{font:700 24px/1 '+R+';color:#C86A00}', '.pvk-pr{display:flex;justify-content:space-between;gap:10px;font-size:14px;color:#555;margin:6px 0 0}', '.pvk-pr b{color:#111}', '.pv-kit-cta{background:#002B38!important;border-radius:18px!important}', '.pv-kit-cta h2,.pv-kit-cta p,.pv-kit-cta .pv-kit-kicker{color:#fff!important}', '.pv-kit-cta a+a{background:transparent!important;color:#fff!important;border-color:#fff!important}', '.pv-kit-faq summary{font-weight:700!important;color:#111!important;font-size:17px!important}', '.pv-kit-linkline a{color:#111!important;font-weight:700;text-decoration:underline}', '@media (max-width:900px){.pv-kit h1{font-size:38px!important}.pv-kit h2{font-size:30px!important}.pv-kit-lead{font-size:16px!important}.pvk-vis img{width:92px;height:92px}.pv-kit-btn,.pv-kit-links a,.pv-kit-cta a{padding:13px 18px!important}}' ].join('\n'); var st=document.createElement('style');st.id='pvkit-css';st.textContent=c;document.head.appendChild(st); function num(s){return parseFloat(String(s||'').replace(/\s/g,'').replace(/[^\d,.]/g,'').replace(',','.'))||0} function fmt(n){return n.toFixed(2).replace('.',',')+' \u20ac'} [].forEach.call(document.querySelectorAll('.pv-kit-offer'),function(o){ var as=[].slice.call(o.querySelectorAll('.pv-kit-links a[href*="/produits/"]'));if(2>as.length)return; Promise.all(as.slice(0,2).map(function(a){var K='pvk_'+a.getAttribute('href');try{var C=JSON.parse(localStorage.getItem(K)||'null');if(C&&43200000>Date.now()-C.t)return Promise.resolve(C)}catch(e){}return fetch(a.getAttribute('href'),{credentials:'same-origin'}).then(function(r){return r.text()}).then(function(t){var d=new DOMParser().parseFromString(t,'text/html');var im=d.getElementById('ctl00_cphPanMilieu_imgPhotoPrincipale');return {img:im?new URL(im.getAttribute('src'),a.href).href:'',p:num((d.getElementById('ctl00_cphPanMilieu_lblPrix')||{}).textContent)}}).then(function(o){if(o.img){o.t=Date.now();try{localStorage.setItem(K,JSON.stringify(o))}catch(e){}}return o}).catch(function(){return {img:'',p:0}})})).then(function(r){ if(!r[0].img||!r[1].img)return; var v=document.createElement('div');v.className='pvk-vis'; var i1=document.createElement('img');i1.src=r[0].img;i1.alt=(o.querySelector('.pv-kit-pair strong')||{}).textContent||'';i1.loading='lazy'; var pl=document.createElement('span');pl.textContent='+'; var i2=document.createElement('img');i2.src=r[1].img;var s2=o.querySelectorAll('.pv-kit-pair strong')[1];i2.alt=s2?s2.textContent:'';i2.loading='lazy'; v.appendChild(i1);v.appendChild(pl);v.appendChild(i2);o.insertBefore(v,o.firstChild); if(r[0].p&&r[1].p){var b=o.querySelector('.pv-kit-budget');if(b)b.textContent='Ensemble : '+fmt(r[0].p+r[1].p);var pr=document.createElement('div');pr.className='pvk-pr';pr.innerHTML='\u003cspan>Kit \u003cb>'+fmt(r[0].p)+'\u003c/b>\u003c/span>\u003cspan>E-liquide \u003cb>'+fmt(r[1].p)+'\u003c/b>\u003c/span>';var ln=o.querySelector('.pv-kit-links');if(ln)o.insertBefore(pr,ln)} })}); } if(document.readyState==='loading')document.addEventListener('DOMContentLoaded',go);else go(); })(); }catch(e){window.console&&console.error("pv-kitpage-v1",e)} /* pv-podbox-v1 */ try{ (function(){var M={'/c/type-de-cigarette-8/les-pods-23':'/e-cigarettes-1358?f='+encodeURIComponent('{"3":[[23]]}'),'/c/type-de-cigarette-8/les-boxs-26':'/e-cigarettes-1358?f='+encodeURIComponent('{"3":[[26]]}')};var p=location.pathname;if(M[p]&&document.querySelector('.ListeProduits-noData')&&!document.querySelector('.ListeProduitsItem')){location.replace(M[p]);return}function fx(){[].forEach.call(document.querySelectorAll('a[href]'),function(a){var h=a.getAttribute('href').replace(/^https?:\/\/www\.purvapor\.fr/,'');if(M[h])a.setAttribute('href',M[h])})}if(document.readyState==='loading')document.addEventListener('DOMContentLoaded',fx);else fx();window.addEventListener('load',function(){fx();setTimeout(fx,1500)})})(); }catch(e){window.console&&console.error("pv-podbox-v1",e)} /* pv-nbhero-v1 */ try{ (function(){if(!/nos-boutiques-purvapor-1380/.test(location.pathname))return;function go(){var p=document.querySelector('.pvnb-fac');if(!p||p.getAttribute('data-pv'))return;p.setAttribute('data-pv','1');var s=p.querySelector('source');if(s)s.parentNode.removeChild(s);var st=document.createElement('style');st.textContent='@media (max-width:767px){.pvnb-fac img{width:calc(100% + 20px)!important;max-width:none!important;height:auto!important;margin:0 -10px!important;display:block}}';document.head.appendChild(st)}if(document.readyState==='loading')document.addEventListener('DOMContentLoaded',go);else go();})(); }catch(e){window.console&&console.error("pv-nbhero-v1",e)} /* pv-mhome-v1 */ try{ (function(){if(document.getElementById("pv-mhome-css"))return;var s=document.createElement("style");s.id="pv-mhome-css";s.textContent="@media (max-width:767px){html body .ccb867 h2,html body .ccb868 h2.center,html body .ccb932 h2,html body .pvhs .pvhs-head .pvhs-t,html body .avis-site-container .avis-site-title,html body .pvx .pvx-h2,html body #faq-accueil h2.t{font-family:\"Barlow Condensed\",Arial,sans-serif!important;font-weight:800!important;font-size:30px!important;line-height:1.02!important;text-transform:uppercase!important;text-align:left!important;letter-spacing:0!important;color:#000!important;margin:0 0 10px!important;padding:0!important}html body .pvha .pvha-t{font-family:\"Barlow Condensed\",Arial,sans-serif!important;font-weight:800!important;font-size:30px!important;line-height:1.02!important;text-transform:uppercase!important;text-align:left!important;letter-spacing:0!important}html body .ccb867 h2 .surTitre,html body .ccb868 h2.center .surTitre,html body .ccb932 h2 .surTitre,html body .pvhs .pvhs-head .pvhs-k,html body .pvx .pvx-k,html body .avis-site-container .avis-site-subtitle,html body .pvha .pvha-k{display:block!important;margin:0 0 8px!important;font-family:Inconsolata,monospace!important;font-size:12px!important;font-weight:600!important;letter-spacing:.2em!important;text-transform:uppercase!important;color:#C86A00!important;line-height:1.4!important;text-align:left!important}html body .pvha .pvha-k{color:#FFA11F!important}html body .pvhs .pvhs-head{align-items:flex-start!important;text-align:left!important;gap:0!important}html body .pvx .pvx-head,html body .pvx .pvx-p,html body .avis-site-container,html body .avis-site-container .avis-site-tagline,html body #faq-accueil .intro,html body #faq-accueil .intro p{text-align:left!important;margin-left:0!important;margin-right:0!important;align-items:flex-start!important}html body .pvhs .pvhs-sub,html body .pvx .pvx-p,html body .avis-site-container .avis-site-tagline,html body #faq-accueil .intro p{font-size:15px!important;line-height:1.5!important;color:#444B4B!important;text-transform:none!important;letter-spacing:0!important;font-family:Barlow,Arial,sans-serif!important}html body .pvx-cree .pvx-head,html body .pvx-cree .pvx-cree-l{border-left:0!important;padding-left:0!important}html body .ccb1090,html body .ccb867,html body .ccb932,html body .ccb1081{padding-top:40px!important;padding-bottom:40px!important}html body .ccb868{padding-top:8px!important;padding-bottom:0!important}html body .ccb1091{padding-bottom:40px!important}html body .pvhs .pvhs-more,html body .pvha .pvha-cta,html body .avis-site-container .avis-site-footer,html body .pvx .pvx-more{display:block!important;width:100%!important;text-align:center!important;margin-top:20px!important}html body .pvhs .pvhs-more a,html body .ccb867 a.btn-border,html body .pvha .pvha-cta a.pvha-b1,html body .avis-site-container .avis-site-footer a,html body .pvx .pvx-more a{display:flex!important;align-items:center;justify-content:center;width:100%!important;max-width:none!important;box-sizing:border-box!important;margin:0!important;min-height:48px}html body .ccb867 .pv-home-flavors{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px 6px!important}html body .ccb867 .pv-home-flavors>*{width:auto!important;max-width:none!important;margin:0!important;flex:none!important}html body .ccb868 h2:not(.center),html body .ccb868 h2:not(.center) .surTitre{text-align:left!important}html body .ccb932 .swiper-wrapper::-webkit-scrollbar,html body .pvhs .swiper-wrapper::-webkit-scrollbar,html body .pvx-logos::-webkit-scrollbar,html body .pvhs .pvhs-tabs::-webkit-scrollbar{display:none}html body .pvha .pvha-photo{height:150px!important;object-fit:cover;width:100%!important}html body .pvx .pvx-logos{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;gap:10px!important;scroll-snap-type:x mandatory;scrollbar-width:none}html body .pvx .pvx-logos>a{flex:0 0 36%!important;scroll-snap-align:start}html body #faq-accueil .intro p.k{display:block!important;margin:0 0 8px!important;font-family:Inconsolata,monospace!important;font-size:12px!important;font-weight:600!important;letter-spacing:.2em!important;text-transform:uppercase!important;color:#C86A00!important;line-height:1.4!important;text-align:left!important}html body .avis-site-container .avis-site-badge{margin:0 0 14px!important}html body .avis-site-container .avis-site-header,html body .avis-site-container .avis-site-header *{text-align:left!important;margin-left:0!important;margin-right:0!important}html body .avis-site-container .avis-site-header{margin:0 0 18px!important;width:auto!important}html body .ccb1081 .avis-site-footer{display:block!important;width:100%!important;margin-top:20px!important}html body .ccb1081 .avis-site-footer a.avis-site-link{display:flex!important;align-items:center;justify-content:center;width:100%!important;max-width:none!important;box-sizing:border-box!important;margin:0!important;min-height:48px}html body .pvx-cree .pvx-cree-cta{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}html body .pvx-cree .pvx-cree-cta a{display:flex!important;align-items:center;justify-content:center;border-radius:999px!important;min-height:48px;height:auto!important;width:100%!important;box-sizing:border-box!important;font-size:14px!important}html body .avis-site-container .pvx-g,html body .avis-site-container .pvx-g>*{text-align:left!important;align-items:flex-start!important;justify-content:flex-start!important;margin-left:0!important}html body .avis-site-footer{display:block!important;width:100%!important;margin-top:20px!important}html body .avis-site-footer a.avis-site-link{display:flex!important;align-items:center;justify-content:center;width:100%!important;max-width:none!important;box-sizing:border-box!important;margin:0!important;min-height:48px}html body .pvhs .swiper-wrapper,html body .ccb932 .swiper-wrapper{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;overflow:visible!important;transform:none!important;height:auto!important;padding:0!important}html body .pvhs .swiper-wrapper>.swiper-slide,html body .ccb932 .swiper-wrapper>.swiper-slide{width:auto!important;max-width:none!important;flex:none!important;margin:0!important;height:auto!important}html body .pvhs .swiper-wrapper>.swiper-slide:nth-child(n+5),html body .ccb932 .swiper-wrapper>.swiper-slide:nth-child(n+5){display:none!important}html body .pvhs .ListeProduitsItem-link,html body .ccb932 .ListeProduitsItem-link{padding:8px 10px 10px!important;height:100%!important;box-sizing:border-box}html body .pvhs .ListeProduitsItem-link::after,html body .ccb932 .ListeProduitsItem-link::after{display:none!important;content:none!important}html body .pvhs .ListeProduitsItem-img,html body .ccb932 .ListeProduitsItem-img{height:100px!important;min-height:0!important;margin:0 0 6px!important;padding:0!important;display:flex!important;align-items:center;justify-content:center}html body .pvhs .ListeProduitsItem-img img,html body .ccb932 .ListeProduitsItem-img img{height:96px!important;width:96px!important;max-width:100%!important;object-fit:contain!important;padding:9px!important;box-sizing:border-box!important;border-radius:50%}html body .pvhs .ListeProduitsItem-title,html body .ccb932 .ListeProduitsItem-title{font-size:13px!important;line-height:1.15!important;min-height:0!important;height:auto!important;display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden!important;margin:0 0 2px!important}html body .pvhs .ListeProduitsItem-marque,html body .ccb932 .ListeProduitsItem-marque{font-size:10px!important;margin:0 0 2px!important}html body .pvhs .ListeProduitsItem-infosComplem,html body .ccb932 .ListeProduitsItem-infosComplem{font-size:11px!important;line-height:1.3!important;margin:2px 0 0!important;min-height:0!important;height:auto!important}html body .pvhs .ListeProduitsItem-infosComplem br,html body .ccb932 .ListeProduitsItem-infosComplem br{display:none!important}html body .pvhs .ListeProduitsItem-price,html body .ccb932 .ListeProduitsItem-price{font-size:15px!important;margin:4px 0 0!important}html body .pvhs .swiper-pagination-lp,html body .ccb932 .swiper-pagination-lp,html body .pvhs .swiper-button-prev-lp,html body .ccb932 .swiper-button-prev-lp,html body .pvhs .swiper-button-next-lp,html body .ccb932 .swiper-button-next-lp{display:none!important}html body .pvhs .pvhs-tabs{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin:14px 0 16px!important;overflow:visible!important}html body .pvhs .pvhs-tab{width:100%!important;margin:0!important;padding:9px 6px!important;font-size:12.5px!important;white-space:nowrap;justify-content:center;text-align:center}html body .pvhh-s{transition:none!important}html body .pvhh-s.on{transition:opacity .35s ease!important}html body .pvhh-pic img,html body .pvhh-shops img{background:#EFE6D8!important}html body .pvhh-stage{align-items:start!important}html body .pvhh-s{align-content:start!important;align-self:start!important;grid-template-rows:auto!important}html body .pvhh-txt{justify-content:flex-start!important}html body .pvhh-pic{background:#EFE6D8;border-radius:14px;aspect-ratio:4/3;overflow:hidden}html body .pvhh-stage{display:block!important;height:auto!important;min-height:0!important}html body .pvhh-s:not(.on){display:none!important}html body .pvhh-s.on{display:grid!important;opacity:1!important;visibility:visible!important;animation:pvhhIn .35s ease}html body .pvhh-ph4{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}html body .pvhh-ph4 figure{margin:0!important}html body .pvhh-ph4 img{width:100%!important;height:auto!important;aspect-ratio:4/3;object-fit:cover!important;border-radius:10px}html body .pvhh-addr{grid-template-columns:repeat(2,minmax(0,1fr))!important}}@keyframes pvhhIn{from{opacity:0}to{opacity:1}}";document.head.appendChild(s);if(!window.matchMedia("(max-width:767px)").matches)return;var n=0;function stop(){var r=document.querySelector(".pvhh");if(r&&r.dataset.ok&&r.classList.contains("run")){var p=r.querySelector(".pvhh-pause");if(p)p.click();return}if(++n<40)setTimeout(stop,250)}if(document.readyState==="loading")document.addEventListener("DOMContentLoaded",stop);else stop()})(); }catch(e){window.console&&console.error("pv-mhome-v1",e)} /* pv-ribtypes-ch-v1 */ try{ (function(){if(window.__pvRib)return;window.__pvRib=1; var T={best:'Meilleure vente',new:'Nouveaut\u00e9',gf:'Grand format',sel:'Sel de nicotine',coeur:'Coup de c\u0153ur'}; function typ(t){t=(t||'').toLowerCase();if(/meilleure vente|top vente/.test(t))return'best';if(/nouveaut/.test(t))return'new';if(/grand format/.test(t))return'gf';if(/sel/.test(t))return'sel';if(/coup de c/.test(t))return'coeur';return''} var NEWMIN=18960;function cid(el){var c=el.closest('.ListeProduitsItem');var a=c&&c.querySelector('a[href*="/produits/"]');return a?+(((a.getAttribute('href')||'').match(/-(\d+)$/)||[])[1]||0):0}function newOk(el){return cid(el)>=NEWMIN} var css='html body .btq-sticky .btn-border.btnBootik{width:calc(100% - 9px)!important;max-width:calc(100% - 9px)!important;box-sizing:border-box!important}html body .pvt-off{display:none!important}html body .pvt{overflow:hidden!important;isolation:isolate}'+ 'html body .pvt.pvt.pvt-best{background:#1E5B45!important;color:#fff!important;border:0!important}'+ 'html body .pvt.pvt.pvt-new{background:#2F6FB3!important;color:#fff!important;border:0!important}'+ 'html body .pvt.pvt.pvt-gf{background:#6B4BA8!important;color:#fff!important;border:0!important}'+ 'html body .pvt.pvt.pvt-sel{background:#3C4146!important;color:#fff!important;border:0!important}'+ 'html body .pvt.pvt.pvt-coeur{background:#C8455A!important;color:#fff!important;border:0!important}'+ 'html body .pvt::after{content:"";position:absolute;top:0;bottom:0;left:-60%;width:45%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.55),transparent);transform:skewX(-18deg);animation:pvtShine 4.2s ease-in-out infinite;pointer-events:none;z-index:1}'+ 'html body .pvt.pvt-best::after{background:linear-gradient(100deg,transparent,rgba(255,161,31,.55),transparent)}'+ '@keyframes pvtShine{0%,62%{left:-60%}100%{left:130%}}'+ '@media (prefers-reduced-motion:reduce){html body .pvt::after{animation:none;display:none}}'; function addCss(){if(document.getElementById('pv-ribtypes-css'))return;var s=document.createElement('style');s.id='pv-ribtypes-css';s.textContent=css;document.head.appendChild(s)} function paint(el,k){if(!k)return;['best','new','gf','sel','coeur'].forEach(function(x){el.classList.remove('pvt-'+x)});el.classList.add('pvt','pvt-'+k);if(getComputedStyle(el).position==='static')el.style.position='relative';var i=Math.abs((el.textContent||'').length*7)%9;el.style.setProperty('animation-delay','0s');if(el.dataset)el.dataset.pvt=k;} var PAN={'pvhs-p0':'best','pvhs-p1':'new','pvhs-p2':'gf','pvhs-p3':'sel'},FORCE={'pvhs-p2':1,'pvhs-p3':1}; function home(){Object.keys(PAN).forEach(function(id){var p=document.getElementById(id);if(!p)return;var k=PAN[id]; [].forEach.call(p.querySelectorAll('.ListeProduitsItem'),function(c){var rs=[].filter.call(c.querySelectorAll('.ListeProduitsItem-riboon'),function(x){return getComputedStyle(x).display!=='none'}); if(!rs.length){if(k==='new'&&!newOk(c.querySelector('a')||c))return;var link=c.querySelector('.ListeProduitsItem-link')||c;var n=document.createElement('div');n.className='ListeProduitsItem-riboon';n.textContent=T[k];link.insertBefore(n,link.firstChild);paint(n,k);return} rs.forEach(function(r,ix){var kk=typ(r.textContent);if((kk==='new'||(!kk&&k==='new'&&!FORCE[id]))&&!newOk(r)){r.classList.add('pvt-off');return}if(FORCE[id]&&ix===0){if(r.getAttribute('data-pvt')!==k){r.textContent=T[k];paint(r,k)}return} if(kk){if(r.getAttribute('data-pvt')!==kk)paint(r,kk)}else{r.textContent=T[k];paint(r,k)}})})})} function all(){[].forEach.call(document.querySelectorAll('.ListeProduitsItem-riboon,.pvp-tag'),function(r){if(r.closest('.pvhs-panel'))return;var cs=getComputedStyle(r);if(cs.display==='none')return;var k=typ(r.textContent);if(k==='new'&&!newOk(r)){r.classList.add('pvt-off');return}if(k&&r.getAttribute('data-pvt')!==k)paint(r,k)})} var GF={},GFC={}; function gf120(){var p=document.getElementById('pvhs-p2');if(!p)return;[].forEach.call(p.querySelectorAll('.ListeProduitsItem'),function(c){if(c.getAttribute('data-pvgf'))return;var a=c.querySelector('a[href*="/produits/"]');if(!a)return;var h=a.getAttribute('href')||'',m=h.match(/-(\d+)$/);if(!m||!GF[m[1]])return;c.setAttribute('data-pvgf','1');var v=GF[m[1]],nh=h.replace(/-\d+$/,'-'+v); (GFC[v]||(GFC[v]=fetch(nh,{credentials:'same-origin'}).then(function(r){return r.text()}).then(function(t){var d=new DOMParser().parseFromString(t,'text/html');var im=d.getElementById('ctl00_cphPanMilieu_imgPhotoPrincipale'),pr=d.getElementById('ctl00_cphPanMilieu_lblPrix'),ml=((d.title||'').match(/\((\d+) ml/)||[])[1];return{img:im?im.getAttribute('src'):'',pr:pr?pr.textContent.trim():'',ml:ml}}))).then(function(o){if(!o||!o.img||!o.pr||!o.ml)return; [].forEach.call(c.querySelectorAll('a[href]'),function(x){if((x.getAttribute('href')||'')===h)x.setAttribute('href',nh)});var im=c.querySelector('img.imgVignette')||c.querySelector('img');if(im){im.setAttribute('src',o.img);im.removeAttribute('srcset')} var pe=c.querySelector('.ListeProduitsItem-price');if(pe){var sp=pe.querySelector('span:not(.ListeProduitsItem-priceOriginal)')||pe;var tgt=[].filter.call(pe.querySelectorAll('*'),function(x){return !x.children.length&&/\d+,\d{2}/.test(x.textContent)})[0]||pe;tgt.textContent=o.pr} var inf=c.querySelector('.ListeProduitsItem-infosComplem');if(inf)inf.textContent=o.ml+' ml'}).catch(function(){})})} function go(){addCss();home();all();gf120()} function run(){go();setTimeout(go,600);setTimeout(go,2000);document.addEventListener('click',function(e){if(e.target&&e.target.closest&&e.target.closest('.pvhs-tab')){setTimeout(go,60);setTimeout(go,500)}},true)} if(document.readyState!=='loading')run();else document.addEventListener('DOMContentLoaded',run)})(); }catch(e){window.console&&console.error("pv-ribtypes-ch-v1",e)} /* pv-typepills-ch-v1 */ try{ (function(){if(window.__pvTP)return;window.__pvTP=1; var LBL='Id\u00e9al d\u00e9butant'; var css='html body .pvt.pvt.pvt-deb{background:#0E7C86!important;color:#fff!important;border:0!important}'+ '.pvtp-rw{display:flex;flex-wrap:wrap;gap:6px;align-items:center;position:relative;z-index:2}.pvtp-rw>.ListeProduitsItem-riboon{margin:0!important}'+ '.pvtp-tag{display:inline-flex;align-items:center;position:relative;font:800 11px/13.2px Barlow,sans-serif;letter-spacing:1px;text-transform:uppercase;padding:4px 10px;border-radius:999px;white-space:nowrap;width:max-content}'; function addCss(){if(document.getElementById('pv-typepills-css'))return;var s=document.createElement('style');s.id='pv-typepills-css';s.textContent=css;document.head.appendChild(s)} var DEB=null,DL=false; function deb(cb){if(DL)return cb();if(DEB)return;var K='pvtp_deb',c=null;try{c=JSON.parse(localStorage.getItem(K)||'null')}catch(e){} if(c&&c.ids&&86400000>Date.now()-c.t){DEB=c.ids;DL=true;return cb()}DEB=[]; fetch('/je-debute',{credentials:'same-origin'}).then(function(r){return r.text()}).then(function(t){var d=new DOMParser().parseFromString(t,'text/html'),o=[];[].forEach.call(d.querySelectorAll('.ListeProduitsItem a[href*="/produits/"]'),function(a){var m=/-(\d+)$/.exec(a.getAttribute('href')||'');if(m&&o.indexOf(m[1])<0)o.push(m[1])});DEB=o;DL=true;try{localStorage.setItem(K,JSON.stringify({ids:o,t:Date.now()}))}catch(e){}cb()}).catch(function(){DL=true;cb()})} function go(){if(!DL||!DEB||!DEB.length)return;var cards=document.querySelectorAll('.ListeProduitsItem');if(!cards.length)return;addCss(); [].forEach.call(cards,function(c){if(c.getAttribute('data-pvtp'))return;var a=c.querySelector('a[href*="/produits/"]');if(!a)return; var id=(/-(\d+)$/.exec(a.getAttribute('href')||'')||[])[1];if(!id||DEB.indexOf(id)<0){c.setAttribute('data-pvtp','0');return} var media=c.querySelector('.pvp-media'); if(media){var tg=media.querySelector('.pvp-tags');if(!tg){tg=document.createElement('div');tg.className='pvp-tags';media.appendChild(tg)} var s=document.createElement('span');s.className='pvp-tag pvt pvt-deb';s.style.position='relative';s.textContent=LBL;tg.appendChild(s);c.setAttribute('data-pvtp','1');return} var link=c.querySelector('.ListeProduitsItem-link')||c;var r=[].filter.call(link.querySelectorAll('.ListeProduitsItem-riboon'),function(x){return getComputedStyle(x).display!=='none'})[0]; var w=document.createElement('div');w.className='pvtp-rw'; if(r){r.parentNode.insertBefore(w,r);w.appendChild(r)}else link.insertBefore(w,link.firstChild); var t=document.createElement('span');t.className='pvtp-tag pvt pvt-deb';t.textContent=LBL;w.appendChild(t);c.setAttribute('data-pvtp','1')})} function run(){deb(go);setTimeout(function(){DL=true;go()},5000);setTimeout(go,2500);document.addEventListener('click',function(e){if(e.target&&e.target.closest&&e.target.closest('.pvhs-tab')){setTimeout(go,120);setTimeout(go,700)}},true)} if(document.readyState!=='loading')run();else document.addEventListener('DOMContentLoaded',run)})(); }catch(e){window.console&&console.error("pv-typepills-ch-v1",e)} /* pv-successeur-ch-v1 */ try{ (function(){if(window.__pvSucc)return;window.__pvSucc=1; /* Remplacements impos\u00e9s : [d\u00e9but de l'URL de l'ancien produit, URL du nouveau, nom affich\u00e9]. Affich\u00e9s m\u00eame si l'ancien est en stock. */ var MAP=[ ['/produits/kit-gtx-one-vaporesso-','/produits/kit-gtx-one-pro-vaporesso-black-black-18949','Kit GTX One Pro'], ['/produits/kit-luxe-xr-vaporesso-','/produits/kit-luxe-xr-max-2-vaporesso-azure-blue-azure-blue-18941','Kit Luxe XR Max 2'], ['/produits/kit-luxe-xr-max-vaporesso-','/produits/kit-luxe-xr-max-2-vaporesso-azure-blue-azure-blue-18941','Kit Luxe XR Max 2'], ['/produits/kit-gen-fit-40-vaporesso-','/produits/kit-gen-se-vaporesso-turquoise-green-turquoise-green-18851','Kit Gen SE'], ['/produits/kit-gen-pt80s-vaporesso-','/produits/kit-gen-se-vaporesso-turquoise-green-turquoise-green-18851','Kit Gen SE'], ['/produits/kit-gen-200-vaporesso-','/produits/kit-gen-se-vaporesso-turquoise-green-turquoise-green-18851','Kit Gen SE'], ['/produits/box-gen-200-vaporesso-','/produits/kit-gen-se-vaporesso-turquoise-green-turquoise-green-18851','Kit Gen SE'] ]; var GRP={'BOX':'m','KIT':'m','POD':'m'};var STOP={'PURVAPOR':1,'KIT':1,'BOX':1,'POD':1,'E':1,'LIQUIDE':1,'ML':1,'MG':1,'X2':1,'X3':1,'X4':1,'X5':1,'X10':1,'DE':1,'LA':1,'LE':1,'LES':1,'ET':1}; function T(e){return e?(e.textContent||'').replace(/\s+/g,' ').trim():''} function N(s){return (s||'').toUpperCase().normalize('NFD').replace(/[\u0300-\u036f]/g,'')} function parse(name){var n=N(name),i=n.lastIndexOf(' - '),brand=i>0?n.slice(i+3).trim():'',body=i>0?n.slice(0,i):n,w=body.split(/[^A-Z0-9]+/).filter(Boolean),type=w[0]||'';if(type==='E'&&w[1]==='LIQUIDE')type='E-LIQUIDE'; var model=w.filter(function(x,k){return k>0&&!STOP[x]&&!(type==='E-LIQUIDE'&&x==='LIQUIDE')});return{type:type,brand:brand,model:model}} function idOf(u){return +((String(u).match(/-(\d+)(?:[?#].*)?$/)||[])[1]||0)} function stockOf(d){var b=d.getElementById('ctl00_cphPanMilieu_btnAjouterPanier'),box=d.getElementById('ctl00_cphPanMilieu_panAcheter');return !!b&&!/pas disponible|rupture|indisponible|\u00e9puis\u00e9/i.test(T(box))} function oosHere(){var b=document.getElementById('ctl00_cphPanMilieu_btnAjouterPanier');return !(b&&b.offsetParent!==null)||/pas disponible|rupture|indisponible|\u00e9puis\u00e9/i.test(T(document.getElementById('ctl00_cphPanMilieu_panAcheter')))} function css(){if(document.getElementById('pv-successeur-css'))return;var st=document.createElement('style');st.id='pv-successeur-css';st.textContent= '#pvsucc{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:10px 0 14px;padding:12px 14px;border:2px solid #FFA11F;border-radius:14px;background:#FFF6E8;font:14px/1.35 "D-DIN Regular",Barlow,Arial,sans-serif;color:#111;max-width:520px}'+ '#pvsucc .t{flex:1 1 220px}#pvsucc b{font-weight:700}#pvsucc small{display:block;font-size:12.5px;color:#5b6262;margin-top:2px}'+ '#pvsucc a.go{flex:none;display:inline-block;padding:10px 16px;border-radius:999px;background:#111;color:#fff!important;font:700 13px/1 Barlow,Arial,sans-serif;text-transform:uppercase;letter-spacing:.02em;text-decoration:none!important}'+ '@media(max-width:767px){#pvsucc{padding:10px 12px;gap:10px;font-size:13.5px}#pvsucc a.go{width:100%;text-align:center}}';document.head.appendChild(st)} function show(html,url,btn){if(document.getElementById('pvsucc'))return;var info=document.querySelector('.btq-detailInfos');if(!info)return;css();var w=document.createElement('div');w.id='pvsucc'; w.innerHTML='
'+html+'Un doute ? Notre \u00e9quipe vous conseille sur WhatsApp ou en boutique.
'+btn+''; var pr=info.querySelector('.groupPrixRibbon');if(pr)pr.parentNode.insertBefore(w,pr.nextSibling);else info.insertBefore(w,info.firstChild)} function nice(s){s=(s||'').toLowerCase().replace(/(^|[\s(\/-])([a-z\u00e0-\u00ff])/g,function(m,a,b){return a+b.toUpperCase()});return s.replace(/ - /,' \u2013 ')} function list(){try{var c=sessionStorage.getItem('pvsucc_list');if(c)return Promise.resolve(JSON.parse(c))}catch(e){} return fetch('/api/recherche?q=a',{credentials:'same-origin'}).then(function(r){return r.json()}).then(function(a){var o=(a||[]).filter(function(x){return /\/produits\//.test(x.url||'')}).map(function(x){return[x.mot,x.url.replace(/^https?:\/\/[^\/]+/,'')]});try{sessionStorage.setItem('pvsucc_list',JSON.stringify(o))}catch(e){}return o})} function auto(){var h1=document.querySelector('h1');if(!h1)return;var brandEl=document.querySelector('.btq-detailMarque');var curName=T(h1),bt=T(brandEl);if(bt&&curName.indexOf(' - ')<0)curName+=' - '+bt;var cur=parse(curName),curId=idOf(location.pathname);if(!cur.type)return; var gout=T(document.querySelector('.btq-detailPhotoPrincipale .blocGout .title'))||T(document.querySelector('.blocGout .title')); list().then(function(L){var here=location.pathname.replace(/-\d+$/,'');var C=L.map(function(x){var p=parse(x[0]);p.name=x[0];p.url=x[1];p.id=idOf(x[1]);return p}).filter(function(p){return (p.type===cur.type||(GRP[p.type]&&GRP[p.type]===GRP[cur.type]))&&p.url.replace(/-\d+$/,'')!==here&&N(p.name)!==N(curName)}); C.forEach(function(p){var s=0;p.model.forEach(function(t){if(cur.model.indexOf(t)>-1)s+=/\d/.test(t)?1:2});p.sc=s;p.same=cur.brand&&p.brand===cur.brand}); var succ=C.filter(function(p){return p.same&&p.sc>=2&&p.id>curId}).sort(function(a,b){return b.sc-a.sc||b.id-a.id}); var eq=C.filter(function(p){return succ.indexOf(p)<0&&p.type===cur.type}).sort(function(a,b){return (b.same?1:0)-(a.same?1:0)||b.id-a.id}); var queue=succ.slice(0,6).map(function(p){return[p,'s']}).concat(eq.slice(0,cur.type==='E-LIQUIDE'?8:5).map(function(p){return[p,'e']})); var fallback=null;(function next(i){if(i>=queue.length){if(fallback)done(fallback[0],'e');return}var p=queue[i][0],k=queue[i][1]; fetch(p.url,{credentials:'same-origin'}).then(function(r){return r.text()}).then(function(t){var d=new DOMParser().parseFromString(t,'text/html');if(!stockOf(d))return next(i+1); if(k==='e'&&cur.type==='E-LIQUIDE'&&gout){var g=T(d.querySelector('.blocGout .title'));if(N(g)!==N(gout)){if(!fallback)fallback=[p];return next(i+1)}}done(p,k)}).catch(function(){next(i+1)})})(0) function done(p,k){var nm=nice(p.name);if(k==='s')show('Ce mod\u00e8le est en rupture. Le mod\u00e8le le plus proche, '+nm+', est disponible.',p.url,'Voir ce mod\u00e8le'); else show('Ce produit est en rupture. Nous vous proposons un \u00e9quivalent disponible : '+nm+'.',p.url,'Voir l\u2019\u00e9quivalent')}}).catch(function(){})} function go(){if(!/^\/produits\//.test(location.pathname)||document.getElementById('pvsucc'))return;var p=decodeURIComponent(location.pathname).toLowerCase(),m=null; MAP.forEach(function(x){if(!m&&p.indexOf(x[0])===0&&p.indexOf(x[1].toLowerCase())!==0)m=x});var oos=oosHere()||/pvtest=oos/.test(location.search); if(m){show(oos?'Ce mod\u00e8le est en rupture. Son successeur, le '+m[2]+', est disponible.':'Nouvelle version disponible : le '+m[2]+'.',m[1],'Voir le '+m[2]);return} if(oos&&!window.__pvSuccAuto){window.__pvSuccAuto=1;auto()}} function run(){setTimeout(go,300);setTimeout(go,1500)} if(document.readyState!=='loading')run();else document.addEventListener('DOMContentLoaded',run)})(); }catch(e){window.console&&console.error("pv-successeur-ch-v1",e)} /* pv-faqmove-v1 */ try{ (function(){if(window.__pvFaqMv)return;window.__pvFaqMv=1; var st=document.createElement('style');st.id='pv-faqmove-css';st.textContent= '.btq-detailDescription .pvfaq{display:none!important}'+ '.pvfaq-sec{background:#fff;padding:36px 0 8px}.pvfaq-sec .pvfq-in{max-width:1200px;margin:0 auto;padding:0;box-sizing:border-box}'+ '.pvfaq-sec h2{font:800 28px/1.05 "Barlow Condensed",Barlow,Arial,sans-serif;text-transform:uppercase;margin:0 0 14px;color:#111}'+ '.pvfaq-sec .pvfq-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 32px}'+ '.pvfaq-sec details{border-top:1px solid #EFE9DF;padding:12px 0}.pvfaq-sec summary{cursor:pointer;list-style:none;font:700 16px/1.3 Barlow,Arial,sans-serif;color:#111;display:flex;justify-content:space-between;gap:12px}'+ '.pvfaq-sec summary::-webkit-details-marker{display:none}.pvfaq-sec summary:after{content:"+";color:#B85D09;font-weight:800;font-size:20px;line-height:1}.pvfaq-sec details[open] summary:after{content:"\\2212"}'+ '.pvfaq-sec details p{margin:8px 0 0;font:400 15px/1.5 Barlow,Arial,sans-serif;color:#2B2F2F}'+ '@media(max-width:767px){.pvfaq-sec{padding:24px 0 4px}.pvfaq-sec .pvfq-in{padding:0}.pvfaq-sec h2{font-size:22px}.pvfaq-sec .pvfq-grid{grid-template-columns:1fr}.pvfaq-sec summary{font-size:15px}.pvfaq-sec details p{font-size:14px}}'; document.head.appendChild(st); function nice(s){s=(s||'').trim().toLowerCase().replace(/(^|[\s(\/'\u2019-])([a-z\u00e0-\u00ff])/g,function(m,a,b){return a+b.toUpperCase()});return s.replace(/^E-Liquide/,'E-liquide')} function alts(){var h=document.querySelector('h1');if(!h)return;var br=((document.querySelector('.btq-detailMarque')||{}).textContent||'').trim();var n=nice(h.textContent);if(br&&n.toLowerCase().indexOf(br.toLowerCase())<0)n+=' \u2013 '+br; var imgs=[].slice.call(document.querySelectorAll('.btq-detailPhotoPrincipale img, #ctl00_cphPanMilieu_imgPhotoPrincipale, .btq-detailPhotos img'));var k=0;imgs.forEach(function(i){if(/caracteristiques|\.svg/i.test(i.getAttribute('src')||''))return;if(i.getAttribute('data-pvalt'))return;k++;i.setAttribute('alt',k===1?(/liquide/i.test(n)?'Flacon '+n:n):n+' \u2013 photo '+k);i.setAttribute('data-pvalt','1')})} function mv(){var f=document.querySelector('.btq-detailDescription .pvfaq');if(!f||document.querySelector('.pvfaq-sec'))return; var qs=[].slice.call(f.querySelectorAll('h3'));if(!qs.length)return; var sec=document.createElement('div');sec.className='pvfaq-sec';var html='

Questions fr\u00e9quentes

'; qs.forEach(function(q,i){var a=q.nextElementSibling;html+=''+q.innerHTML+'

'+(a?a.innerHTML:'')+'

'}); sec.innerHTML=html+'
'; var av=document.getElementById('avis-section');var anchor=av?(av.closest('.ct')||av):null; if(anchor&&anchor.parentNode)anchor.parentNode.insertBefore(sec,anchor);else{var m=document.getElementById('ctl00_cphPanMilieu_panMarque');if(m&&m.parentNode)m.parentNode.insertBefore(sec,m);else return}} function go(){if(!/^\/produits\//.test(location.pathname))return;mv();alts()} function run(){go();setTimeout(go,800);setTimeout(go,2500)} if(document.readyState!=='loading')run();else document.addEventListener('DOMContentLoaded',run)})(); }catch(e){window.console&&console.error("pv-faqmove-v1",e)} /* pv-compliance-v3 */ try{ (function(){if(window.__pvCompl3)return;window.__pvCompl3=1; var R=[ [/\s*pour combler (ton|votre) sevrage tabagique/gi,''], [/format moderne et plus sain/gi,'format moderne'], [/,?\s*convient pour un sevrage efficace de la cigarette/gi,', id\u00e9al pour une vape en inhalation indirecte (MTL)'], [/\s*pour te diriger vers un avenir plus sain/gi,''], [/Soutien \u00e0 la Sant\u00e9 et au Bien-\u00catre\s*:/gi,'Au quotidien :'], [/Les produits Greeneo sont con\u00e7us pour aider les consommateurs \u00e0 profiter des bienfaits potentiels du CBD, notamment pour la relaxation, la gestion du stress, le soulagement de la douleur et bien d[\u2019']autres applications\./gi,'Les produits Greeneo sont pens\u00e9s pour s\u2019int\u00e9grer simplement \u00e0 votre quotidien.'], [/D\u00e9couvrez leur gamme de produits et explorez les nombreux bienfaits potentiels du CBD pour votre sant\u00e9 et votre bien-\u00eatre\./gi,'D\u00e9couvrez leur gamme de produits.'], [/Engagement envers la Sant\u00e9 et le Bien-\u00catre\s*:/gi,'Engagement qualit\u00e9 :'], [/Engagement envers la Sant\u00e9\s*:/gi,'Engagement qualit\u00e9 :'], [/permettant aux utilisateurs de profiter d[\u2019']une alternative plus saine au tabagisme traditionnel/gi,'pour une exp\u00e9rience de vape agr\u00e9able'], [/l[\u2019']arr\u00eat du tabac n[\u2019']est pas une mince affaire/gi,'d\u00e9buter dans la vape n\u2019est pas toujours simple'], [/Tu pourras mener \u00e0 bien ton sevrage tout en profitant/gi,'Tu pourras profiter'], [/offrant ainsi une solution attrayante pour ceux qui souhaitent r\u00e9duire leur consommation de tabac ou trouver une option moins nocive/gi,'offrant ainsi une exp\u00e9rience attrayante'], [/\s*et adopter une habitude de consommation plus saine/gi,''], [/une solution plus saine et \u00e0 ton image/gi,'une solution \u00e0 ton image'], [/\s*pour r\u00e9duire ta consommation de tabac/gi,''], [/Une solution plus saine que la cigarette( traditionnelle)?/gi,'Trouvez le mod\u00e8le qui vous correspond'], [/(Vie|Vivez) une exp\u00e9rience de vape saine et responsable, tout en profitant des saveurs uniques de nos montagnes\.?/gi,'Profitez des saveurs uniques de nos montagnes.'], [/\s*,?\s*et (tes|vos) besoins? en sevrage (nicotinique|tabagique)/gi,''], [/selon (le|votre|ton) besoin pour (ton|votre) sevrage tabagique/gi,'selon vos pr\u00e9f\u00e9rences'], [/garantissant une exp\u00e9rience de vape plus saine/gi,'pour plus de confort'], [/Id\u00e9als? pour un sevrage en douceur,?\s*/gi,''], [/Arr\u00eater la cigarette peut s[\u2019']av\u00e9rer \u00eatre un rude combat, et on le sait\.\s*C[\u2019']est pourquoi nous vous proposons/gi,'Nous vous proposons'], [/Arr\u00eater la cigarette peut s[\u2019']av\u00e9rer \u00eatre un rude combat, et on le sait\.\s*/gi,''], [/d[\u2019']une alternative plus saine au tabagisme traditionnel/gi,'de d\u00e9couvrir la vape'], [/fournir des alternatives plus saines au tabagisme traditionnel en proposant/gi,'proposer'], [/Pour mener \u00e0 bien ton sevrage,?\s*/gi,'Pour bien d\u00e9marrer, '], [/\s*pour un avenir plus sain et responsable/gi,''], [/\s*et de ton sevrage \u00e9galement/gi,''], [/\s*pour votre sant\u00e9 et votre bien-\u00eatre/gi,''], [/une vape saine/gi,'une vape'], [/vape plus saine/gi,'vape plus agr\u00e9able'] ]; var ANY=/sevrage|saine?s?\b|rude combat|plus sain|sant\u00e9|bienfaits|nocive|arr\u00eat du tabac|consommation de tabac/i; function fix(root){if(!root)return;var w=document.createTreeWalker(root,NodeFilter.SHOW_TEXT,{acceptNode:function(n){var p=n.parentNode;if(!p||/^(SCRIPT|STYLE|TEXTAREA|NOSCRIPT)$/.test(p.nodeName))return NodeFilter.FILTER_REJECT;return ANY.test(n.nodeValue)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});var list=[],n;while(n=w.nextNode())list.push(n); list.forEach(function(t){var v=t.nodeValue,o=v;R.forEach(function(r){v=v.replace(r[0],r[1])});if(v!==o)t.nodeValue=v}); /* phrases coup\u00e9es entre plusieurs balises : on r\u00e9\u00e9crit le paragraphe (sans enfant de type bloc) */ [].forEach.call(root.querySelectorAll('p,li,div,h1,h2,h3,td'),function(el){if(el.querySelector('div,p,li,ul,ol,table,h1,h2,h3,h4,section,img,a,button,input'))return;var tx=el.textContent;if(!ANY.test(tx))return;var v=tx;R.forEach(function(r){v=v.replace(r[0],r[1])});if(v!==tx)el.textContent=v})} function run(){fix(document.body);setTimeout(function(){fix(document.body)},1500);setTimeout(function(){fix(document.body)},4000)} if(document.readyState!=='loading')run();else document.addEventListener('DOMContentLoaded',run)})(); }catch(e){window.console&&console.error("pv-compliance-v3",e)} /* pv-actulong-v1 */ try{ (function(){function f(){var ct=document.querySelector(".pageDetailsActu .detailActuDesc .ct");if(!ct)return;var t=ct.querySelector(".detailActuTexte"),a=ct.querySelector(".imgIntroBlog");if(!t||!a)return;var noimg=!a.querySelector("img");if(noimg){a.style.setProperty("display","none","important")}var long=(t.textContent||"").trim().length>900;if(!(noimg||long))return;if(window.innerWidth<768)return;ct.style.setProperty("display","block","important");ct.style.setProperty("max-width","860px","important");ct.style.setProperty("margin","0 auto","important");t.style.setProperty("width","auto","important");t.style.setProperty("max-width","none","important");if(!noimg){ct.insertBefore(a,t);a.style.setProperty("float","right","important");a.style.setProperty("width","300px","important");a.style.setProperty("margin","0 0 20px 28px","important");a.style.setProperty("height","auto","important")}}if(document.readyState!="loading")f();else document.addEventListener("DOMContentLoaded",f)})(); }catch(e){window.console&&console.error("pv-actulong-v1",e)} /* pv-encart-ch-v1 */ try{ (function(){function f(){var e=document.getElementById("ctl00_cphPanMilieu_panEncartPub");if(!e)return;if(!/offre sp/i.test(e.textContent))return;e.innerHTML='

BESOIN D\'UN CONSEIL ?

Bien doser son e-liquide

Taux de nicotine, ratio PG/VG, saveur : retrouvez les rep\u00e8res essentiels pour profiter au mieux de votre e-liquide.

AIDEZ-MOI \u00c0 CHOISIR

'}if(document.readyState!="loading")f();else document.addEventListener("DOMContentLoaded",f);setTimeout(f,1500);setTimeout(f,4000)})(); }catch(e){window.console&&console.error("pv-encart-ch-v1",e)} /* pv-homecoul-v1 */ try{ (function(){function f(){document.querySelectorAll(".ListeProduitsItem ul.list--couleur").forEach(function(u){if(u.dataset.pvc)return;var n=0;for(var i=0;i0?n.slice(i+3).trim():'',body=i>0?n.slice(0,i):n,w=body.split(/[^A-Z0-9]+/).filter(Boolean),type=w[0]||'';if(type==='E'&&w[1]==='LIQUIDE')type='E-LIQUIDE'; var model=w.filter(function(x,k){return k>0&&!STOP[x]&&!(type==='E-LIQUIDE'&&x==='LIQUIDE')});return{type:type,brand:brand,model:model}} function idOf(u){return +((String(u).match(/-(\d+)(?:[?#].*)?$/)||[])[1]||0)} function stockOf(d){var b=d.getElementById('ctl00_cphPanMilieu_btnAjouterPanier'),box=d.getElementById('ctl00_cphPanMilieu_panAcheter');return !!b&&!/pas disponible|rupture|indisponible|\u00e9puis\u00e9/i.test(T(box))} function oosHere(){var b=document.getElementById('ctl00_cphPanMilieu_btnAjouterPanier');return !(b&&b.offsetParent!==null)||/pas disponible|rupture|indisponible|\u00e9puis\u00e9/i.test(T(document.getElementById('ctl00_cphPanMilieu_panAcheter')))} function css(){if(document.getElementById('pv-successeur-css'))return;var st=document.createElement('style');st.id='pv-successeur-css';st.textContent= '#pvsucc{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:10px 0 14px;padding:12px 14px;border:2px solid #FFA11F;border-radius:14px;background:#FFF6E8;font:14px/1.35 "D-DIN Regular",Barlow,Arial,sans-serif;color:#111;max-width:520px}'+ '#pvsucc .t{flex:1 1 220px}#pvsucc b{font-weight:700}#pvsucc small{display:block;font-size:12.5px;color:#5b6262;margin-top:2px}'+ '#pvsucc a.go{flex:none;display:inline-block;padding:10px 16px;border-radius:999px;background:#111;color:#fff!important;font:700 13px/1 Barlow,Arial,sans-serif;text-transform:uppercase;letter-spacing:.02em;text-decoration:none!important}'+ '@media(max-width:767px){#pvsucc{padding:10px 12px;gap:10px;font-size:13.5px}#pvsucc a.go{width:100%;text-align:center}}';document.head.appendChild(st)} function show(html,url,btn){if(document.getElementById('pvsucc'))return;var info=document.querySelector('.btq-detailInfos');if(!info)return;css();var w=document.createElement('div');w.id='pvsucc'; w.innerHTML='
'+html+'Un doute ? Notre \u00e9quipe vous conseille sur WhatsApp ou en boutique.
'+btn+''; var pr=info.querySelector('.groupPrixRibbon');if(pr)pr.parentNode.insertBefore(w,pr.nextSibling);else info.insertBefore(w,info.firstChild)} function nice(s){s=(s||'').toLowerCase().replace(/(^|[\s(\x2F-])([a-z\u00e0-\u00ff])/g,function(m,a,b){return a+b.toUpperCase()});return s.replace(/ - /,' \u2013 ')} function list(){try{var c=sessionStorage.getItem('pvsucc_list');if(c)return Promise.resolve(JSON.parse(c))}catch(e){} return fetch('/api/recherche?q=a',{credentials:'same-origin'}).then(function(r){return r.json()}).then(function(a){var o=(a||[]).filter(function(x){return /\x2Fproduits\x2F/.test(x.url||'')}).map(function(x){return[x.mot,x.url.replace(/^https?:\x2F\x2F[^\x2F]+/,'')]});try{sessionStorage.setItem('pvsucc_list',JSON.stringify(o))}catch(e){}return o})} function auto(){var h1=document.querySelector('h1');if(!h1)return;var brandEl=document.querySelector('.btq-detailMarque');var curName=T(h1),bt=T(brandEl);if(bt&&curName.indexOf(' - ')<0)curName+=' - '+bt;var cur=parse(curName),curId=idOf(location.pathname);if(!cur.type)return; var gout=T(document.querySelector('.btq-detailPhotoPrincipale .blocGout .title'))||T(document.querySelector('.blocGout .title')); list().then(function(L){var here=location.pathname.replace(/-\d+$/,'');var C=L.map(function(x){var p=parse(x[0]);p.name=x[0];p.url=x[1];p.id=idOf(x[1]);return p}).filter(function(p){return (p.type===cur.type||(GRP[p.type]&&GRP[p.type]===GRP[cur.type]))&&p.url.replace(/-\d+$/,'')!==here&&N(p.name)!==N(curName)}); C.forEach(function(p){var s=0;p.model.forEach(function(t){if(cur.model.indexOf(t)>-1)s+=/\d/.test(t)?1:2});p.sc=s;p.same=cur.brand&&p.brand===cur.brand}); var succ=C.filter(function(p){return p.same&&p.sc>=2&&p.id>curId}).sort(function(a,b){return b.sc-a.sc||b.id-a.id}); var eq=C.filter(function(p){return succ.indexOf(p)<0&&p.type===cur.type}).sort(function(a,b){return (b.same?1:0)-(a.same?1:0)||b.id-a.id}); var queue=succ.slice(0,6).map(function(p){return[p,'s']}).concat(eq.slice(0,cur.type==='E-LIQUIDE'?8:5).map(function(p){return[p,'e']})); var fallback=null;(function next(i){if(i>=queue.length){if(fallback)done(fallback[0],'e');return}var p=queue[i][0],k=queue[i][1]; fetch(p.url,{credentials:'same-origin'}).then(function(r){return r.text()}).then(function(t){var d=new DOMParser().parseFromString(t,'text/html');if(!stockOf(d))return next(i+1); if(k==='e'&&cur.type==='E-LIQUIDE'&&gout){var g=T(d.querySelector('.blocGout .title'));if(N(g)!==N(gout)){if(!fallback)fallback=[p];return next(i+1)}}done(p,k)}).catch(function(){next(i+1)})})(0) function done(p,k){var nm=nice(p.name);if(k==='s')show('Ce mod\u00e8le est en rupture. Le mod\u00e8le le plus proche, '+nm+', est disponible.',p.url,'Voir ce mod\u00e8le'); else show('Ce produit est en rupture. Nous vous proposons un \u00e9quivalent disponible : '+nm+'.',p.url,'Voir l\u2019\u00e9quivalent')}}).catch(function(){})} function go(){if(!/^\x2Fproduits\x2F/.test(location.pathname)||document.getElementById('pvsucc'))return;var p=decodeURIComponent(location.pathname).toLowerCase(),m=null; MAP.forEach(function(x){if(!m&&p.indexOf(x[0])===0&&p.indexOf(x[1].toLowerCase())!==0)m=x});var oos=oosHere()||/pvtest=oos/.test(location.search);if(oos&&/^E-LIQUIDE/i.test(T(document.querySelector('h1')))){show('Ce e-liquide est en rupture. D\u00e9couvrez nos gammes d\u2019e-liquides maison, n\u00e9s dans les Alpes.','/e-liquides-des-alpes-1405','Voir nos gammes');return} if(m){show(oos?'Ce mod\u00e8le est en rupture. Son successeur, le '+m[2]+', est disponible.':'Nouvelle version disponible : le '+m[2]+'.',m[1],'Voir le '+m[2]);return} if(oos&&!window.__pvSuccAuto){window.__pvSuccAuto=1;auto()}} function run(){setTimeout(go,300);setTimeout(go,1500)} if(document.readyState!=='loading')run();else document.addEventListener('DOMContentLoaded',run)})(); }catch(e){window.console&&console.error("pv-successeur-v1",e)} /* pv-ch-fixes-v1 */ try{ (function(){var st=document.createElement("style");st.textContent="a[href*='/c/gout-6/cbd-17']{display:none!important}li:has(> a[href*='/c/gout-6/cbd-17']){display:none!important}";document.head.appendChild(st);function f(){var w=document.createTreeWalker(document.body,NodeFilter.SHOW_TEXT);var n;while(n=w.nextNode()){if(n.nodeValue.indexOf("29.90€")>-1||n.nodeValue.indexOf("29,90 €")>-1){n.nodeValue=n.nodeValue.replace(/29[.,]90 ?€/g,"29 Fr.")}}}if(document.readyState!="loading")f();else document.addEventListener("DOMContentLoaded",f);setTimeout(f,1500);setTimeout(f,4000)})(); }catch(e){window.console&&console.error("pv-ch-fixes-v1",e)}