/* ZMegamenu — topbar, nav, mega panels. zChocolat voice: Cormorant/Manrope,
   wide letterspacing, black/white, no rounded corners. */

:root {
  --zmm-ink: #0a0a0a;
  --zmm-stone: #6b6b6b;
  --zmm-rule: #e5e2dd;
  --zmm-sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --zmm-serif: "Cormorant Garamond", Georgia, serif;
}

/* ---------- Topbar ---------- */
.zmm-topbar {
  background: var(--zmm-ink);
  color: #cfcfcf;
  font-family: var(--zmm-sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.zmm-topbar__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 10px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.zmm-topbar__left { flex: 1 1 0; text-align: left; }
.zmm-topbar__center { flex: 2 1 0; text-align: center; color: #fff; }
.zmm-topbar__right { flex: 1 1 0; text-align: right; }
.zmm-topbar__right a { color: inherit; text-decoration: none; }
.zmm-topbar__right a:hover { color: #fff; }
@media (max-width: 767px) {
  .zmm-topbar__left, .zmm-topbar__right { display: none; }
}

/* ---------- Nav ---------- */
/* Prototype: menu entries sit left, right after the logo (not centered). */
.zmm-nav {
  align-items: stretch;
  justify-content: flex-start;
}
.zmm-nav__list {
  display: flex;
  align-items: stretch;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0 0 0 24px;
}
.zmm-nav__item { display: flex; }
.zmm-nav__link {
  display: flex;
  align-items: center;
  padding: 0 18px;
  font-family: var(--zmm-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--zmm-stone);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s ease;
}
.zmm-nav__link:hover,
.zmm-nav__link[aria-expanded="true"] {
  color: var(--zmm-ink);
  border-bottom-color: var(--zmm-ink);
  text-decoration: none;
}

/* ---------- Panels ---------- */
.zmm-panels { position: relative; }
.zmm-panel {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  background: #fff;
  border-top: 1px solid var(--zmm-rule);
  border-bottom: 1px solid var(--zmm-rule);
  box-shadow: 0 24px 40px -32px rgba(10, 10, 10, .25);
  z-index: 1000;
}
.zmm-panel.zmm-panel--open { display: block; }
.zmm-panel {
  max-height: calc(100vh - 150px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.zmm-panel__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 44px 72px 52px;
  display: grid;
  grid-template-columns: minmax(280px, 400px) minmax(0, 1fr);
  gap: 56px;
}

/* Featured */
.zmm-featured { display: block; text-decoration: none; }
.zmm-featured__frame { position: relative; overflow: hidden; }
.zmm-featured__frame img { width: 100%; height: auto; display: block; }
.zmm-featured__name {
  font-family: var(--zmm-serif);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.05;
  color: var(--zmm-ink);
  margin-top: 18px;
}
.zmm-featured__sub {
  margin-top: 10px;
  font-family: var(--zmm-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--zmm-ink);
}
.zmm-featured__text {
  margin: 8px 0 0;
  max-width: 360px;
  font-family: var(--zmm-sans);
  font-size: 12.5px;
  line-height: 1.65;
  color: #3d3d3d;
}
.zmm-featured__cta {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--zmm-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--zmm-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--zmm-ink);
  padding-bottom: 3px;
}
.zmm-featured__cta:hover { color: var(--zmm-ink); opacity: .7; text-decoration: none; }

/* Card grid */
.zmm-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--zmm-ink);
  padding-bottom: 12px;
  margin-bottom: 28px;
}
.zmm-panel__title {
  font-family: var(--zmm-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--zmm-ink);
}
.zmm-panel__viewall {
  font-family: var(--zmm-sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--zmm-stone);
  text-decoration: none;
}
.zmm-panel__viewall:hover { color: var(--zmm-ink); text-decoration: none; }

.zmm-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.zmm-card a { display: block; text-decoration: none; }
.zmm-card__frame { overflow: hidden; background: #f4f2ee; aspect-ratio: 4 / 3; }
.zmm-card__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.zmm-card a:hover .zmm-card__frame img { transform: scale(1.03); }
.zmm-card__name {
  margin-top: 12px;
  font-family: var(--zmm-serif);
  font-weight: 500;
  font-size: 19px;
  color: var(--zmm-ink);
}
.zmm-card__sub {
  margin-top: 3px;
  font-family: var(--zmm-sans);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--zmm-stone);
}

@media (max-width: 991px) {
  .zmm-panel__inner { grid-template-columns: 1fr; padding: 32px; }
  .zmm-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Topbar: contact + currency/language selectors ---------- */
.zmm-topbar__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}
.zmm-topbar__sep { opacity: .35; }
.zmm-switch { display: inline-flex; align-items: center; }
.zmm-switch__select {
  background: transparent;
  border: 0;
  color: #cfcfcf;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  padding-right: 2px;
}
.zmm-switch__select:focus { outline: none; color: #fff; }
.zmm-switch__select option { color: #0a0a0a; }
.zmm-switch--lang a, .zmm-switch--lang .zmm-switch__cur { color: #cfcfcf; text-decoration: none; }
.zmm-switch--lang .zmm-switch__cur { color: #fff; }
.zmm-switch--lang a:hover { color: #fff; }

/* ---------- Header actions: search / account / cart ---------- */
.zmm-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}
.zmm-actions__link {
  font-family: var(--zmm-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--zmm-ink);
  text-decoration: none;
  white-space: nowrap;
}
.zmm-actions__link:hover { color: var(--zmm-stone); text-decoration: none; }
.zmm-cart-trigger { background: none; border: 0; padding: 0; cursor: pointer; }
.zmm-actions__search { display: flex; align-items: center; }
.zmm-actions__search-toggle {
  background: none;
  border: 0;
  padding: 4px;
  cursor: pointer;
  color: var(--zmm-ink);
  display: flex;
}
.zmm-actions__search-input {
  width: 0;
  opacity: 0;
  border: 0;
  border-bottom: 1px solid var(--zmm-ink);
  background: transparent;
  font-family: var(--zmm-sans);
  font-size: 12px;
  padding: 2px 0;
  transition: width .25s ease, opacity .2s ease;
}
.zmm-actions__search.zmm-open .zmm-actions__search-input { width: 160px; opacity: 1; margin-left: 8px; }
.zmm-actions__search-input:focus { outline: none; }

/* ---------- Header cleanup (theme gray rules) ---------- */
.header-top, .header-bottom, .header-nav-full-width, #header {
  border-top: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

/* ---------- Creative Elements CMS pages: no page title above the hero ----------
   (the design hero carries the title; meta_title kept for SEO/tab) */
.page--full-width:has(.page-content--cms) .page-header { display: none; }
.zmm-switch--lang { gap: 8px; }
.zmm-switch--lang a { opacity: .75; }
.zmm-switch--lang a:hover { opacity: 1; }

/* ---------- Prototype heights: topbar ~40px, header ~96px ---------- */
.zmm-topbar__inner { padding-top: 15px; padding-bottom: 15px; }
.header-bottom__container { padding-top: 16px; padding-bottom: 16px; }

/* Featured preview (hover on a card) */
.zmm-featured__frame img { transition: opacity .25s ease; }
.zmm-featured__name, .zmm-featured__sub { transition: opacity .2s ease; }
.zmm-featured__text, .zmm-featured__cta { transition: opacity .25s ease; }
.zmm-panel__featured--preview .zmm-featured__text,
.zmm-panel__featured--preview .zmm-featured__cta { opacity: .55; }
.zmm-panel__featured--preview.zmm-panel__featured--custom .zmm-featured__text { opacity: 1; }

/* ---------- Mobile navigation (prototype design) ---------- */
@media (max-width: 767px) {
  /* topbar : message unique centré, rotation gérée par front.js */
  .zmm-topbar__inner { padding: 9px 18px; justify-content: center; }
  .zmm-topbar__left, .zmm-topbar__right { display: none; }
  .zmm-topbar__left { flex: none; text-align: center; }
  .zmm-topbar__center { flex: none; }
  .zmm-topbar__center { font-size: 9.5px; font-weight: 500; transition: opacity 500ms; max-width: 100%; white-space: normal; }

  /* header : burger | logo centré | panier */
  .header-bottom__row {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
  }
  .header-bottom__logo { grid-column: 2; grid-row: 1; justify-self: center; margin: 0 !important; }
  .header-bottom__logo .logo { height: 38px; width: auto; }
}

.zmm-mob-burger {
  grid-column: 1; grid-row: 1; justify-self: start;
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 6px; cursor: pointer;
}
.zmm-mob-burger span { display: block; width: 24px; height: 1.5px; background: var(--zmm-ink); }
.zmm-mob-burger span:last-child { width: 16px; }
.zmm-mob-cart {
  grid-column: 3; grid-row: 1; justify-self: end;
  font-family: var(--zmm-sans); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: #2a2a2a; text-decoration: none;
}
.zmm-mob-cart:hover { color: var(--zmm-ink); text-decoration: none; }

/* drawer plein écran */
.zmm-drawer {
  position: fixed; inset: 0; z-index: 9000; background: #fff;
  width: 100vw; max-width: 100vw;
  transform: translateX(-100%); visibility: hidden;
  transition: transform 380ms cubic-bezier(0.22, 0.61, 0.36, 1), visibility 0s linear 380ms;
  display: flex; flex-direction: column;
}
.zmm-drawer.zmm-open { transform: translateX(0); visibility: visible; transition-delay: 0s; }
.zmm-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--zmm-rule); flex-shrink: 0;
}
.zmm-drawer__logo { height: 34px; width: auto; display: block; }
.zmm-drawer__close {
  background: none; border: none; font-size: 24px; line-height: 1;
  color: var(--zmm-ink); cursor: pointer; padding: 6px;
  font-family: var(--zmm-sans); font-weight: 300;
}
.zmm-drawer__body { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; padding: 8px 22px 40px; }
.zmm-drawer__row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0; border-bottom: 1px solid var(--zmm-rule);
  cursor: pointer; text-decoration: none;
}
.zmm-drawer__row:hover { text-decoration: none; }
.zmm-drawer__label {
  font-family: var(--zmm-serif); font-weight: 400; font-size: 27px;
  color: var(--zmm-ink); line-height: 1;
}
.zmm-drawer__plus {
  font-family: var(--zmm-sans); font-size: 22px; color: var(--zmm-stone);
  line-height: 1; width: 24px; text-align: center;
  transition: transform 280ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.zmm-drawer__row[aria-expanded="true"] .zmm-drawer__plus { transform: rotate(45deg); }
@keyframes zmmFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.zmm-drawer__section { padding: 20px 0 26px; animation: zmmFade 360ms cubic-bezier(0.22, 0.61, 0.36, 1); }

/* featured mobile : uniquement l'item configuré (pas de préview) */
.zmm-mfeat { display: block; text-decoration: none; margin-bottom: 18px; }
.zmm-mfeat__frame { position: relative; aspect-ratio: 16 / 10; background: #f2efe9; overflow: hidden; }
.zmm-mfeat__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.zmm-mfeat__caption {
  position: absolute; inset: 0; padding: 18px 20px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(to top, rgba(10,10,10,0.74), rgba(10,10,10,0) 70%);
}
.zmm-mfeat__eyebrow {
  font-family: var(--zmm-sans); font-size: 9px; font-weight: 500;
  letter-spacing: 0.3em; text-transform: uppercase; color: rgba(255,255,255,0.72);
}
.zmm-mfeat__name {
  font-family: var(--zmm-serif); font-weight: 400; font-size: 28px;
  color: #fff; margin-top: 6px; line-height: 1.05;
}
.zmm-mcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; row-gap: 22px; }
.zmm-mcard { display: block; text-decoration: none; }
.zmm-mcard:hover { text-decoration: none; }
.zmm-mcard__frame { aspect-ratio: 1 / 1; background: #f2efe9; overflow: hidden; }
.zmm-mcard__frame img { width: 100%; height: 100%; object-fit: cover; }
.zmm-mcard__name {
  margin-top: 9px; font-family: var(--zmm-serif); font-size: 16px;
  font-weight: 500; color: var(--zmm-ink); line-height: 1.12;
}
.zmm-mcard__sub {
  font-family: var(--zmm-sans); font-size: 8px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--zmm-stone); margin-top: 3px;
}
.zmm-drawer__foot { margin-top: 34px; display: flex; flex-direction: column; gap: 18px; }
.zmm-drawer__account {
  font-family: var(--zmm-sans); font-size: 11px; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--zmm-ink); text-decoration: none;
}
.zmm-drawer__prefs { display: flex; gap: 26px; align-items: center; }
body.zmm-drawer-locked { overflow: hidden; }
