@font-face {
	font-weight: normal;
	font-style: normal;
	font-family: "woodmart-font";
	src: url("//novacure.tn/wp-content/themes/woodmart/fonts/woodmart-font-3-400.woff2?v=8.2.7") format("woff2");
}

@font-face {
	font-family: "star";
	font-weight: 400;
	font-style: normal;
	src: url("//novacure.tn/wp-content/plugins/woocommerce/assets/fonts/star.eot?#iefix") format("embedded-opentype"), url("//novacure.tn/wp-content/plugins/woocommerce/assets/fonts/star.woff") format("woff"), url("//novacure.tn/wp-content/plugins/woocommerce/assets/fonts/star.ttf") format("truetype"), url("//novacure.tn/wp-content/plugins/woocommerce/assets/fonts/star.svg#star") format("svg");
}

@font-face {
	font-family: "WooCommerce";
	font-weight: 400;
	font-style: normal;
	src: url("//novacure.tn/wp-content/plugins/woocommerce/assets/fonts/WooCommerce.eot?#iefix") format("embedded-opentype"), url("//novacure.tn/wp-content/plugins/woocommerce/assets/fonts/WooCommerce.woff") format("woff"), url("//novacure.tn/wp-content/plugins/woocommerce/assets/fonts/WooCommerce.ttf") format("truetype"), url("//novacure.tn/wp-content/plugins/woocommerce/assets/fonts/WooCommerce.svg#WooCommerce") format("svg");
}

