/********************************************************
			Coderplace Custom Styles
********************************************************/

/* ===== MENU BELLE ÉPOQUE — desktop uniquement ===== */

/* abril-fatface-regular - latin */
@font-face {
  font-display: swap; 
  font-family: 'Abril Fatface';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/abril/abril-fatface-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}


@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Baskervville';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/baskervville/baskervville-v20-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}


/* Barre décorative sous le menu */
.header-top-main.bg_main {
  border-top: 3px solid #2DB2AC;
  position: relative;
}
.header-top-main.bg_main::after {
  content: '';
  display: block;
  height: 2px;
  background: #2DB2AC;
}

/* Tous les liens du menu principal desktop */
#_top_main_menu #top-menu > li > a.dropdown-item {
  font-family: 'Abril Fatface', serif !important;
  font-size: 20px !important;
  letter-spacing: .05em;
  text-transform: none;
  text-decoration: none;
  padding: 15px 14px 13px;
  position: relative;
  transition: color .2s, background .2s;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Soulignement animé au hover */
#_top_main_menu #top-menu > li > a.dropdown-item::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  right: 50%;
  height: 3px;
  background: currentColor;
  transition: left .22s, right .22s;
  border-radius: 2px 2px 0 0;
}
#_top_main_menu #top-menu > li > a.dropdown-item:hover::before {
  left: 8%;
  right: 8%;
}
#_top_main_menu #top-menu > li > a.dropdown-item:hover {
  background: rgba(255,255,255,.04);
  text-decoration: none;
}

/* Couleurs par item — ciblage par ID exact */
#_top_main_menu #lnk-accueil   > a { color: #2DB2AC !important; }
#_top_main_menu #category-21   > a { color: #EF9F27 !important; }
#_top_main_menu #category-23   > a { color: #F0997B !important; }
#_top_main_menu #category-24   > a { color: #5DCAA5 !important; }
#_top_main_menu #category-22   > a { color: #AFA9EC !important; }
#_top_main_menu #more_menu     > a { color: #888780 !important; }

/* Séparateurs entre items */
#_top_main_menu #top-menu > li > a.dropdown-item::after {
  content: ' ✦';
  font-size: 10px;
  color: #444;
  margin-left: 14px;
  vertical-align: middle;
  position: static;
  background: none;
  height: auto;
  width: auto;
}
#_top_main_menu #top-menu > li:last-child > a.dropdown-item::after {
  content: '';
}

/* Item actif */
#_top_main_menu #top-menu > li.current > a.dropdown-item {
  font-style: italic;
}
#_top_main_menu #top-menu > li.current > a.dropdown-item::before {
  left: 8%;
  right: 8%;
}

/* Sous-menu "Plus" — dropdown */
#_top_main_menu .popover.sub-menu {
  border-top: 3px solid #2DB2AC;
}
#_top_main_menu .popover.sub-menu .dropdown-item {
  font-family: 'Abril Fatface', serif !important;
  font-size: 17px !important;
  letter-spacing: .04em;
  color: #2a2a26 !important;
}
#_top_main_menu .popover.sub-menu .dropdown-item:hover {
  color: #2DB2AC !important;
  background: #f8f7f3;
}

.breadcrumb ol li::after {
  content: ' >';
  color: #999;
  margin: 0 4px;
}
.breadcrumb ol li:last-child::after {
  content: '';
}
.breadcrumb ol li a::after {
  display: none !important;
}
.breadcrumb-current {
  color: #999;
  font-style: italic;
}

/********************************************************
			FULL WIDTH CUSTOM STYLES
********************************************************/
/* Barre de recherche full width desktop */
#search_block_top {
  width: 100% !important;
  max-width: 100% !important;
  flex: 1;
}

.cpsearch-main {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

#search_query_top {
  height: 50px !important;
  font-size: 15px !important;
  border: 2px solid #2DB2AC !important;
  border-radius: 8px 0 0 8px !important;
  padding: 0 16px !important;
  flex: 1;
}

#search_block_top .btn.btn-primary {
  height: 50px !important;
  padding: 0 24px !important;
  font-size: 14px !important;
  background: #2DB2AC !important;
  border-color: #2DB2AC !important;
  border-radius: 0 8px 8px 0 !important;
  white-space: nowrap;
}

