/* Maison Havitat — header & footer like habitat.fr */

#mh-site-header {
  width: 100%;
  max-width: 100%;
  grid-column: 1 / -1;
  padding: 0 !important;
  margin: 0 !important;
}
#mh-site-header #wf-ad {
  width: 100%;
  max-width: 100%;
}
.mh-home-page #mh-site-header {
  padding-inline: 0 !important;
}

/* Isolation styles Habitat.fr globaux */
.mh-header-wrap .mh-header-black-inner,
.mh-header-wrap .mh-nav-white-inner {
  box-sizing: border-box;
}
.mh-header-wrap .mh-search-icon {
  display: inline-flex !important;
}

.mh-header-wrap {
  position: sticky;
  top: 0;
  z-index: 400;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.mh-header-full {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* === HEADER TOP (black) === */
.mh-header-black {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  background: #000;
  color: #fff;
  border: none;
}
.mh-header-black-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(12px, 2vw, 24px);
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 12px clamp(16px, 3vw, 32px);
  min-height: 64px;
  box-sizing: border-box;
}

/* Bouton menu mobile (☰) — masqué sur desktop */
.mh-mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mh-mobile-menu-btn svg {
  display: block;
  width: 22px;
  height: 22px;
}
.mh-mobile-menu-btn:hover,
.mh-mobile-menu-btn:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}
.mh-mobile-menu-btn.is-open {
  background: rgba(255, 255, 255, 0.18);
}

#mh-mobile-nav,
.mh-mobile-nav {
  display: none !important;
}

.mh-search-pill {
  display: flex;
  align-items: center;
  flex: 0 1 300px;
  min-width: 140px;
  max-width: 320px;
  background: #fff;
  border-radius: 999px;
  padding: 10px 18px;
}
.mh-search-icon { display: flex; margin-right: 10px; flex-shrink: 0; }
.mh-search-pill input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 0.9rem;
  background: transparent;
  color: #111;
}
.mh-logo-serif {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
  text-transform: lowercase;
  white-space: nowrap;
  flex: 1 1 auto;
  text-align: center;
  min-width: 0;
  padding: 0 8px;
}
.mh-logo-dark { color: #111; font-size: 1.5rem; }
.mh-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: clamp(8px, 1.5vw, 16px);
  margin-left: auto;
  min-width: 0;
}
.mh-header-phone {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.mh-header-phone span {
  white-space: nowrap;
}
.mh-header-phone:hover { opacity: 0.85; }
.mh-icon-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: #fff;
  position: relative;
  text-decoration: none;
}
.mh-icon-btn svg {
  display: block;
  flex-shrink: 0;
}
.mh-icon-btn:hover { opacity: 0.85; }
.mh-cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #ff0033;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
}

