/* ==================================================
   Essence Murale – Global Styles
   ================================================== */

/* --------------------
   Variables (globales)
-------------------- */
:root {
  --container-width: 1280px;
  --spacing: 24px;
	  --color-white: #ffffff;
  --color-black: #000000;
}

/* ==================================================
   THEME SCOPE
   Tout le site est sous .em-theme
================================================== */

.em-theme {

  /* --------------------
     Reset minimal
  -------------------- */
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  body & {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    width: 100%;
    overflow-x: hidden;
  }

  /* --------------------
     Layout global
  -------------------- */
  .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
  }

  .full-width {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
  }

	  /* ==================================================
     TITLE
  ================================================== */
	
	h1,
h2,
h3 {
  margin: 0;
  padding: 0;

  font-family: inherit;
  font-weight: 600;
  line-height: 1.2;

  color: var(--color-text);
}
	h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.02em;
  color: var(--color-text);
}
	h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.01em;
  color: var(--color-text);
}
	h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 500;
  color: var(--color-text);
}
	h1 { color: var(--color-text); }
h2 { color: var(--color-text); }
h3 { color: var(--color-link-cta); }
	
	h1 + p,
h2 + p,
h3 + p {
  margin-top: 12px;
}
  /* ==================================================
     FORMS – GLOBAL BASE
  ================================================== */

  label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
  }

  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="search"],
  input[type="tel"],
  input[type="number"],
  textarea,
  select {
    width: 100%;
    padding: 12px 14px;

    border: 1px solid var(--color-border);
    border-radius: 4px;

    background: var(--color-white);
    color: var(--color-text);

    font-size: 0.95rem;
    line-height: 1.4;

    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

  input:focus,
  textarea:focus,
  select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px rgba(160, 92, 59, 0.15);
  }

  ::placeholder {
    color: var(--color-text-muted);
  }
  /* ==================================================
     TOP BAR SLIDER
  ================================================== */
.top-bar {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.85rem;
}

.top-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 24px;
  text-align: center;
}

.top-bar-slider {
  position: relative;
  height: 1.6em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-bar-item {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;

  transform: translateY(120%);
  filter: blur(6px);

  transition:
    transform 0.6s cubic-bezier(.4,0,.2,1),
    opacity 0.4s ease,
    filter 0.6s ease;
}

.top-bar-item.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  filter: blur(0);
}


  /* ==================================================
     HEADER – DESKTOP
  ================================================== */

  .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
	  overflow: visible;
  }

  .site-header a {

    text-decoration: none;
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
  }

  .header-left img {
    height: 40px;
    width: auto;
    display: block;
  }
.header-nav {
  position: static;
}
  .header-nav > ul.menu {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
  }
	
	.header-nav > ul.menu > li {
   position: static;
	padding: 30px 0 30px 0;
}

  .header-nav a {
    font-weight: 500;
    color: var(--color-text);
  }
	
	.header-nav .menu-item-has-children > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
	.header-nav .menu-item-has-children > a::after {
  content: "";

  width: 14px;
  height: 14px;

  display: inline-block;

  background: currentColor;

  -webkit-mask: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") no-repeat center;
  mask: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") no-repeat center;

  transition: transform 0.25s ease;
}

  .header-nav a:hover {
    color: var(--color-accent);
  }

  .header-right {
    display: flex;
    align-items: center;
    gap: 28px;
  }
	
/*HEADER SOUS-MENU*/
.header-nav .sub-menu {

  position: absolute;
  left: 0;
  top: 80px; /* hauteur header */

  width: 100%;
  margin: 0;
  padding: 0;

  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);

  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
	    list-style: none;

  transition: all 0.25s ease;
  z-index: 999;
}
	.header-nav .submenu-inner {

  max-width: 840px;
  margin: 0 auto;

  display: flex;
  flex-direction: row;
  gap: 48px;
  justify-content: space-evenly;

  padding: 30px 24px;
		
}

	.submenu-cat-image {
    height: 90px;
width: auto;
  object-fit: cover;

  border-radius: 6px;
  margin-bottom: 10px;

  transition: transform 0.3s ease;
}
	.submenu-inner li:hover .submenu-cat-image {
  transform: translateY(-4px);
}