#search_block_top .btn.btn-primary:hover {
  background: #1d9088 !important;
  border-color: #1d9088 !important;
}

/* Cacher le menu vertical desktop */
@media (min-width: 992px) {
  #cp_sidevertical_menu_top {
    display: none !important;
  }

  .menu-container {
    display: none !important;
  }

  /* Masquer le bloc livraison mobile sur desktop */
  .header-livraison-mobile {
    display: none !important;
  }
}

/* ===== FIX RESPONSIVE GRILLE PRODUITS ===== */

/* 1. Neutraliser le .row en mode GRID uniquement */
.product_list.grid .product-miniature > .row {
  display: block !important;
  margin: 0 !important;
}

/* 2. Conteneur flex — GRID uniquement */
.product_list.grid.gridcount {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
  margin: 0 -8px !important;
}

/* 3. Article en GRID — flex column pour hauteur uniforme */
.product_list.grid article.product_item {
  display: flex !important;
  flex-direction: column !important;
  padding: 8px !important;
  box-sizing: border-box !important;
}

/* 4. Miniature en GRID — occupe toute la hauteur de la carte */
.product_list.grid .product-miniature {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

/* 5. Description pousse le bas vers le bas */
.product_list.grid .product-description {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
}

/* 6. Titre limité à 2 lignes — aligne les prix sur toutes les cartes */
.product_list.grid .product-title {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  min-height: 2.6em !important;
  line-height: 1.3 !important;
  margin-bottom: 6px !important;
}

/* 7. Description courte — hauteur fixe 2 lignes pour aligner les prix */
.product_list.grid .product-detail {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  min-height: 2.8em !important;
  line-height: 1.4 !important;
  font-size: 13px !important;
}

/* 8. Prix et bouton toujours collés en bas */
.product_list.grid .product-bottom {
  margin-top: auto !important;
}

/* Desktop : 4 colonnes */
@media (min-width: 992px) {
  .product_list.grid article.product_item {
    width: 25% !important;
    flex: 0 0 25% !important;
    max-width: 25% !important;
  }
}

/* Tablette : 2 colonnes */
@media (min-width: 576px) and (max-width: 991px) {
  .product_list.grid article.product_item {
    width: 50% !important;
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }
}

/* Mobile : 2 colonnes compactes */
@media (max-width: 575px) {
  .product_list.grid article.product_item {
    width: 50% !important;
    flex: 0 0 50% !important;
    max-width: 50% !important;
    padding: 4px !important;
  }

  /* Titre produit plus petit */
  .product_list.grid article.product_item .product-title a {
    font-size: 11px !important;
    line-height: 1.3 !important;
  }

  /* Image propre */
  .product_list.grid article.product_item .thumbnail-container img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
  }

  /* Bouton panier */
  .product_list.grid article.product_item .add-to-cart {
    font-size: 11px !important;
    padding: 6px 4px !important;
    width: 100% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* Prix */
  .product_list.grid article.product_item .price {
    font-size: 13px !important;
  }

  /* Cacher compare/wishlist texte */
  .product_list.grid article.product_item .st-compare-title {
    display: none !important;
  }

  /* Masquer description courte sur mobile */
  .product_list.grid article.product_item .product-detail {
    display: none !important;
  }
}

@media (max-width: 362px) {
  .product_list.grid article.product_item {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}

/* ===== VUE LISTE — restaurer le comportement natif du thème ===== */

/* Conteneur liste : annuler le flex du grid */
.product_list.list,
.product_list.list.gridcount {
  display: block !important;
  flex-wrap: unset !important;
  align-items: unset !important;
  margin: 0 !important;
}

/* Article en liste : pleine largeur, pas de flex colonne */
.product_list.list article.product_item {
  display: block !important;
  width: 100% !important;
  flex: none !important;
  max-width: 100% !important;
  padding: 8px 0 !important;
  box-sizing: border-box !important;
}

/* Miniature en liste : hauteur auto, pas de flex */
.product_list.list .product-miniature {
  display: block !important;
  height: auto !important;
  flex-direction: unset !important;
}

/* Rétablir le .row Bootstrap en liste (image à gauche, texte à droite) */
.product_list.list .product-miniature > .row {
  display: flex !important;
  flex-direction: row !important;
  margin: 0 -15px !important;
  align-items: flex-start !important;
}

/* Annuler les overrides de titre/description en liste */
.product_list.list .product-title {
  display: block !important;
  -webkit-line-clamp: unset !important;
  overflow: visible !important;
  min-height: unset !important;
}

.product_list.list .product-detail {
  display: block !important;
  -webkit-line-clamp: unset !important;
  overflow: visible !important;
  min-height: unset !important;
}

/* Annuler le margin-top auto du product-bottom en liste */
.product_list.list .product-bottom {
  margin-top: 0 !important;
}

/* Annuler le flex sur la description en liste */
.product_list.list .product-description {
  flex: unset !important;
  display: block !important;
}

/* ─────────────────────────────────────────────────────
   Fix CLS carousel #carousel
   Réserve l'espace avant que le JS initialise le slider.
   Remplacer les valeurs par celles mesurées à l'étape 1.
   ───────────────────────────────────────────────────── */

/* Desktop */
#carousel,
#carousel.carousel {
  min-height: 480px;            /* ← Remplacer par la hauteur mesurée */
  background-color: #f5f5f5;    /* Placeholder neutre pendant le chargement */
  overflow: hidden;
}

/* Tablette */
@media (max-width: 991px) {
  #carousel,
  #carousel.carousel {
    min-height: 320px;          /* ← Adapter selon DevTools en mode tablet */
  }
}