/* === NAV (white) — sous la barre noire, alignée à gauche === */
.mh-nav-white {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  position: relative;
  z-index: 350;
  overflow: visible;
  align-self: stretch;
}
.mh-nav-white-inner {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  min-height: 48px;
  gap: 0;
  position: relative;
}
.mh-nav-all-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  border-right: 1px solid #ddd;
  flex-shrink: 0;
  overflow: visible;
  margin: 0;
  padding: 0;
}
.mh-nav-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: none;
  color: #111;
  padding: 10px 20px 10px 16px;
  text-decoration: none;
  white-space: nowrap;
  background: none;
  border: none !important;
  box-shadow: none !important;
  outline: none;
  cursor: pointer;
  font-family: inherit;
  appearance: none;
}
.mh-nav-all-icon {
  flex-shrink: 0;
  display: block;
  opacity: 1;
}
.mh-nav-all:hover,
body.mh-menu-open .mh-nav-all {
  background: #efefef;
  color: #111;
}
.mh-nav-divider {
  width: 1px;
  align-self: stretch;
  background: #ddd;
  margin: 0;
  flex-shrink: 0;
}
.mh-nav-links {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  overflow-x: auto;
  flex: 0 1 auto;
  min-width: 0;
}
.mh-nav-links li {
  display: flex;
  align-items: stretch;
}
.mh-nav-links a {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #111;
  text-decoration: none;
  white-space: nowrap;
}
.mh-nav-links a:hover { color: #ff0033; }
.mh-nav-links a.menu-item--new { color: #ff0033; }
.mh-nav-all[aria-expanded="true"] .mh-nav-all-icon {
  opacity: 0.65;
}

/* === HABITAT MENU (flyout panels → right on click) === */
.mh-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 850;
  background: rgba(0, 0, 0, 0.4);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.mh-menu-backdrop.is-open,
body.mh-menu-open .mh-menu-backdrop:not([hidden]) {
  pointer-events: auto;
  opacity: 1;
}
.mh-menu-backdrop[hidden] {
  display: none !important;
  pointer-events: none !important;
}

.mh-menu-dropdown {
  --mh-panel-w: 280px;
  --mh-menu-panels: 1;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: -1px;
  padding-top: 1px;
  z-index: 900;
  width: calc(var(--mh-panel-w) * var(--mh-menu-panels, 1));
  min-width: var(--mh-panel-w);
  max-width: min(96vw, calc(var(--mh-panel-w) * 3));
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #e8e8e8;
  pointer-events: auto;
  overflow: hidden;
}
.mh-menu-dropdown[hidden]:not(.is-open) {
  display: none !important;
}

.mh-menu-dropdown.is-open {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Isolate from Habitat.fr global nav styles */
.mh-menu-dropdown,
.mh-menu-dropdown * {
  box-sizing: border-box;
}
.mh-menu-dropdown ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.mh-menu-dropdown li {
  list-style: none !important;
}

.mh-menu-mega {
  display: block !important;
  width: 100%;
  min-height: 280px;
  max-height: min(75vh, 560px);
}

.mh-menu-flyout-viewport {
  width: 100%;
  overflow: hidden;
}

.mh-menu-flyout-track {
  --mh-panel-w: 280px;
  --mh-menu-depth: 0;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  width: max-content;
  min-height: 280px;
  max-height: min(75vh, 560px);
  transform: translateX(calc(var(--mh-menu-depth) * var(--mh-panel-w) * -1));
  transition: transform 0.28s ease;
}

.mh-menu-flyout-panel {
  flex: 0 0 var(--mh-panel-w);
  width: var(--mh-panel-w);
  max-height: min(75vh, 560px);
  overflow-x: hidden;
  overflow-y: auto;
  border-right: 1px solid #efefef;
  background: #fff;
  padding: 8px 0 16px;
}

.mh-menu-flyout-back {
  display: block;
  width: 100%;
  margin: 0;
  padding: 12px 16px;
  border: none;
  border-bottom: 1px solid #efefef;
  background: #fafafa;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #111;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.mh-menu-flyout-back:hover {
  background: #efefef;
}

.mh-menu-flyout-heading {
  margin: 0;
  padding: 12px 16px 8px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #111;
}

.mh-menu-flyout-list {
  list-style: none !important;
}

.mh-menu-flyout-item {
  margin: 0;
  border-bottom: 1px solid #f3f3f3;
}
.mh-menu-flyout-item:last-child {
  border-bottom: none;
}

.mh-menu-flyout-btn,
.mh-menu-flyout-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #111;
  text-decoration: none;
  line-height: 1.35;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.mh-menu-flyout-btn:hover,
.mh-menu-flyout-link:hover,
.mh-menu-flyout-item--active > .mh-menu-flyout-btn {
  background: #efefef;
}

.mh-menu-flyout-item--active > .mh-menu-flyout-btn {
  font-weight: 600;
}

.mh-menu-flyout-label {
  flex: 1 1 auto;
}

.mh-menu-flyout-item .mh-menu-chevron {
  flex-shrink: 0;
  color: #7f7f7f;
}

.mh-menu-flyout-all {
  display: block;
  margin: 8px 16px 0;
  padding: 8px 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #111;
  text-decoration: underline;
}

.mh-menu-flyout-item.menu-item--new .mh-menu-flyout-btn,
.mh-menu-flyout-item.menu-item--new .mh-menu-flyout-link {
  color: #ff0033;
}
.mh-menu-flyout-item.menu-item--special-promo .mh-menu-flyout-btn,
.mh-menu-flyout-item.menu-item--special-promo .mh-menu-flyout-link {
  color: #a94943;
  font-weight: 600;
}
.mh-menu-flyout-item.menu-item--promo .mh-menu-flyout-btn,
.mh-menu-flyout-item.menu-item--promo .mh-menu-flyout-link {
  font-weight: 600;
}

@media (min-width: 992px) {
  .mh-menu-dropdown {
    min-width: var(--mh-panel-w);
  }
}

/* Mobile */
@media (max-width: 991px) {
  .mh-menu-dropdown {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--mh-header-offset, 112px);
    bottom: 0;
    width: 100%;
    max-width: none;
    min-width: 0;
    max-height: none;
    margin: 0;
    border-radius: 0;
  }
  .mh-menu-flyout-viewport {
    width: 100%;
    max-width: 100%;
  }
  .mh-menu-flyout-track {
    --mh-panel-w: 100vw;
  }

  .mh-menu-flyout-panel {
    width: 100vw;
    max-width: 100vw;
  }
}

/* === PROMO BAR === */
.mh-promo-bar {
  width: 100%;
  max-width: 100%;
  background: #000 !important;
  color: #fff !important;
}
.mh-promo-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 16px;
  padding: 10px 16px;
  font-size: 0.875rem;
}
.mh-promo-inner a { color: #fff; text-decoration: none; }
.mh-promo-inner strong { font-weight: 600; }

/* === FOOTER (style habitat.fr) === */
.mh-footer {
  background: #fff;
  margin-top: 0;
  color: #111;
}

.mh-footer-newsletter {
  background: #000;
  color: #fff;
  padding: 36px clamp(16px, 3vw, 48px);
}
.mh-newsletter-inner {
  max-width: 1680px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}
@media (min-width: 992px) {
  .mh-newsletter-inner {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
    align-items: start;
    gap: 48px;
  }
}
.mh-newsletter-text h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
  margin: 0 0 10px;
  line-height: 1.2;
}
.mh-newsletter-text p {
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
  opacity: 0.9;
  max-width: 36em;
}
.mh-newsletter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid #444;
}
.mh-newsletter-row input {
  flex: 1 1 200px;
  min-width: 0;
  padding: 14px 16px;
  background: #2a2a2a;
  border: none;
  border-right: 1px solid #444;
  color: #fff;
  font-size: 0.9rem;
}
.mh-newsletter-row input::placeholder { color: #aaa; }
.mh-newsletter-row input:focus {
  outline: 2px solid #fff;
  outline-offset: -2px;
}
.mh-newsletter-row button {
  padding: 14px 20px;
  background: #fff;
  color: #111;
  border: none;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
}
.mh-newsletter-row button:hover { background: #f0f0f0; }
.mh-newsletter-privacy {
  font-size: 0.65rem;
  line-height: 1.45;
  opacity: 0.55;
  margin: 10px 0 0;
  max-width: 42em;
}

.mh-footer-body {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
}
.mh-footer-inner {
  max-width: 1680px;
  margin: 0 auto;
  padding: 48px clamp(16px, 3vw, 70px) 36px;
}
.mh-footer-offer-note {
  margin: 28px 0 0;
  padding: 0;
  font-size: 0.7rem;
  line-height: 1.5;
  color: #767676;
  font-style: italic;
  text-align: center;
  max-width: 52em;
  margin-left: auto;
  margin-right: auto;
}
.mh-footer-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 24px;
}
@media (min-width: 992px) {
  .mh-footer-columns { grid-template-columns: 1.2fr 1fr 1fr 1fr; }
}
.mh-footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  margin: 0 0 14px;
  color: #111;
}
.mh-footer-col ul { list-style: none; padding: 0; margin: 0; }
.mh-footer-col li { margin: 0 0 10px; }
.mh-footer-col a {
  font-size: 0.875rem;
  color: #111;
  text-decoration: none;
  line-height: 1.35;
  display: inline-block;
  pointer-events: auto;
  cursor: pointer;
}
.mh-footer-col a:hover { color: #ff0033; text-decoration: underline; }
.mh-footer-brand .mh-logo-dark {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  display: inline-block;
  margin-bottom: 16px;
  color: #111;
  text-decoration: none;
}
.mh-trustpilot {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 0.75rem;
  color: #333;
  text-decoration: none;
}
.mh-trustpilot:hover { text-decoration: underline; }
.mh-stars { color: #00b67a; letter-spacing: 1px; font-size: 0.9rem; }

.mh-footer-social-pay {
  display: grid;
  gap: 32px;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid #e8e8e8;
}
@media (min-width: 768px) {
  .mh-footer-social-pay {
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
    gap: 40px;
  }
}
.mh-footer-social-pay h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  margin: 0 0 14px;
  color: #111;
}
.mh-social-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}
.mh-social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  text-decoration: none;
  transition: opacity 0.2s;
  line-height: 0;
}
.mh-social-icons a:hover { opacity: 0.65; }
.mh-social-icons svg {
  display: block;
  width: 28px;
  height: 28px;
}

