:root {
  --fm-black: #111111;
  --fm-soft-black: #1f1f1f;
  --fm-white: #f7f6f4;
  --fm-cream: #edeae6;
  --fm-stone: #b8b5b0;
  --fm-border: rgba(17, 17, 17, 0.12);
  --fm-muted: rgba(17, 17, 17, 0.62);
  --fm-radius-lg: 28px;
  --fm-radius-md: 18px;
  --fm-radius-sm: 8px;
  --fm-shadow-soft: 0 24px 70px rgba(17, 17, 17, 0.08);
  --fm-max: 1320px;
  --fm-space-1: 8px;
  --fm-space-2: 16px;
  --fm-space-3: 24px;
  --fm-space-4: 32px;
  --fm-space-5: 48px;
  --fm-space-6: 64px;
  --fm-space-7: 80px;
  --fm-space-8: 128px;
  --fm-font-title: "Playfair Display", Georgia, serif;
  --fm-font-body: "Manrope", Arial, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  background: var(--fm-white);
  color: var(--fm-black);
  font-family: var(--fm-font-body);
  letter-spacing: -0.01em;
}

h1, h2, h3, .fm-title {
  font-family: var(--fm-font-title);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

h1 { font-size: clamp(44px, 6vw, 92px); }
h2 { font-size: clamp(34px, 4vw, 64px); }
h3 { font-size: clamp(24px, 2.4vw, 38px); }

a { color: inherit; text-decoration: none; }

.fm-container,
.ast-container,
.elementor-section .elementor-container {
  max-width: var(--fm-max);
}

.site-header,
.main-header-bar {
  background: rgba(247, 246, 244, 0.86) !important;
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--fm-border);
  transition: background 260ms ease, box-shadow 260ms ease, transform 260ms ease;
}

body.fm-scrolled .site-header,
body.fm-scrolled .main-header-bar {
  box-shadow: 0 16px 40px rgba(17, 17, 17, 0.06);
}

.fm-topbar {
  background: var(--fm-black);
  color: var(--fm-white);
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.fm-btn,
.button,
button,
input[type="submit"],
.single_add_to_cart_button,
.checkout-button {
  background: var(--fm-black) !important;
  color: var(--fm-white) !important;
  border: 1px solid var(--fm-black) !important;
  border-radius: 0 !important;
  min-height: 48px;
  padding: 14px 28px !important;
  font-size: 12px !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: transform 220ms ease, opacity 220ms ease, background 220ms ease;
}

.fm-btn:hover,
.button:hover,
button:hover,
input[type="submit"]:hover,
.single_add_to_cart_button:hover,
.checkout-button:hover {
  transform: translateY(-2px);
  opacity: 0.86;
}

.fm-btn-secondary {
  background: transparent !important;
  color: var(--fm-black) !important;
  border: 1px solid var(--fm-border) !important;
}

/* HOME — à appliquer dans Elementor via les classes indiquées dans le guide */
.fm-hero {
  min-height: 78vh;
  border-radius: 0 0 var(--fm-radius-lg) var(--fm-radius-lg);
  overflow: hidden;
  position: relative;
}
.fm-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(247,246,244,0.85), rgba(247,246,244,0.08));
  pointer-events: none;
}
.fm-hero-content { position: relative; z-index: 2; max-width: 520px; }
.fm-hero-text { color: var(--fm-muted); max-width: 320px; line-height: 1.7; }

