/*
Theme Name: Mille Épices — Cabinet contemporain
Theme URI: https://mille-epices.fr/
Author: Mille Épices
Description: Thème blocs Gutenberg conçu pour une boutique WooCommerce de boîtes, pots et accessoires à épices.
Version: 0.1.12
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: mille-epices
*/

:root {
  --me-shadow-soft: 0 18px 60px rgba(16, 42, 52, .12);
  --me-shadow-card: 0 12px 36px rgba(16, 42, 52, .09);
}

html { scroll-behavior: smooth; }

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a, button, input, select, textarea { transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--wp--preset--color--safran);
  outline-offset: 3px;
}

.me-announcement { letter-spacing: .12em; text-transform: uppercase; }
.me-header { position: relative; z-index: 20; border-bottom: 1px solid rgba(16, 42, 52, .12); }
.me-brand-lockup .wp-block-site-title { margin: 0; }
.me-brand-lockup .wp-block-site-title a { text-decoration: none; }
.me-brand-lockup::before {
  content: "";
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  background: url("assets/images/embleme-mille-epices.png") center / 145% no-repeat;
}
.me-brand-lockup .wp-block-site-logo { display: none; }

.me-hero {
  min-height: clamp(620px, 78vh, 860px);
  display: flex;
  align-items: center;
  position: relative;
  background-image: url("assets/images/hero-mille-epices.png");
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.me-category-visual {
  min-height: clamp(17rem, 32vw, 26rem);
  background-position: center;
  background-size: cover;
  border-radius: 1.4rem 1.4rem 0 0;
}

.me-category-glass { background-image: url("assets/images/categorie-pots-en-verre.png"); }
.me-category-tins { background-image: url("assets/images/categorie-boites-a-epices.png"); }
.me-category-tools { background-image: url("assets/images/categorie-moulins-accessoires.png"); }
.me-category-ceramic { background-image: url("assets/images/categorie-pots-ceramique.png"); }
.me-category-magnetic { background-image: url("assets/images/categorie-pots-magnetiques.png"); }
.me-category-wood { background-image: url("assets/images/categorie-boites-bois.png"); }
.me-category-drawer { background-image: url("assets/images/categorie-pots-tiroir.png"); }
.me-category-mortars { background-image: url("assets/images/categorie-mortiers-pilons.png"); }
.me-category-labels { background-image: url("assets/images/categorie-etiquettes-accessoires.png"); }
.me-category-metal { background-image: url("assets/images/categorie-boites-metal.png"); }
.me-category-airtight { background-image: url("assets/images/categorie-boites-hermetiques.png"); }
.me-category-giftsets { background-image: url("assets/images/categorie-coffrets-epices.png"); }
.me-category-funnels { background-image: url("assets/images/categorie-entonnoirs-cuilleres.png"); }

.me-category-card {
  border: 1px solid rgba(27, 54, 50, .14);
  border-radius: 1.4rem;
  overflow: hidden;
}

.me-detail-card {
  height: 100%;
  border: 1px solid rgba(255, 248, 235, .16);
  border-radius: 1.4rem;
  overflow: hidden;
  background: rgba(255, 248, 235, .06);
  box-shadow: 0 18px 46px rgba(5, 22, 28, .16);
}

.me-detail-card .me-category-visual {
  min-height: clamp(15rem, 25vw, 21rem);
  border-radius: 0;
}

.me-detail-card .me-text-link a { color: var(--wp--preset--color--safran); }
.me-detail-card .me-text-link a:hover { color: var(--wp--preset--color--ivoire); }

.me-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 25, 32, .92) 0%, rgba(8, 25, 32, .72) 36%, rgba(8, 25, 32, .08) 68%, transparent 100%);
  z-index: -1;
}

.me-kicker { letter-spacing: .16em; text-transform: uppercase; }
.me-hero h1 { max-width: 12ch; text-wrap: balance; }
.me-hero-copy { max-width: 760px; }
.me-hero-actions .wp-block-button__link { min-height: 50px; display: inline-flex; align-items: center; }

.me-proof-strip { margin-top: -1px; }
.me-proof { border-right: 1px solid rgba(246, 238, 220, .16); }
.me-proof:last-child { border-right: 0; }

.me-section-heading { max-width: 900px; }
.me-section-heading h2 { text-wrap: balance; }

.me-need-card, .me-family-card, .me-material-card, .me-editorial-card {
  height: 100%;
  border: 1px solid rgba(16, 42, 52, .1);
  box-shadow: var(--me-shadow-card);
  overflow: hidden;
}

.me-need-card { position: relative; }
.me-need-card::after {
  content: "↗";
  position: absolute;
  right: 24px;
  top: 22px;
  color: var(--wp--preset--color--paprika);
  font-size: 1.35rem;
}

.me-family-card { min-height: 330px; display: flex; flex-direction: column; justify-content: flex-end; }
.me-family-card:hover, .me-need-card:hover { transform: translateY(-4px); }