.mh-pay-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
}
.mh-pay-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  flex-shrink: 0;
}
.mh-pay-logo svg,
.mh-pay-logo img {
  display: block;
  height: 24px;
  width: auto;
  max-width: 72px;
}

.mh-footer-legal {
  background: #fff;
  padding: 20px clamp(16px, 3vw, 70px) 28px;
}
.mh-footer-legal-inner {
  max-width: 1680px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 24px;
  align-items: flex-start;
  justify-content: space-between;
}
.mh-footer-legal-left {
  flex: 1 1 280px;
  min-width: 0;
}
.mh-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 10px;
}
.mh-legal-links a {
  font-size: 0.7rem;
  color: #767676;
  text-decoration: underline;
  line-height: 1.4;
  pointer-events: auto;
  cursor: pointer;
}
.mh-legal-links a:hover { color: #111; }
.mh-footer-recaptcha {
  font-size: 0.65rem;
  color: #999;
  line-height: 1.45;
  margin: 0;
  max-width: 48em;
}
.mh-footer-recaptcha a {
  color: #767676;
  text-decoration: underline;
}
.mh-country { font-size: 0.8rem; }

.mh-lang-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 140px;
}
.mh-lang-label {
  font-size: 0.7rem;
  color: #767676;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.mh-lang-select {
  font: inherit;
  font-size: 0.85rem;
  padding: 8px 28px 8px 10px;
  border: 1px solid #ccc;
  border-radius: 2px;
  background: #fff;
  color: #111;
  cursor: pointer;
  max-width: 100%;
}

.mh-back-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.mh-back-top.visible { opacity: 1; visibility: visible; }

@media (max-width: 900px) {
  .mh-header-phone span {
    display: none;
  }
}

@media (max-width: 768px) {
  .mh-nav-all-wrap,
  .mh-nav-white,
  .mh-nav-white-inner {
    overflow: visible;
  }
}

/* ========== HOMEPAGE — alignement uniforme ========== */
html:has(.mh-home-page) {
  overflow-x: clip;
  width: 100%;
}

.mh-home-page {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: clip;
  overflow-y: visible;
}

.mh-home-page .content-grid.mh-content-grid {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  padding-inline: 0;
  overflow: visible;
}

.mh-home-page #mh-site-header {
  position: static;
  width: 100%;
  max-width: none;
}

.mh-home-page .mh-header-wrap {
  position: sticky;
  top: 0;
  z-index: 500;
  width: 100%;
}