/* Mobile */
@media (max-width: 575px) {
  #carousel,
  #carousel.carousel {
    min-height: 200px;          /* ← Adapter selon DevTools en mode mobile */
  }
}

a.shop_logo img.logo{width:300px;}


.tm-carousel {
  display: none;
  position: relative;
  float: left;
  width: 100%;
  margin: 0;
}
.cp-carousel {
  display: none;
  position: relative;
  float: left;
  width: 100%;
  margin: 0;
}
.owl-carousel .owl-wrapper {
  display: none;
  position: relative;
  -webkit-transform: translate3d(0px, 0px, 0px);
  -ms-transform: translate3d(0px, 0px, 0px);
  -o-transform: translate3d(0px, 0px, 0px);
  -moz-transform: translate3d(0px, 0px, 0px);
  display: flex !important;
  flex-wrap: wrap;
}
.owl-carousel .owl-wrapper:after {
  content: ".";
  display: block;
  clear: both;
  visibility: hidden;
  line-height: 0;
  height: 0;
}
.owl-carousel .owl-wrapper-outer {
  overflow-x: clip;
  position: relative;
  float: left;
  width: 100%;
  padding: 0;
}
.owl-carousel .owl-wrapper-outer.autoHeight {
  -webkit-transition: height 500ms ease-in-out;
  -moz-transition: height 500ms ease-in-out;
  -ms-transition: height 500ms ease-in-out;
  -o-transition: height 500ms ease-in-out;
  transition: height 500ms ease-in-out; 
}
.owl-carousel .owl-item {
  float: left;
  display: flex;
  height: auto;
}
#cptestimonial .owl-wrapper-outer .owl-item {
  display: block;
}
.owl-carousel .owl-item .manu_image a {
  display: inline-block;
}
.owl-carousel .owl-item .manu_image a img {
  max-width: 100%;
}

.owl-carousel .owl-wrapper,
.owl-carousel .owl-item {
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  -ms-backface-visibility: hidden;
  -webkit-transform: translate3d(0, 0, 0);
  -moz-transform: translate3d(0, 0, 0);
  -ms-transform: translate3d(0, 0, 0);
  text-align: center;
}

.customNavigation {
	position: absolute;
	z-index: 9;
	width: 100%;
	top: 50%;
	direction: ltr !important;
	right: 0;
	left: auto;
  opacity: 0;
  -khtml-opacity: 0;
  -webkit-opacity: 0;
  -moz-opacity: 0;
}
.products .customNavigation { top: 48%; }
.cpcategorylist .products .customNavigation { top: 37%; }
.cpcategorylist .customNavigation i.prev{ left: -25px; }
.cpcategorylist .customNavigation i.next{ right: -25px; }
.testimonial-block-part .customNavigation { top: 40%; }