:root {
	--wd-text-font: "Poppins", Arial, Helvetica, sans-serif;
	--wd-text-font-weight: 600;
	--wd-text-color: #767676;
	--wd-text-font-size: 16px;
	--wd-title-font: "Poppins", Arial, Helvetica, sans-serif;
	--wd-title-font-weight: 500;
	--wd-title-color: #242424;
	--wd-entities-title-font: "Poppins", Arial, Helvetica, sans-serif;
	--wd-entities-title-font-weight: 500;
	--wd-entities-title-color: #333333;
	--wd-entities-title-color-hover: rgb(51 51 51 / 65%);
	--wd-alternative-font: "Poppins", Arial, Helvetica, sans-serif;
	--wd-widget-title-font: "Poppins", Arial, Helvetica, sans-serif;
	--wd-widget-title-font-weight: 500;
	--wd-widget-title-transform: none;
	--wd-widget-title-color: #333;
	--wd-widget-title-font-size: 16px;
	--wd-header-el-font: "Poppins", Arial, Helvetica, sans-serif;
	--wd-header-el-font-weight: 500;
	--wd-header-el-transform: none;
	--wd-header-el-font-size: 16px;
	--wd-brd-radius: 10px;
	--wd-primary-color: rgb(161,207,222);
	--wd-alternative-color: rgb(194,209,151);
	--wd-link-color: rgb(161,207,222);
	--wd-link-color-hover: rgb(145,186,199);
	--btn-default-bgcolor: rgb(36,36,36);
	--btn-default-bgcolor-hover: rgb(51,51,51);
	--btn-accented-bgcolor: rgb(161,207,222);
	--btn-accented-bgcolor-hover: rgb(145,186,199);
	--btn-font-weight: 500;
	--btn-transform: capitalize;
	--btn-font-size: 14px;
	--wd-form-brd-width: 1px;
	--notices-success-bg: #459647;
	--notices-success-color: #fff;
	--notices-warning-bg: #E0B252;
	--notices-warning-color: #fff;
}
.wd-popup.wd-age-verify {
	--wd-popup-width: 500px;
}
.wd-popup.wd-promo-popup {
	background-color: #111111;
	background-image: none;
	background-repeat: no-repeat;
	background-size: contain;
	background-position: left center;
	--wd-popup-width: 800px;
}
:is(.woodmart-archive-shop .wd-builder-off,.wd-wishlist-content,.related-and-upsells,.cart-collaterals,.wd-shop-product,.wd-fbt) .wd-products-with-bg, :is(.woodmart-archive-shop .wd-builder-off,.wd-wishlist-content,.related-and-upsells,.cart-collaterals,.wd-shop-product,.wd-fbt) .wd-products-with-bg :is(.wd-product,.wd-cat) {
	--wd-prod-bg:rgb(255,255,255);
	--wd-bordered-bg:rgb(255,255,255);
}
:is(.woodmart-woocommerce-layered-nav, .wd-product-category-filter) .wd-scroll-content {
	max-height: 223px;
}
.wd-page-title {
	background-color: rgb(245,247,248);
	background-image: none;
	background-size: cover;
	background-position: center center;
}
.wd-footer {
	background-color: rgb(36,36,36);
	background-image: none;
}
html .page-title > .container > .title, html .page-title .wd-title-wrapp > .title {
	font-size: 28px;
}
.whb-top-bar .wd-nav.wd-nav-secondary > li > a {
	font-size: 13px;
}
html .wd-nav-mobile > li > a {
	text-transform: none;
}
html .wd-nav-mobile .wd-sub-menu li a {
	text-transform: none;
}
html .product.wd-cat .wd-entities-title, html .product.wd-cat.cat-design-replace-title .wd-entities-title, html .wd-masonry-first .wd-cat:first-child .wd-entities-title {
	text-transform: none;
}
html table th {
	text-transform: none;
}
html .wd-checkout-steps li {
	text-transform: none;
}
.page .wd-page-content {
	background-color: rgb(245,247,248);
	background-image: none;
}
.woodmart-archive-shop:not(.single-product) .wd-page-content {
	background-color: rgb(245,247,248);
	background-image: none;
}
.single-product .wd-page-content {
	background-color: rgb(245,247,248);
	background-image: none;
}
.woodmart-archive-blog .wd-page-content {
	background-color: rgb(245,247,248);
	background-image: none;
}
.single-post .wd-page-content {
	background-color: rgb(245,247,248);
	background-image: none;
}
.woodmart-archive-portfolio .wd-page-content {
	background-color: rgb(245,247,248);
	background-image: none;
}
.single-portfolio .wd-page-content {
	background-color: rgb(245,247,248);
	background-image: none;
}
body, [class*=color-scheme-light], [class*=color-scheme-dark], .wd-search-form[class*="wd-header-search-form"] form.searchform, .wd-el-search .searchform {
	--wd-form-bg: rgb(255,255,255);
}
.product-labels .product-label.onsale {
	background-color: rgb(194,209,151);
}
.product-labels .product-label.new {
	background-color: rgb(194,209,151);
}
.product-labels .product-label.featured {
	background-color: rgb(194,209,151);
}
.wd-popup.popup-quick-view {
	--wd-popup-width: 920px;
}

@media (max-width: 1024px) {
	html .page-title > .container > .title, html .page-title .wd-title-wrapp > .title {
		font-size: 24px;
	}
	[class*="thumbs-grid-bottom"] .woocommerce-product-gallery__wrapper.wd-grid {
		--wd-col: 1;
	}

}

@media (max-width: 768.98px) {
	html .page-title > .container > .title, html .page-title .wd-title-wrapp > .title {
		font-size: 22px;
	}
	[class*="thumbs-grid-bottom"] .woocommerce-product-gallery__wrapper.wd-grid {
		--wd-col: 1;
	}

}
:root{
--wd-container-w: 1660px;
--wd-form-brd-radius: 35px;
--btn-default-color: #fff;
--btn-default-color-hover: #fff;
--btn-accented-color: #fff;
--btn-accented-color-hover: #fff;
--btn-default-brd-radius: 35px;
--btn-default-box-shadow: none;
--btn-default-box-shadow-hover: none;
--btn-accented-brd-radius: 35px;
--btn-accented-box-shadow: none;
--btn-accented-box-shadow-hover: none;
}

@media (min-width: 1660px) {
section.elementor-section.wd-section-stretch > .elementor-container {
margin-left: auto;
margin-right: auto;
}
}