.mh-home-page .full-width,
.mh-home-page .mh-home-section.full-width {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.mh-home-page .mh-home-main {
  width: 100%;
  margin-inline: auto;
}

.mh-home-page #wf-ad .breakout,
.mh-home-page .mh-promo-bar .breakout {
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
}
@media (max-width: 991px) {
  .mh-home-page .content-grid.mh-content-grid {
    display: block !important;
    min-height: 0;
    height: auto;
    overflow: visible;
  }
}
.mh-home-main {
  flex: 1;
  width: 100%;
}

.mh-home-page.mh-home-loading .mh-product-row,
.mh-home-page.mh-home-loading .mh-recent-products {
  min-height: 120px;
}

.mh-home-page:not(.mh-home-products-ready) .mh-product-row:empty,
.mh-home-page:not(.mh-home-products-ready) .mh-recent-products:empty {
  background: linear-gradient(90deg, #f5f5f5 0%, #ececec 50%, #f5f5f5 100%);
  background-size: 200% 100%;
  animation: mh-home-shimmer 1.2s ease-in-out infinite;
  border-radius: 4px;
}

@keyframes mh-home-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.mh-home-inner {
  width: 100%;
  max-width: 1680px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}
@media (min-width: 992px) {
  .mh-home-inner {
    padding-left: 70px;
    padding-right: 70px;
  }
}
.mh-home-inner--narrow {
  max-width: 720px;
  text-align: center;
}
.mh-home-section {
  padding-top: 32px;
  padding-bottom: 8px;
}
.mh-home-section--categories {
  padding: 0;
  margin: 0;
  background: #fff;
  overflow: hidden;
}
.mh-home-section--instagram {
  padding: 0;
  margin: 0;
  overflow: hidden;
}

/* Bloc Instagram — insta gram */
.mh-insta {
  position: relative;
  padding: 56px 0 40px;
  background: #fff;
}
@media (min-width: 992px) {
  .mh-insta {
    padding: 72px 0 48px;
  }
}

.mh-insta-band {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 64px;
  background: #111;
  z-index: 0;
  pointer-events: none;
}
@media (min-width: 992px) {
  .mh-insta-band {
    height: 72px;
  }
}

.mh-insta-layout {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 992px) {
  .mh-insta-layout {
    padding: 0 clamp(24px, 3vw, 70px);
  }
}

.mh-insta-label {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-right: 0;
  padding: 8px 0;
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.03em;
  color: #c8c8c8;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  user-select: none;
  z-index: 3;
}
.mh-insta-label span {
  display: block;
}

.mh-insta-main {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  padding: 32px 0 8px;
}
@media (min-width: 992px) {
  .mh-insta-main {
    padding: 40px 0 8px;
  }
}

.mh-insta-head {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  text-align: center;
  padding: 0 16px;
  color: #fff;
  pointer-events: none;
}
.mh-insta-head .mh-insta-handle {
  pointer-events: auto;
}

.mh-insta-tagline {
  margin: 0 0 4px;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.3;
  color: #fff;
}
@media (min-width: 992px) {
  .mh-insta-tagline {
    font-size: 0.9375rem;
  }
}

.mh-insta-handle {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.02em;
}
@media (min-width: 992px) {
  .mh-insta-handle {
    font-size: 1.375rem;
  }
}
.mh-insta-handle:hover {
  text-decoration: underline;
}

.mh-insta-grid {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 4px 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #bbb transparent;
}
.mh-insta-grid::-webkit-scrollbar {
  height: 6px;
}
.mh-insta-grid::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 3px;
}
@media (min-width: 992px) {
  .mh-insta-grid {
    gap: 14px;
    padding: 12px 8px 20px;
  }
}

.mh-insta-grid--expanded {
  flex-wrap: wrap;
  overflow-x: visible;
  justify-content: flex-start;
}
@media (min-width: 992px) {
  .mh-insta-grid--expanded {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: visible;
  }
}
@media (min-width: 1200px) {
  .mh-insta-grid--expanded {
    grid-template-columns: repeat(4, 1fr);
  }
}

.mh-insta-grid > [role='listitem'] {
  flex: 0 0 auto;
  width: min(72vw, 280px);
  scroll-snap-align: start;
}
.mh-insta-grid--expanded > [role='listitem'] {
  width: auto;
  flex: none;
}
@media (max-width: 991px) {
  .mh-insta-grid--expanded {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    overflow: visible;
    padding-bottom: 20px;
  }
  .mh-insta-grid--expanded > [role='listitem'] {
    width: 100%;
    min-width: 0;
  }
}
@media (min-width: 992px) {
  .mh-insta-grid > [role='listitem'] {
    width: min(28vw, 320px);
  }
  .mh-insta-grid--expanded > [role='listitem'] {
    width: auto;
  }
}

.mh-insta-card {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: #e8e8e8;
  text-decoration: none;
}
.mh-insta-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.mh-insta-card:hover img {
  transform: scale(1.04);
}

.mh-insta-card-user {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 1;
  padding: 4px 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #fff;
  background: #111;
  line-height: 1.2;
  max-width: calc(100% - 16px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mh-insta-more-wrap {
  display: flex;
  justify-content: center;
  padding: 8px 16px 0;
}

.mh-insta-more-btn {
  min-width: 260px;
  padding: 14px 32px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #111;
  background: #fff;
  border: 1px solid #111;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.mh-insta-more-btn:hover {
  background: #111;
  color: #fff;
}

.mh-home-section--moodboard {
  padding-bottom: 48px;
}
.mh-home-section--welcome {
  padding: 56px 0 64px;
  background: #fff;
}
.mh-home-heading {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #767676;
  margin: 0 0 20px;
}
.mh-home-welcome-title {
  font-size: 1.35rem;
  font-weight: 400;
  margin: 0 0 16px;
  line-height: 1.35;
}
.mh-home-welcome-text {
  color: #767676;
  line-height: 1.75;
  margin: 0;
  font-size: 0.95rem;
}

/* Hero */
.mh-home-hero {
  position: relative;
  width: 100%;
  line-height: 0;
  background: #f0f0f0;
}
.mh-home-hero-link {
  display: block;
  width: 100%;
}
.mh-home-hero-cta {
  position: absolute;
  left: 50%;
  bottom: clamp(20px, 5vw, 48px);
  z-index: 2;
  transform: translateX(-50%);
  padding: 12px 28px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: #111;
  background: #fff;
  line-height: 1.2;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.mh-home-hero-cta:hover {
  background: #111;
  color: #fff;
}
.mh-home-hero picture,
.mh-home-hero img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 75vh;
  object-fit: cover;
  object-position: center;
}

/* Bannière milieu */
.mh-home-section--banner {
  padding: 0;
  margin: 0;
}

.mh-home-banner {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  overflow: hidden;
  line-height: 0;
}
.mh-home-banner a,
.mh-home-banner-link {
  display: block;
  line-height: 0;
}
.mh-home-banner img,
.mh-home-banner-link img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 21/9;
  object-fit: cover;
  background: #f0f0f0;
}
.mh-home-banner .loader,
.mh-home-banner .placeholder-skeleton,
.mh-home-banner svg.loader {
  display: none !important;
}
.mh-home-banner--empty {
  display: none;
}
@media (min-width: 992px) {
  .mh-home-banner img {
    aspect-ratio: 3360/1578;
    max-height: 520px;
  }
}

/* Catégories — habitat.fr HomeCatalogLinks */
.mh-home-catalog-container {
  position: relative;
  display: block;
  max-width: 1680px;
  margin: 0 auto;
  padding: 32px 12px 40px;
  box-sizing: border-box;
}
@media (min-width: 992px) {
  .mh-home-catalog-container {
    padding: 40px 70px 48px;
  }
}

.mh-categories-title-bg {
  position: absolute;
  left: 0;
  right: 0;
  top: 8px;
  text-align: center;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
@media (min-width: 992px) {
  .mh-categories-title-bg {
    top: 16px;
  }
}

.mh-categories-title-text {
  margin: 0;
  color: #e8e8e8;
  font-family: "Proxima Nova", Arial, Helvetica, sans-serif;
  font-size: clamp(4.25rem, 16vw, 6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.88;
}
@media (min-width: 768px) {
  .mh-categories-title-text {
    font-size: clamp(6rem, 14vw, 9rem);
  }
}
@media (min-width: 992px) {
  .mh-categories-title-text {
    font-size: clamp(7.5rem, 10.5vw, 11.25rem);
    line-height: 0.92;
    letter-spacing: -0.2rem;
  }
}

.mh-categories-links {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding-top: clamp(72px, 14vw, 128px);
  list-style: none;
}
@media (min-width: 640px) {
  .mh-categories-links {
    gap: 10px;
    padding-top: clamp(88px, 12vw, 120px);
  }
}
@media (min-width: 992px) {
  .mh-categories-links {
    flex-wrap: nowrap;
    gap: 8px;
    padding-top: 120px;
  }
}

.mh-categories-item {
  display: flex;
  flex: 0 0 calc(50% - 4px);
  max-width: calc(50% - 4px);
  min-width: 0;
  flex-direction: column;
}
@media (min-width: 640px) {
  .mh-categories-item {
    flex: 0 0 calc(33.333% - 7px);
    max-width: calc(33.333% - 7px);
  }
}
@media (min-width: 992px) {
  .mh-categories-item {
    flex: 1 1 0;
    max-width: none;
    width: auto;
  }
}

.mh-catalog-link-item {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background: #fff;
  color: #111;
  text-decoration: none;
  overflow: hidden;
  position: relative;
  transition: background-color 0.13s ease;
}
.mh-catalog-link-item::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  background: rgba(0, 0, 0, 0.05);
  transition: height 0.13s ease;
  z-index: 0;
}
.mh-catalog-link-item:hover::before {
  height: 100%;
}

.mh-catalog-link-img {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  padding: 16px 12px 12px;
  align-self: stretch;
  background: #fff;
}
@media (min-width: 992px) {
  .mh-catalog-link-img {
    min-height: 200px;
    padding: 20px 14px 14px;
  }
}

.mh-catalog-link-img img {
  width: 100%;
  max-width: 220px;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center bottom;
  transition: transform 0.35s ease;
}
@media (min-width: 992px) {
  .mh-catalog-link-img img {
    max-width: 100%;
  }
}
.mh-catalog-link-item:hover .mh-catalog-link-img img {
  transform: scale(1.08);
}

.mh-catalog-link-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-height: 88px;
  padding: 16px 8px 20px;
  text-align: center;
  background: #fff;
}
@media (min-width: 992px) {
  .mh-catalog-link-text {
    min-height: 108px;
    padding: 20px 10px 24px;
    gap: 8px;
  }
}

.mh-catalog-link-title {
  margin: 0;
  align-self: stretch;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.25;
  color: #111;
}
@media (min-width: 992px) {
  .mh-catalog-link-title {
    font-size: 0.9375rem;
  }
}

.mh-catalog-link-sub {
  margin: 0;
  align-self: stretch;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.35;
  color: #111;
}
@media (min-width: 992px) {
  .mh-catalog-link-sub {
    font-size: 0.875rem;
  }
}

/* Promo duo (positions 2–3 habitat.fr) */
.mh-home-section--promo-duo {
  padding: 0;
  margin: 0;
}

/* Dernières créations consultées */
/* Assises d'exception — bannière 2 colonnes */
.mh-home-section--assises {
  padding: 0;
  margin: 0;
}

.mh-assises-banner {
  display: block;
  text-decoration: none;
  color: inherit;
}

.mh-assises-banner--single {
  line-height: 0;
  overflow: hidden;
}

.mh-assises-banner--single picture,
.mh-assises-single-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
}

.mh-assises-banner-grid {
  display: flex;
  flex-direction: column;
  width: 100%;
}
@media (min-width: 992px) {
  .mh-assises-banner-grid {
    flex-direction: row;
    min-height: 520px;
  }
}
@media (min-width: 1200px) {
  .mh-assises-banner-grid {
    min-height: 580px;
  }
}

.mh-assises-banner-left,
.mh-assises-banner-right {
  flex: 1 1 50%;
  min-width: 0;
  position: relative;
}

.mh-assises-banner-left {
  background: #f5f3f0;
}

.mh-assises-frame {
  height: 100%;
  min-height: 280px;
  border-top: 14px solid var(--mh-assises-frame, #9a4e38);
  border-left: 14px solid var(--mh-assises-frame, #9a4e38);
  box-sizing: border-box;
  overflow: hidden;
}
@media (min-width: 992px) {
  .mh-assises-frame {
    min-height: 100%;
    border-top-width: 18px;
    border-left-width: 18px;
  }
}

.mh-assises-frame picture,
.mh-assises-frame img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  object-position: center;
}
@media (min-width: 992px) {
  .mh-assises-frame img {
    min-height: 520px;
  }
}

.mh-assises-banner-right {
  overflow: hidden;
  background: #e8e4df;
}

.mh-assises-banner-right picture,
.mh-assises-banner-right-img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}
@media (min-width: 992px) {
  .mh-assises-banner-right-img {
    min-height: 520px;
  }
}
.mh-assises-banner:hover .mh-assises-banner-right-img {
  transform: scale(1.02);
}

.mh-assises-banner-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 28px;
  color: #fff;
  pointer-events: none;
}
@media (min-width: 992px) {
  .mh-assises-banner-content {
    padding: 48px 56px;
    max-width: 55%;
  }
}