.tmcategorylist:hover .customNavigation {
	opacity: 1;
	-khtml-opacity: 1;
	-webkit-opacity: 1;
	-moz-opacity: 1;
}
.customNavigation a.prev::before {
	content: "\E314";
	font-family: "Material Icons";
	position: absolute;
	font-size: 20px;
	right: 5px;
	top: -1px;
	color: #808080;
}
.customNavigation a.next::before {
	content: "\E315";
	font-family: "Material Icons";
	position: absolute;
	font-size: 20px;
	position: absolute;
	right: 3px;
	top: -1px;
	color: #808080;
}
#tmtestimonialcmsblock .customNavigation {
  top: -24px;
  z-index: 5;
  right: 15px;
}
#index #tmtestimonialcmsblock .customNavigation {
  top: -40px;
  right: 0;
}
.special-products .customNavigation {
	top: 52%;
}
.special-products:hover .customNavigation, 
.products:hover .customNavigation,
.testimonial-block-part .container:hover .customNavigation,
.tmblog-latest:hover .customNavigation, 
#tminstagramblock:hover .customNavigation,
.product-accessories:hover .customNavigation,
.productscategory-products:hover .customNavigation{
  opacity: 1;
  -khtml-opacity: 1;
  -webkit-opacity: 1;
  -moz-opacity: 1;
}
.lastest_block .customNavigation {
	top: 44%;
}
.customNavigation i {
	color: #222 !important;
	cursor: pointer;
	font-size: 0;
	font-weight: 500;
	height: 38px;
	line-height: 32px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	text-align: center;
	width: 38px;
	background: transparent;
	border-radius: 0;
	font-style: unset;
	box-shadow: 0px 0px 16px 0px rgba(0,0,0,0.11);
}

.customNavigation i.prev {
	background: transparent;
	right: auto;
	background: #fff;
	border-radius: 50%;
	left: -5px;
}
.customNavigation i.next {
	background: transparent;
	right: 0px;
	background: #fff;
	border-radius: 50%;
	right: -5px;
}
.tmcategorylist .customNavigation i.prev, 
#tminstagramblock .btn.prev.instagram_prev,
.special-products .customNavigation i.prev,
.btn.prev.accessories_prev {
	left: -20px;
}
.testimonial-block-part .customNavigation i.prev{
  left: 12px;
}
.tmcategorylist .customNavigation i.next, 
#tminstagramblock .btn.next.instagram_next,
.special-products .customNavigation i.next,
.btn.next.accessories_next  {
  right: -20px;
}
.testimonial-block-part .customNavigation i.next{
  right: 12px;
}
.customNavigation i.prev::before {
	content: '';
	-webkit-mask-image: url(../img/megnor/pro-left.svg);
	-webkit-mask-position: center;
	-webkit-mask-repeat: no-repeat;
	mask-image: url(../img/megnor/pro-left.svg);
	mask-position: center;
	mask-repeat: no-repeat;
	background-color: #000;
	mask-size: 14px;
	font-size: 14px;
	width: 38px;
	height: 38px;
	display: block;
  -webkit-mask-size: 14px;
}
#tmtestimonialcmsblock .customNavigation i.prev::before {
  right: 1px;
  font-weight: 500;
}
#tmtestimonialcmsblock .customNavigation i.next::before {
  right: 0;
  font-weight: 500;
}
.customNavigation i.next::before {
	content: '';
	-webkit-mask-image: url(../img/megnor/pro-right.svg);
	-webkit-mask-position: center;
	-webkit-mask-repeat: no-repeat;
	mask-image: url(../img/megnor/pro-right.svg);
	mask-position: center;
	mask-repeat: no-repeat;
	background-color: #000;
	mask-size: 14px;
	font-size: 14px;
	width: 38px;
	height: 38px;
	display: block;
  -webkit-mask-size: 14px;
}
.customNavigation i.next:hover::before,.customNavigation i.prev:hover::before  {
  color: #fff;
}
#cpleftbanner1 img,
#cpleftbanner2 img {
  max-width: 100%;
}
#cpleftbanner1 li,
#cpleftbanner2 li {
  overflow: hidden;
  position: relative;
  float: left;
  border-radius: 5px;
}
#cpleftbanner1 li a,
#cpleftbanner2 li a {
  display: inline-block;
  position: relative;
  overflow: hidden;
  vertical-align: top;
}
.footer-container .links.lastest_block .customNavigation i.prev:hover {
  color: #9bbab1 !important;
}
.footer-container .links.lastest_block .customNavigation i.next:hover {
  color: #9bbab1 !important;
}