.header-nav li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
	.header-nav .sub-menu a {
display: flex;
  flex-direction: column;
  align-items: center;
  white-space: nowrap;
text-align: center;
  font-weight: 500;
		
}
	  /* ==================================================
  	LOGIN MODAL
  ================================================== */

.login-wrapper {
  position: relative;
}
	.login-toggle {

  background: none;
  border: none;
  padding: 0;
  margin: 0;

  font: inherit;
  color: var(--color-text);

  cursor: pointer;
  text-decoration: none;

  font-weight: 500;

  transition: color 0.2s ease;
}

.login-toggle:hover {
  color: var(--color-accent);
}
.login-toggle:focus {
  outline: none;
}
	.login-toggle:focus-visible {
  outline: 2px solid var(--color-accent);
}
/* dropdown */
.login-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;

  width: 360px;

  padding: 24px;

  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 8px;

  box-shadow: 0 20px 40px rgba(0,0,0,0.15);

  display: none;
  z-index: 1000;
}
.login-dropdown::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 20px;

  width: 16px;
  height: 16px;

  background: var(--color-bg-alt);
  border-left: 1px solid var(--color-border);
  border-top: 1px solid var(--color-border);

  transform: rotate(45deg);
}
	
/* visible */
.login-dropdown.active {
  display: block;
}
	
	.account-menu {
  position: relative;
}

.account-toggle {
  background: none;
  border: none;
  font-weight: 500;
  cursor: pointer;
	padding: 12px 0;
  display: inline-block;
}

.account-dropdown {
  position: absolute;
  top: 100%
  right: 0;

  min-width: 180px;

  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 6px;

  box-shadow: 0 12px 30px rgba(0,0,0,0.1);

  display: none;
  flex-direction: column;
}

.account-dropdown a {
  padding: 10px 14px;
  color: var(--color-text);
}

.account-dropdown a:hover {
  background: var(--color-bg);
}

.account-menu:hover .account-dropdown {
  display: flex;
}
	
  /* ==================================================
     CTA
  ================================================== */

.cta-sample {
  position: relative;
  display: inline-block;
  overflow: hidden;
  padding: 12px 24px;
border-radius:6px;
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 500;
  text-decoration: none;
	isolation: isolate;
	 z-index: 0!important;
}


  /* ==================================================
     HEADER – MINI CART
  ================================================== */
.cart-wrapper {
  position: relative;
  display: inline-flex;
}
.cart-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap : 5px;

   width: 50px;
   height: 45px;

  border: 1px solid var(--color-border);
  border-radius: 6px;

  color: var(--color-text);
	transition: transform 0.25s ease;
}

.cart-button:hover {
  transform: translateY(-2px);
}
	.cart-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
transition: transform 0.35s ease;
}
	.cart-icon svg {
  width: 20px;
  height: 20px;
}
	.cart-button:hover .cart-icon svg {
  transform: rotate(-8deg) scale(1.05);
}
	.cart-count {
  transition: transform 0.25s ease;
}