.mh-assises-title {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
}

.mh-assises-sub {
  margin: 0 0 28px;
  font-size: clamp(0.9375rem, 1.8vw, 1.25rem);
  font-weight: 400;
  line-height: 1.35;
  color: #fff;
  max-width: 20em;
}

.mh-assises-cta {
  display: inline-block;
  padding-bottom: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  border-bottom: 1px solid #fff;
}

.mh-home-section--recent {
  padding-top: 40px;
  padding-bottom: 24px;
}
@media (min-width: 992px) {
  .mh-home-section--recent {
    padding-top: 56px;
    padding-bottom: 32px;
  }
}

.mh-home-recent-title {
  margin: 0 0 24px;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2;
  color: #111;
  text-align: left;
  letter-spacing: 0;
  text-transform: none;
}
@media (min-width: 992px) {
  .mh-home-recent-title {
    margin-bottom: 32px;
    font-size: 1.25rem;
  }
}

.mh-recent-products {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px 16px;
  width: 100%;
}
@media (min-width: 640px) {
  .mh-recent-products {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 20px;
  }
}
@media (min-width: 1200px) {
  .mh-recent-products {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px 24px;
  }
}

.mh-recent-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mh-recent-card-img {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f5f5f5;
  margin-bottom: 12px;
  text-decoration: none;
}
.mh-recent-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.mh-recent-card:hover .mh-recent-card-img img {
  transform: scale(1.02);
}