@font-face {
	font-family: "Satoshi";
	src: url("//novacure.tn/wp-content/uploads/2024/10/Satoshi-Medium.woff") format("woff");
	font-weight: 500;
	font-style: normal;
}

@font-face {
	font-family: "Satoshi";
	src: url("//novacure.tn/wp-content/uploads/2024/10/Satoshi-Bold.woff") format("woff");
	font-weight: 600;
	font-style: normal;
}

(function () {
  var TARGET = 0.80;      // le flacon occupe 80% de la hauteur du cadre
  var MIN = 0.6, MAX = 3.5; // limites du scale
  var SEL = 'img.wp-post-image';

  function measure(img) {
    var url = img.currentSrc || img.src;
    if (!url || url.indexOf('data:') === 0) return;
    var im = new Image();
    im.crossOrigin = 'anonymous';
    im.onload = function () {
      try {
        var W = 300, H = Math.round(W * im.naturalHeight / im.naturalWidth);
        var c = document.createElement('canvas'); c.width = W; c.height = H;
        var ctx = c.getContext('2d', { willReadFrequently: true });
        ctx.drawImage(im, 0, 0, W, H);
        var d = ctx.getImageData(0, 0, W, H).data;
        var cols = new Array(W).fill(0), rows = new Array(H).fill(0), x, y, i;
        for (y = 0; y < H; y++) for (x = 0; x < W; x++) {
          i = (y * W + x) * 4;
          if (d[i + 3] > 20 && (d[i] < 232 || d[i + 1] < 232 || d[i + 2] < 232)) { cols[x]++; rows[y]++; }
        }
        var minX = 0, maxX = W - 1, minY = 0, maxY = H - 1;
        while (minX < W && cols[minX] < 3) minX++;
        while (maxX > 0 && cols[maxX] < 3) maxX--;
        while (minY < H && rows[minY] < 3) minY++;
        while (maxY > 0 && rows[maxY] < 3) maxY--;
        if (maxX - minX < 20 || maxY - minY < 20) { console.log('NV rien détecté', url); return; }
        img.dataset.nv = JSON.stringify({
          r: im.naturalWidth / im.naturalHeight,
          fh: (maxY - minY + 1) / H,
          cx: (minX + maxX + 1) / 2 / W,
          cy: (minY + maxY + 1) / 2 / H
        });
        apply(img);
        console.log('NV OK', url, img.dataset.nv);
      } catch (e) { console.log('NV erreur', e.message, url); }
    };
    im.onerror = function () { console.log('NV image non chargée', url); };
    im.src = url;
  }

  function apply(img) {
    if (!img.dataset.nv) return;
    var m = JSON.parse(img.dataset.nv);
    var bw = img.clientWidth, bh = img.clientHeight;
    if (!bw || !bh) return;
    var dw, dh;
    if (m.r >= bw / bh) { dw = bw; dh = bw / m.r; } else { dh = bh; dw = bh * m.r; }
    var s = Math.max(MIN, Math.min(MAX, (TARGET * bh) / (m.fh * dh)));
    var tx = -s * (m.cx - 0.5) * dw, ty = -s * (m.cy - 0.5) * dh;
    img.style.setProperty('transform-origin', 'center center', 'important');
    img.style.setProperty('transform', 'translate(' + tx + 'px,' + ty + 'px) scale(' + s + ')', 'important');
  }

  function run() {
    document.querySelectorAll(SEL).forEach(function (img) {
      if (img.dataset.nvDone) return;
      img.dataset.nvDone = '1';
      measure(img);
    });
  }

  var t;
  function later() { clearTimeout(t); t = setTimeout(run, 300); }
  document.addEventListener('DOMContentLoaded', run);
  window.addEventListener('load', run);
  [500, 1500, 3000].forEach(function (ms) { setTimeout(run, ms); });
  new MutationObserver(later).observe(document.body, { childList: true, subtree: true });
  window.addEventListener('resize', function () {
    document.querySelectorAll(SEL).forEach(apply);
  });
})();