.fm-service-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--fm-border);
  background: var(--fm-white);
}
.fm-service-item {
  min-height: 86px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-right: 1px solid var(--fm-border);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.fm-service-item span { color: var(--fm-muted); display: block; text-transform: none; letter-spacing: 0; margin-top: 4px; }

.fm-card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.fm-category-card, .fm-product-card, .product {
  background: var(--fm-cream);
  overflow: hidden;
  position: relative;
  transition: transform 320ms ease, box-shadow 320ms ease;
}
.fm-category-card:hover, .fm-product-card:hover, .product:hover {
  transform: translateY(-5px);
  box-shadow: var(--fm-shadow-soft);
}
.fm-category-card img, .fm-product-card img, .product img {
  width: 100%;
  display: block;
  transition: transform 650ms cubic-bezier(.2,.8,.2,1);
}
.fm-category-card:hover img, .fm-product-card:hover img, .product:hover img { transform: scale(1.045); }

/* WooCommerce collection */
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 22px;
}
.woocommerce ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  text-align: center;
  background: transparent;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--fm-font-body);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 14px;
}
.woocommerce ul.products li.product .price { color: var(--fm-black); font-size: 13px; font-weight: 600; }
.woocommerce-result-count { color: var(--fm-muted); font-size: 13px; }
.woocommerce-ordering select { border: 1px solid var(--fm-border); padding: 12px 16px; background: transparent; }

/* Fiche produit */
.single-product div.product {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 56px;
  background: transparent;
}
.single-product div.product .woocommerce-product-gallery {
  width: 100% !important;
  background: var(--fm-cream);
}
.single-product div.product .summary {
  width: 100% !important;
  padding-top: 32px;
}
.single-product .product_title {
  font-family: var(--fm-font-title);
  font-size: clamp(38px, 4vw, 62px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}
.single-product .price { font-size: 20px; font-weight: 700; color: var(--fm-black) !important; }
.single-product .woocommerce-product-details__short-description { color: var(--fm-muted); line-height: 1.7; max-width: 430px; }
.quantity .qty { min-height: 44px; border: 1px solid var(--fm-border); }
.woocommerce div.product form.cart { margin-top: 28px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { display: none; }
.woocommerce div.product .woocommerce-tabs .panel {
  border-top: 1px solid var(--fm-border);
  padding-top: 22px;
}
.related.products h2, .upsells.products h2 {
  text-align: center;
  margin: 72px 0 28px;
}

/* Panier */
.woocommerce-cart-form,
.cart_totals {
  background: var(--fm-white);
  border: 1px solid var(--fm-border);
  padding: 32px;
}
.cart_totals { box-shadow: var(--fm-shadow-soft); }
.woocommerce table.shop_table { border: 0; border-collapse: collapse; }
.woocommerce table.shop_table th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fm-muted); }
.woocommerce table.shop_table td { border-top: 1px solid var(--fm-border); padding: 22px 14px; }

/* Footer */
.fm-footer {
  background: var(--fm-black);
  color: var(--fm-white);
  border-radius: var(--fm-radius-lg) var(--fm-radius-lg) 0 0;
  padding: 64px 48px 28px;
  margin-top: 96px;
}
.fm-footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 48px; }
.fm-footer h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.09em; margin-bottom: 18px; }
.fm-footer a, .fm-footer p { color: rgba(247,246,244,0.72); font-size: 13px; line-height: 1.9; }
.fm-newsletter { margin-top: 42px; padding-top: 28px; border-top: 1px solid rgba(247,246,244,0.16); text-align: center; }
.fm-newsletter input { background: transparent; border: 1px solid rgba(247,246,244,0.28); color: var(--fm-white); padding: 14px 18px; min-width: 320px; }

/* Animations */
.fm-reveal { opacity: 0; transform: translateY(24px); transition: opacity 760ms ease, transform 760ms ease; }
.fm-reveal.is-visible { opacity: 1; transform: translateY(0); }
.fm-parallax { will-change: transform; transition: transform 120ms linear; }
.fm-fade-page { animation: fmFadePage 520ms ease both; }
@keyframes fmFadePage { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Mobile */
@media (max-width: 921px) {
  .fm-service-strip, .fm-card-grid, .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
  .single-product div.product { grid-template-columns: 1fr; gap: 28px; }
  .fm-footer-grid { grid-template-columns: 1fr 1fr; }
  .fm-newsletter input { min-width: 0; width: 100%; margin-bottom: 12px; }
}
@media (max-width: 544px) {
  .fm-service-strip, .fm-card-grid, .woocommerce ul.products { grid-template-columns: 1fr; }
  .fm-footer { padding: 42px 24px 24px; }
  .fm-footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