.mh-recent-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}

.mh-recent-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.mh-recent-card-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.mh-recent-card-brand {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #111;
  text-decoration: none;
  line-height: 1.2;
}
.mh-recent-card-brand:hover {
  text-decoration: underline;
}

.mh-recent-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  background: #1a6fd4;
  border-radius: 2px;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
}

.mh-recent-card-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 4px;
}

.mh-recent-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  color: #111;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease;
}
.mh-recent-icon-btn:hover {
  background: #f0f0f0;
}
.mh-recent-icon-btn.is-active {
  color: #1a6fd4;
}
.mh-recent-icon-btn.is-active svg {
  fill: currentColor;
  stroke: currentColor;
}

.mh-recent-card-desc {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.4;
  color: #111;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mh-recent-card-desc:hover {
  text-decoration: underline;
}

.mh-recent-card-price {
  margin: 4px 0 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #111;
}

.mh-home-promo-duo {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  gap: 0;
}
@media (min-width: 768px) {
  .mh-home-promo-duo {
    flex-direction: row;
    align-items: stretch;
    min-height: 480px;
  }
}
@media (min-width: 992px) {
  .mh-home-promo-duo {
    min-height: clamp(520px, 52vw, 889px);
  }
}

.mh-promo-duo-item {
  position: relative;
  flex: 1 1 50%;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
@media (max-width: 767px) {
  .mh-promo-duo-item + .mh-promo-duo-item {
    border-top: 1px solid #e8e8e8;
  }
}

/* Left: overlay tile */
/* Promo tile — fond clair + visuel produit (Fête des mères) */
.mh-promo-tile--light {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  overflow: hidden;
  text-decoration: none;
}
@media (min-width: 768px) {
  .mh-promo-tile--light {
    min-height: 100%;
  }
}

.mh-promo-tile-content--light {
  color: #111;
  flex: 0 0 auto;
}

.mh-promo-tile--light .mh-promo-tile-title {
  color: #111;
}

.mh-promo-tile--light .mh-promo-tile-sub {
  color: #111;
}

.mh-promo-tile-visual {
  flex: 1 1 auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 220px;
  padding: 0 12px 8px;
  pointer-events: none;
}
@media (min-width: 992px) {
  .mh-promo-tile-visual {
    min-height: 280px;
    padding: 0 24px 16px;
  }
}

.mh-promo-tile-visual img {
  width: auto;
  max-width: 92%;
  max-height: 100%;
  object-fit: contain;
  object-position: bottom center;
}

.mh-promo-tile--overlay,
.mh-promo-tile--composite-right,
.mh-promo-tile--image-only {
  display: block;
  position: relative;
  min-height: 420px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
@media (min-width: 768px) {
  .mh-promo-tile--overlay,
  .mh-promo-tile--composite-right,
  .mh-promo-tile--image-only {
    min-height: 100%;
  }
}

/* Image composite Habitat (texte déjà dans l’image — pas de HTML par-dessus) */
.mh-promo-tile--composite-right,
.mh-promo-tile--image-only {
  position: relative;
  background: #fff;
}

.mh-promo-composite-img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
}
@media (min-width: 768px) {
  .mh-promo-composite-img {
    position: absolute;
    inset: 0;
    min-height: 100%;
  }
}
.mh-promo-tile--composite-right:hover .mh-promo-composite-img {
  transform: scale(1.02);
}

.mh-promo-tile-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #f0f0f0;
}
.mh-promo-tile-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
  transition: transform 0.6s ease;
}
.mh-promo-tile--overlay:hover .mh-promo-tile-bg img {
  transform: scale(1.03);
}

.mh-promo-tile-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: inherit;
  padding: 28px 24px 32px;
  color: #fff;
}
@media (min-width: 992px) {
  .mh-promo-tile-content {
    padding: 40px 36px 48px;
  }
}