.me-guide { box-shadow: var(--me-shadow-soft); }
.me-guide-step { border-left: 3px solid var(--wp--preset--color--safran); }

.me-product-zone .wc-block-product-template { gap: 28px; }
.me-product-zone .wc-block-components-product-image img { border-radius: 18px; }
.me-product-zone .wc-block-components-product-button__button { width: 100%; justify-content: center; }

.wp-block-navigation a { text-decoration-thickness: 1px; text-underline-offset: 5px; }
.wp-block-navigation a:hover { color: var(--wp--preset--color--paprika); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--ivoire); color: var(--wp--preset--color--bleu-nuit); }

.woocommerce .woocommerce-breadcrumb { color: var(--wp--preset--color--sauge); font-size: .85rem; }
.woocommerce div.product div.images img, .woocommerce ul.products li.product img { border-radius: 18px; }
.woocommerce span.onsale { background: var(--wp--preset--color--paprika); color: #fff; }

.me-contact-form input,
.me-contact-form textarea {
  width: 100%;
  border: 1px solid rgba(16, 42, 52, .2);
  border-radius: 12px;
  background: #fff;
  padding: .9rem 1rem;
}

.me-contact-form input[type="submit"] {
  width: auto;
  border: 0;
  border-radius: 999px;
  background: var(--wp--preset--color--safran);
  color: var(--wp--preset--color--bleu-nuit);
  font-weight: 700;
  padding: .9rem 1.5rem;
}

.me-faq-content :is(h2, h3, h4, h5) {
  margin-top: 2.25rem;
  margin-bottom: .65rem;
  color: var(--wp--preset--color--bleu-nuit);
  font-family: var(--wp--preset--font-family--serif);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.25;
}

.me-faq-content > p {
  max-width: 74ch;
}

.me-page-intro {
  max-width: 880px;
}

.me-page-shell {
  border: 1px solid rgba(16, 42, 52, .1);
  box-shadow: var(--me-shadow-card);
}

.me-page-shell :is(h2, h3, h4) {
  margin-top: 2.25rem;
  color: var(--wp--preset--color--bleu-nuit);
}

.me-page-shell > :first-child { margin-top: 0; }

.me-account-layout .woocommerce-MyAccount-navigation,
.me-account-layout .woocommerce-MyAccount-content {
  border-radius: 18px;
  background: #fff;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--me-shadow-card);
}

.me-account-layout .woocommerce-MyAccount-navigation ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.me-account-layout .woocommerce-MyAccount-navigation li + li {
  border-top: 1px solid rgba(16, 42, 52, .1);
}

.me-account-layout .woocommerce-MyAccount-navigation a {
  display: block;
  padding: .8rem 0;
  font-weight: 700;
}

.wc-block-cart,
.wc-block-checkout,
.woocommerce-cart-form,
.woocommerce-checkout {
  --wp--preset--color--contrast: var(--wp--preset--color--bleu-nuit);
}

.wc-block-components-sidebar-layout,
.woocommerce-cart-form,
.woocommerce-checkout-review-order {
  border-radius: 20px;
}

.woocommerce ul.products,
.wc-block-product-template {
  gap: clamp(1.25rem, 3vw, 2rem);
}

.woocommerce ul.products li.product,
.wc-block-product {
  border-radius: 20px;
  background: #fff;
  padding: 1rem;
  box-shadow: var(--me-shadow-card);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.wc-block-components-product-title {
  font-family: var(--wp--preset--font-family--editoriale);
}

@media (max-width: 900px) {
  .mob-menu-header-holder,
  .mobmenu-overlay,
  .mobmenu-panel { display: none !important; }
  .me-hero { min-height: 700px; background-position: 62% center; }
  .me-hero::before { background: linear-gradient(90deg, rgba(8, 25, 32, .94) 0%, rgba(8, 25, 32, .82) 56%, rgba(8, 25, 32, .28) 100%); }
  .me-proof { border-right: 0; border-bottom: 1px solid rgba(246, 238, 220, .16); }
  .me-account-layout .woocommerce-MyAccount-navigation { margin-bottom: 1.5rem; }
}

@media (max-width: 600px) {
  html { scroll-behavior: auto; }
  .me-announcement { font-size: .68rem !important; }
  .me-brand-lockup::before { width: 44px; height: 44px; flex-basis: 44px; }
  .me-hero { min-height: 680px; align-items: flex-end; background-position: 68% center; }
  .me-hero::before { background: linear-gradient(0deg, rgba(8, 25, 32, .98) 0%, rgba(8, 25, 32, .82) 58%, rgba(8, 25, 32, .35) 100%); }
  .me-hero h1 { font-size: clamp(2.7rem, 13vw, 4.2rem) !important; }
  .me-hero-copy { padding-left: 1.25rem; padding-right: 1.25rem; }
  .me-hero-actions { width: 100%; }
  .me-hero-actions .wp-block-button { width: 100%; }
  .me-hero-actions .wp-block-button__link { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