@media (max-width: 1449px) {
  .tmcategorylist .customNavigation i.prev, 
  .testimonial-block-part .customNavigation i.prev, 
  #tminstagramblock .btn.prev.instagram_prev,
  .special-products .customNavigation i.prev,
  .btn.prev.accessories_prev {
    left: -15px;
  }
  .tmcategorylist .customNavigation i.next, 
  .testimonial-block-part .customNavigation i.next,
   #tminstagramblock .btn.next.instagram_next,
   .special-products .customNavigation i.next,
   .btn.next.accessories_next {
    right: -15px;
  }
  .customNavigation i.next {
    right: 0;
  }
  .customNavigation i.prev {
    left: 0;
  }
}
@media (max-width: 1199px) {
  #tmtestimonialcmsblock .customNavigation {
    top: -36px;
    z-index: 5;
    right: -18px;
  }
}

@media (max-width: 991px) {
  #cpleftbanner1 li img,
  #cpleftbanner2 li a {
    width: auto;
  }
}
@media (max-width: 767px) {
  .customNavigation {
    opacity: 1;
    -khtml-opacity: 1;
    -webkit-opacity: 1;
    -moz-opacity: 1;
  }
  .tmcategorylist .customNavigation i.prev, 
  .testimonial-block-part .customNavigation i.prev, 
  #tminstagramblock .btn.prev.instagram_prev, 
  .special-products .customNavigation i.prev,
  .btn.prev.accessories_prev {
    left: 0;
  }
  .tmcategorylist .customNavigation i.next, 
  .testimonial-block-part .customNavigation i.next,
   #tminstagramblock .btn.next.instagram_next, 
   .special-products .customNavigation i.next,
   .btn.next.accessories_next {
    right: 0;
  }
  #main .images-container .js-qv-mask .customNavigation {
    top: 30%;
  }
  .quickview .mask.additional_slider .customNavigation i.prev {
    left: -10px !important;
  }
  .quickview .mask.additional_slider .customNavigation i.next {
    right: -10px !important;
  }
  .btn.next.brand_next {
    left: auto;
    right: 0;
    position: absolute;
  }
  .btn.prev.brand_prev {
    left: 0;
    right: auto;
  }
  .customNavigation i.next {
    left: auto;
    right: 0;
  }
}
@media (max-width: 480px) {
}
/********************************************************
    HEADER — Logo + Livraison gratuite
********************************************************/
.header-livraison-mobile {
    display: none;
}

/* ── DESKTOP & TABLETTE (≥ 576px) ── */
@media (min-width: 576px) {
    .header-center {
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important;
        justify-content: center !important;
        gap: 16px !important;
    }
    .header-center #_desktop_logo {
        display: flex !important;
        align-items: center !important;
    }
    .header-livraison-mobile {
        display: flex !important;
        align-items: center !important;
        align-self: stretch !important;
        box-sizing: border-box !important;
    }
    .livraison-badge {
        height: 60px !important;
        width: auto !important;
    }
}

/* ── MOBILE (< 576px) : badge sous le logo ── */
@media (max-width: 575px) {
    .header-top .header-div .container {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 8px 10px !important;
        gap: 0 !important;
    }
    .header-left {
        flex: 0 0 auto !important;
        display: flex !important;
        align-items: center !important;
    }
    .header-center {
        flex: 1 1 auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 3px !important;
        overflow: hidden !important;
    }
    .header-center #_desktop_logo img.logo {
        width: 90px !important;
        height: auto !important;
    }
    .header-right {
        flex: 0 0 auto !important;
        display: flex !important;
        align-items: center !important;
    }
    .header-livraison-mobile {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    .livraison-badge {
        width: 110px !important;
        height: auto !important;
        display: block !important;
    }
}

/* ── TRÈS PETIT MOBILE (< 380px) ── */
@media (max-width: 380px) {
    .header-center #_desktop_logo img.logo {
        width: 70px !important;
    }
    .livraison-badge {
        width: 90px !important;
    }
}