.mh-promo-tile-title {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

/* Évite doublons si CSS Habitat ajoute des pseudo-éléments sur h3 */
.mh-home-promo-duo .mh-promo-tile-title::before,
.mh-home-promo-duo .mh-promo-tile-title::after,
.mh-home-promo-duo .mh-promo-cta::before,
.mh-home-promo-duo .mh-promo-cta::after {
  content: none !important;
  display: none !important;
}

.mh-promo-tile-sub {
  margin: 0 0 24px;
  font-size: clamp(0.875rem, 1.5vw, 1.125rem);
  font-weight: 400;
  line-height: 1.35;
  max-width: 22em;
}

.mh-promo-cta {
  display: inline-block;
  margin-top: auto;
  padding-bottom: 5px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: inherit;
  border-bottom: 2px solid currentColor;
  transition: opacity 0.2s ease;
}
.mh-promo-tile--overlay .mh-promo-cta {
  border-bottom-width: 1px;
}
.mh-promo-tile--overlay:hover .mh-promo-cta,
.mh-promo-tile--composite-right:hover .mh-promo-cta {
  opacity: 0.85;
}

.mh-promo-cta--dark {
  color: #111;
  border-bottom-width: 2px;
}

/* Right: split tile */
.mh-promo-tile--split {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  background: #fff;
}
@media (min-width: 768px) {
  .mh-promo-tile--split {
    min-height: 100%;
  }
}

.mh-promo-split-top {
  display: block;
  flex: 1 1 58%;
  min-height: 0;
  overflow: hidden;
  text-decoration: none;
}
.mh-promo-split-top img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
}
.mh-promo-tile--split:hover .mh-promo-split-top img {
  transform: scale(1.02);
}

.mh-promo-split-bottom {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  min-height: 200px;
  padding: 28px 24px 32px;
  background: #fff;
  text-decoration: none;
  color: #111;
  overflow: visible;
}
@media (min-width: 992px) {
  .mh-promo-split-bottom {
    min-height: 280px;
    padding: 36px 40px 40px;
  }
}

.mh-promo-split-text {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  max-width: 55%;
  padding-right: 12px;
}

.mh-promo-split-text .mh-promo-tile-title {
  color: #111;
}

.mh-promo-split-text .mh-promo-tile-sub {
  color: #111;
  margin-bottom: 20px;
}

.mh-promo-split-product {
  position: absolute;
  right: 8%;
  bottom: 0;
  z-index: 3;
  width: auto;
  max-width: 48%;
  max-height: 115%;
  height: auto;
  object-fit: contain;
  object-position: bottom right;
  pointer-events: none;
  transform: translateY(-12%);
}
@media (min-width: 992px) {
  .mh-promo-split-product {
    right: 10%;
    max-width: 42%;
    transform: translateY(-18%);
  }
}

.tg-duo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  margin: 0;
}
@media (max-width: 768px) {
  .tg-duo-row { grid-template-columns: 1fr; }
}
.tg-duo-row a {
  display: block;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: #f0f0f0;
}
@media (min-width: 992px) {
  .tg-duo-row a { aspect-ratio: 3/4; }
}
.tg-duo-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mh-product-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 0;
}
@media (min-width: 640px) {
  .mh-product-row { grid-template-columns: repeat(4, 1fr); }
}
.mh-product-row .mh-card { text-decoration: none; color: inherit; }
.mh-product-row .mh-card-img {
  aspect-ratio: 4/5;
  background: #f5f5f5;
  overflow: hidden;
  margin-bottom: 8px;
}
.mh-product-row .mh-card-img img { width: 100%; height: 100%; object-fit: cover; }
.mh-product-row .mh-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.mh-product-row .mh-card-name {
  font-size: 0.8rem;
  line-height: 1.35;
  padding: 0 2px;
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.mh-product-row .mh-card-price {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0 2px 4px;
  margin: 0;
}

.moodboard-mh {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 0;
}
@media (min-width: 992px) {
  .moodboard-mh { grid-template-columns: repeat(6, 1fr); }
}
.moodboard-mh a {
  aspect-ratio: 1;
  overflow: hidden;
  display: block;
  background: #f0f0f0;
}
.moodboard-mh img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Neutralise styles Habitat qui décalent la home */
.mh-home-page .breakout {
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  max-width: none !important;
}
.mh-home-page .flex-column-gap-between-section {
  gap: 0 !important;
  overflow: visible !important;
}
.mh-home-page .container-fluid__tg-full {
  padding: 0 !important;
  margin: 0 !important;
}

.wf-ad .countdown-container { display: inline; }

/* ========== RESPONSIVE — mobile & tablette ========== */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (max-width: 991px) {
  body.mh-menu-open {
    overflow: hidden;
    touch-action: none;
  }
}

@media (min-width: 992px) {
  body.mh-menu-open .mh-menu-backdrop {
    display: none !important;
    pointer-events: none !important;
    opacity: 0 !important;
  }
}

#site-header,
#mh-site-header {
  width: 100%;
  max-width: 100%;
  position: static;
  z-index: 400;
}

.mh-catalog-page #site-header,
.mh-product-page-body #site-header,
body[data-page] #site-header {
  position: relative;
  z-index: 400;
  width: 100%;
  max-width: 100%;
}