.cart-button:hover .cart-count {
  transform: scale(1.08);
}
	
	.mini-cart-popup {
 position: absolute;

  top: calc(100% + 8px); /* petit espace */
  right: 0;

  width: 340px;

  background: var(--color-bg);
  border: 1px solid var(--color-border);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);

  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);

  transition: all 0.25s ease;
  z-index: 999;
}
.cart-wrapper.is-open .mini-cart-popup {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
  /* ==================================================
                   SHOP TEMPLATE
  ================================================== */	  
	
/*--Template boutique header--*/	
	.shop-archive {
  width: 100%;
  padding-left: clamp(20px,4vw,80px);
  padding-right: clamp(20px,4vw,80px);
}
	.archive-header {
  text-align: center;
  margin-bottom: 40px;
}
	.shop-breadcrumb {
   display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;

  font-size: 12px;
  color: #777;
  margin :10px 0 8px 0;
}

.shop-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.shop-breadcrumb a:hover {
  color: #000;
}
	.archive-title {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 500;
  line-height: 1.2;

  margin: 0;
  letter-spacing: 0.01em;
}
	/*--Template boutique Filtre--*/
	
		.shop-filters {
 display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
justify-content: center;
  width: 100%;
  overflow-x: auto; 
  padding: 12px 0;
}
	
	.shop-filter-sticky {
		width:100%;
  position: sticky;
 top: 80px;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid #eee;

}


	.filters-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
	.filters-left {
  flex: 1;
  min-width: 0;
}
	.filters-right {
  flex: 0 0 auto;
}

	.shop-filters select,
.shop-filters input {
width:auto;
  height: 44px;
  padding: 0 14px;

  border-radius: 6px;
  background: #fff;

  font-size: 14px;
  white-space: nowrap;

  flex: 0 0 auto;  /* NE PAS STRETCH */

  transition: border-color .2s ease;
}
	.shop-filters select:focus
 {
  border-color: #000;
}
	.shop-filters button {
  height: 44px;
  padding: 0 22px;

  border: none;
   background: var(--color-accent);
  color: #fff;

  border-radius: 6px;
  cursor: pointer;

  transition: opacity .2s ease;
}

.shop-filters button:hover {
  opacity: .85;
}
	.shop-filters select {
  min-width: 180px;
}

.shop-filters input {
  width: 120px;
}
		.shop-sort select {
  height: 44px;
  padding: 0 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
}
/* ==================================================
   PRICE SLIDER
================================================== */

.price-slider {
  max-width: 220px;
  width: 100%;
  padding: 6px 0;
}
.price-values {
	    display: flex;
    justify-content: space-between;
	}
	
/* wrapper */
.range-wrap {
position: relative;
  height: 18px;
  overflow: hidden;
}

/* ligne globale */
.range-wrap::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 3px;

  background: var(--color-border);
  transform: translateY(-50%);
  border-radius: 2px;
}

/* ligne active */
.range-track {
  position: absolute;
  top: 50%;
  height: 3px;

  background: var(--color-accent);
  transform: translateY(-50%);
  border-radius: 2px;
}

/* ranges */
.range-wrap input[type="range"] {

  position: absolute;
  width: 100%;
  height: 20px;

  pointer-events: none;
  background: none;

  appearance: none;
}

/* handles */
.range-wrap input[type="range"]::-webkit-slider-thumb {

  pointer-events: auto;

  appearance: none;
  width: 14px;
  height: 14px;

  border-radius: 50%;
  background: var(--color-accent);

  cursor: pointer;
}

.range-wrap input[type="range"]::-moz-range-thumb {

  width: 14px;
  height: 14px;

  border-radius: 50%;
  background: var(--color-accent);

  border: none;
  cursor: pointer;
}
	
/*--Template boutique produits--*/	
	
	.shop-products {
  width: 100%;
padding: var(--large-padding);
}
	.shop-products .product-link,
.shop-products .product-link:hover,
.shop-products .product-link:focus,
.shop-products .product-link:active {
  text-decoration: none;
  color: inherit;
}
	
	.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(320px,1fr));
  gap: var(--large-padding);;
 width: min(1920px, 100%);
  margin-inline: auto;
}
	.product-card {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease,
  box-shadow 0.3s ease;
}
	.product-card:hover {
  transform: translateY(-4px);

}
	.product-image img {
  width: 100%;
  height: auto;
  display: block;

  transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.03);
}
	
	.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;

  gap: 14px;
  padding: 14px 16px 16px;

  border-top: 1px solid var(--color-border);
	
}

	.product-title {
  margin: 0;
  flex: 1;

  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.3;

  color: var(--color-text);
		
}
.product-price .woocommerce-Price-amount {
  margin: 0;

  font-weight: bold;
  font-size: 1rem;

  color: var(--color-accent);
  white-space: nowrap;
}
	
	.product-price del {
  color: var(--color-text-muted);
  margin-right: 6px;
}

.product-price ins {
  text-decoration: none;
}
	
	@media (max-width: 768px) {
  .shop-filters {
    gap: 8px;
  }

  .shop-filters select,
  .shop-filters input {
    flex: 1;
    min-width: 140px;
  }
}
	
  /* ==================================================
    FOOTER
  ================================================== */	  
	
	.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  margin-top: 80px;

}

.footer-inner {
padding: 60px 0;
}
	.footer-brand {
  margin-bottom: 40px;
		 text-align: center;
}

.site-footer .footer-brand svg,
 {
  margin-bottom: 8px;
  color: var(--color-text);
}
	.footer-logo {
  display: inline-block;
}
	