.mh-product-page-body .mh-header-wrap {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 991px) {
  .mh-mobile-menu-btn {
    display: flex !important;
    grid-area: menu;
    position: relative;
    z-index: 2;
    pointer-events: auto !important;
  }

  .mh-header-black-inner {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    grid-template-areas:
      "menu logo actions"
      "search search search";
    gap: 8px 10px;
    align-items: center;
    padding: 10px 12px;
    min-height: 0;
  }

  .mh-search-pill {
    grid-area: search;
    width: 100%;
    max-width: none;
    min-width: 0;
    flex: none;
    padding: 10px 14px;
  }

  .mh-logo-serif {
    grid-area: logo;
    flex: none;
    text-align: center;
    padding: 0 4px;
    font-size: 1.1rem;
    justify-self: center;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mh-header-actions {
    grid-area: actions;
    margin-left: 0;
    gap: 4px;
    flex-wrap: nowrap;
  }

  .mh-header-actions .mh-header-phone,
  .mh-header-actions .mh-icon-btn[title='Aide'],
  .mh-header-actions .mh-icon-btn[title="Liste d'envies"] {
    display: none !important;
  }

  .mh-header-actions .mh-account-btn,
  .mh-header-actions .mh-icon-btn[title='Mon compte'] {
    display: inline-flex !important;
    visibility: visible !important;
  }

  .mh-header-actions .mh-cart-btn {
    display: inline-flex !important;
  }

  .mh-header-phone span {
    display: none;
  }

  .mh-icon-btn {
    width: 40px;
    height: 40px;
    padding: 8px;
    box-sizing: border-box;
  }

  .mh-nav-white {
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  .mh-nav-all-wrap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
  }

  .mh-nav-divider {
    display: none !important;
  }

  body.mh-menu-open .mh-header-wrap {
    z-index: 820;
  }

  body.mh-menu-open .mh-mobile-menu-btn {
    background: rgba(255, 255, 255, 0.15);
  }

  .mh-nav-white-inner {
    min-height: 44px;
  }

  .mh-nav-all {
    padding: 12px 16px;
    font-size: 0.8125rem;
    min-height: 44px;
  }

  .mh-menu-dropdown.is-open {
    position: fixed !important;
    left: 0 !important;
    right: auto !important;
    top: var(--mh-header-offset, 108px) !important;
    bottom: 0 !important;
    margin: 0 !important;
    padding-top: 0 !important;
    width: min(320px, 100vw) !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    max-height: none !important;
    z-index: 900 !important;
    border-radius: 0;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
  }

  .mh-menu-mega,
  .mh-menu-flyout-track {
    min-height: 0;
    max-height: calc(100vh - var(--mh-header-offset, 108px) - env(safe-area-inset-bottom, 0px));
  }

  .mh-menu-flyout-track {
    --mh-panel-w: min(320px, 100vw);
  }

  .mh-menu-flyout-panel {
    width: min(320px, 100vw);
    flex: 0 0 min(320px, 100vw);
    max-height: calc(100vh - var(--mh-header-offset, 108px) - env(safe-area-inset-bottom, 0px));
  }

  .mh-menu-flyout-btn,
  .mh-menu-flyout-link {
    min-height: 44px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .mh-promo-inner {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    font-size: 0.75rem;
    line-height: 1.35;
    text-align: center;
  }

  .mh-home-hero img {
    max-height: 65vh;
  }

  .mh-home-hero-cta {
    padding: 10px 20px;
    font-size: 0.6875rem;
  }

  .mh-home-catalog-container {
    padding: 24px 10px 32px;
  }

  .mh-categories-links {
    padding-top: clamp(64px, 18vw, 96px);
  }

  .mh-catalog-link-text {
    min-height: 72px;
    padding: 12px 6px 16px;
  }

  .mh-catalog-link-title {
    font-size: 0.8125rem;
  }

  .mh-catalog-link-sub {
    font-size: 0.75rem;
  }

  .mh-promo-tile--light,
  .mh-promo-tile--overlay,
  .mh-promo-tile--composite-right,
  .mh-promo-tile--image-only {
    min-height: min(72vw, 360px);
  }

  .mh-promo-composite-img {
    min-height: min(72vw, 360px);
  }

  .mh-insta-label {
    font-size: clamp(2.5rem, 12vw, 4rem);
    margin-right: 0;
  }

  .mh-insta-layout {
    padding: 0 10px;
  }

  .mh-insta-tagline {
    font-size: 0.75rem;
  }

  .mh-insta-handle {
    font-size: 1rem;
  }

  .mh-recent-products {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 10px;
  }

  .mh-recent-card-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .mh-recent-card-brand {
    font-size: 0.8125rem;
  }

  .mh-recent-card-desc {
    font-size: 0.75rem;
    -webkit-line-clamp: 3;
  }

  .mh-home-inner {
    padding-left: 12px;
    padding-right: 12px;
  }

  .mh-home-section--recent {
    padding-top: 28px;
  }

  .mh-assises-banner-content {
    padding: 24px 20px;
    max-width: 100%;
  }

  .mh-assises-title {
    font-size: 1.5rem;
  }

  .mh-assises-sub {
    margin-bottom: 16px;
    font-size: 0.875rem;
  }

  .mh-footer-reinsurance {
    padding: 28px 16px;
  }

  .mh-footer-newsletter {
    padding: 24px 16px;
  }

  .mh-footer-newsletter-inner {
    padding: 0;
  }

  .mh-newsletter-row input {
    min-width: 0;
    width: 100%;
  }

  .mh-newsletter-row {
    flex-direction: column;
  }

  .mh-newsletter-row button {
    width: 100%;
  }

  .mh-footer-main {
    padding: 32px 16px 24px;
  }

  .mh-footer-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .mh-footer-legal-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .mh-legal-links {
    flex-direction: column;
    gap: 10px;
  }

  .mh-lang-wrap {
    align-items: flex-start;
    width: 100%;
  }

  .mh-lang-select {
    width: 100%;
  }

  .mh-back-top {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    right: 16px;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 480px) {
  .mh-promo-inner .countdown-container {
    display: none;
  }

  .mh-header-black-inner {
    padding: 8px 10px;
  }

  .mh-search-pill input {
    font-size: 16px;
  }

  .mh-home-banner img {
    aspect-ratio: 4/3;
  }
}

/* Pages internes — pas de débordement horizontal */
.mh-catalog-page,
body[data-page="product"],
body[data-page="cart"],
.mh-designers-page {
  overflow-x: hidden;
  max-width: 100%;
}

.mh-home-page {
  overflow-x: clip;
  max-width: 100%;
}