.footer-logo img {
  display: block;
  width: auto;
  height: 68px; /* taille idéale footer */
  max-width: 100%;
  opacity: 0.80;
  transition: opacity 0.3s ease;
}
	.footer-logo:hover img {
  opacity: 1;
}
	
	.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
	.site-footer a {
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--color-accent);
}
	.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 8px;
}
	.footer-bottom {
  border-top: 1px solid var(--color-border);
  text-align: center;
  padding: 16px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
		margin-top:60px;
}
@media (max-width: 1024px) {
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

  /* ==================================================
     WOO – GLOBAL
  ================================================== */

  .woocommerce a.button,
  .woocommerce button.button,
  .woocommerce input.button,
  .woocommerce #respond input#submit {
    padding: 12px 20px;
    border-radius: 4px;
    border: none;

    background: var(--color-accent);
    color: var(--color-white);
    font-weight: 500;

    transition: background 0.2s ease;
  }

  .woocommerce a.button:hover,
  .woocommerce button.button:hover,
  .woocommerce input.button:hover,
  .woocommerce #respond input#submit:hover {
    background: var(--color-accent-hover);
  }

  .woocommerce-Price-amount {
    color: var(--color-text);
    font-weight: 600;
  }

  del .woocommerce-Price-amount {
    color: var(--color-text-muted);
  }

  ins .woocommerce-Price-amount {
    color: var(--color-accent);
    text-decoration: none;
  }

  .woocommerce ul.products li.product {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    padding: 16px;
    border-radius: 6px;

    transition: box-shadow 0.2s ease, transform 0.2s ease;
  }

  .woocommerce ul.products li.product:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
  }

  .woocommerce ul.products li.product h2,
  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1rem;
    color: var(--color-text);
  }

  .woocommerce-message,
  .woocommerce-info {
    border-left: 4px solid var(--color-accent);
    background: var(--color-bg-alt);
    color: var(--color-text);
  }

  .woocommerce-error {
    border-left: 4px solid #c24a4a;
    background: var(--color-bg-alt);
  }
	/* ==================================================
   BUTTONS – GLOBAL WOO / CTA
================================================== */

button,
.button,
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button {

  position: relative;
  overflow: hidden;

  padding: 12px 20px;

  background: var(--color-accent);
  color: var(--color-white);

  border: none;
  border-radius: 4px;

  font-weight: 500;
  font-size: 0.95rem;

  cursor: pointer;
  text-decoration: none;

  transition: background 0.2s ease;
}

/* hover */
button:hover,
.button:hover,
.woocommerce button.button:hover,
.woocommerce a.button:hover {
  background: var(--color-accent-hover);
  color: var(--color-white);
}

  /* ==================================================
    HOME PAGE
  ================================================== */
	.hero-carousel {
  position: relative;
  width: 100%;
  height: 90vh;
  overflow: hidden;
}

.hero-track {
  position: relative;
  width: 100%;
  height: 100%;
}
	.hero-slide {
  position: absolute;
  inset: 0;

  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.8s ease, transform 1.2s ease;

  display: flex;
  align-items: center;
}

	.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}
	.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
}
	.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.6),
    rgba(0,0,0,0.2)
  );
  z-index: 1;
}
	.hero-content {
  position: relative;
  z-index: 3;
  max-width: 600px;
  margin-left: 8%;
  color: white;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 24px;
	color:white;
}
	.hero-content a {
		color:white;
		text-decoration:none;
		z-index: 3;
		position: relative;
}
	@media (max-width: 1024px) {
  .hero-carousel {
    height: 70vh;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }
}
	
	.reassurance {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}
.reassurance-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  padding: 40px 0;
}
	.reassurance-item {
  display: flex;
  flex-direction: column; /* ← IMPORTANT */
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
		width: 100%;

  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
}
	.reassurance-icon {
  font-size: 1.1rem;
  line-height: 1;
}

  /* ==================================================
     WOO – MON COMPTE
  ================================================== */

  .bde-woopageaccount .woocommerce {
      min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
  }

@media (max-width: 1024px) {
  .reassurance-inner {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}

/* --------------------
   Responsive
-------------------- */
@media (max-width: 1024px) {
  .em-theme .header-nav {
    display: none;
  }
}
}