/* ══ Pommecan Méga Menu — refonte premium (double panneau) ══ */

:root {
  --pom-menu-font: 'DM Sans', sans-serif;
  --pom-menu-black: #0D1B1E;
  --pom-menu-grey: #7A9499;
  --pom-menu-grey-light: #EFF6F7;
  --pom-menu-cream: #FFFFFF;
  --pom-menu-gold: #1B6B77;
  --pom-menu-terra: #134F59;
  --pom-menu-white: #FFFFFF;
  --pom-shop-main-w: 300px;
  --pom-shop-sub-w: 460px;
  --pom-shop-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─── Intégration header : Shop (gauche) | Logo (centre) | Icônes (droite) ─── */
.pom-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.pom-header__left { justify-self: start; }
.pom-header__center { justify-self: center; }
.pom-header__right { justify-self: end; }

.pom-header__shop {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--pom-menu-font);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--pom-menu-black);
  padding: 8px 2px;
  position: relative;
}

.pom-header__shop::after {
  content: '';
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 4px;
  height: 1px;
  background: var(--pom-menu-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--pom-shop-ease);
}

.pom-header__shop:hover::after,
.pom-header__shop[aria-expanded="true"]::after { transform: scaleX(1); }

.pom-header__center .pom-header__logo { max-height: 40px; width: auto; display: block; }
.pom-header__center .pom-header__logo-text {
  font-family: var(--pom-menu-font);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--pom-menu-black);
  font-size: 18px;
}

/* ─── Overlay plein écran ─── */
.pom-shop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  visibility: hidden;
  pointer-events: none;
}

.pom-shop.is-open {
  visibility: visible;
  pointer-events: auto;
}

.pom-shop__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 27, 30, 0.28);
  opacity: 0;
  transition: opacity 0.35s var(--pom-shop-ease);
}

.pom-shop.is-open .pom-shop__backdrop { opacity: 1; }

/* ─── Panneaux dockés à gauche ─── */
.pom-shop__panels {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  display: flex;
  background: var(--pom-menu-white);
  box-shadow: 8px 0 40px rgba(13, 27, 30, 0.12);
  transform: translateX(-100%);
  transition: transform 0.4s var(--pom-shop-ease);
  max-width: 100vw;
}

.pom-shop.is-open .pom-shop__panels { transform: translateX(0); }

/* ─── Panneau principal ─── */
.pom-shop__main {
  width: var(--pom-shop-main-w);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 24px 0 28px;
  border-right: 1px solid var(--pom-menu-grey-light);
  overflow-y: auto;
}

.pom-shop__close {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--pom-menu-font);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--pom-menu-black);
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 0 28px 28px;
  align-self: flex-start;
}

.pom-shop__nav-list { list-style: none; margin: 0; padding: 0; }

.pom-shop__nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 28px;
  font-family: var(--pom-menu-font);
  font-size: 16px;
  letter-spacing: 0.3px;
  color: var(--pom-menu-black);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.pom-shop__nav-item:hover .pom-shop__nav-link,
.pom-shop__nav-item.is-active .pom-shop__nav-link {
  color: var(--pom-menu-gold);
}

.pom-shop__nav-arrow { color: var(--pom-menu-grey); flex-shrink: 0; }
.pom-shop__nav-item.is-active .pom-shop__nav-arrow { color: var(--pom-menu-gold); }

.pom-shop__main-footer {
  margin-top: auto;
  padding: 24px 28px 0;
  border-top: 1px solid var(--pom-menu-grey-light);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pom-shop__foot-heading {
  font-family: var(--pom-menu-font);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--pom-menu-grey);
}

.pom-shop__foot-link {
  font-family: var(--pom-menu-font);
  font-size: 14px;
  color: var(--pom-menu-black);
  text-decoration: none;
}
.pom-shop__foot-link:hover { color: var(--pom-menu-gold); }

/* ─── Panneaux secondaires ─── */
.pom-shop__sub-wrap {
  width: var(--pom-shop-sub-w);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.pom-shop__sub {
  position: absolute;
  inset: 0;
  padding: 24px 36px 28px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateX(12px);
  transition: opacity 0.3s var(--pom-shop-ease),
              transform 0.3s var(--pom-shop-ease),
              visibility 0.3s;
}

.pom-shop__sub.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Overlay fermé : force le masquage des sous-panneaux (un descendant visible
   annulerait sinon le visibility:hidden du parent, surtout en mobile) */
.pom-shop:not(.is-open) .pom-shop__sub {
  visibility: hidden !important;
  opacity: 0 !important;
}

.pom-shop__sub-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.pom-shop__sub-back {
  display: none; /* visible en mobile uniquement */
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--pom-menu-font);
  font-size: 15px;
  color: var(--pom-menu-black);
  padding: 0;
}

.pom-shop__sub-all {
  font-family: var(--pom-menu-font);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--pom-menu-gold);
  text-decoration: none;
  margin-left: auto;
}
.pom-shop__sub-all:hover { text-decoration: underline; text-underline-offset: 3px; }

.pom-shop__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 28px 24px;
}

.pom-shop__col { display: flex; flex-direction: column; gap: 12px; }

.pom-shop__col-img-wrap { display: block; overflow: hidden; aspect-ratio: 3 / 4; }
.pom-shop__col-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.5s var(--pom-shop-ease);
}
.pom-shop__col-img-wrap:hover .pom-shop__col-img { transform: scale(1.04); }

.pom-shop__col-title {
  font-family: var(--pom-menu-font);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--pom-menu-black);
  margin: 0;
  font-weight: 500;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--pom-menu-grey-light);
}

.pom-shop__col-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }

.pom-shop__col-link {
  font-family: var(--pom-menu-font);
  font-size: 14px;
  color: var(--pom-menu-grey);
  text-decoration: none;
  transition: color 0.2s;
}
.pom-shop__col-link:hover { color: var(--pom-menu-black); }

.pom-shop__col-link.is-final {
  font-size: 13px;
  color: var(--pom-menu-black);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: 6px;
}
.pom-shop__col-link.is-final:hover { color: var(--pom-menu-gold); }

/* ─── Verrou de scroll ─── */
body.pom-shop-locked { overflow: hidden; }

/* ─── Mobile : sous-panneau glisse par-dessus le principal ─── */
@media (max-width: 991px) {
  :root { --pom-shop-main-w: 86vw; --pom-shop-sub-w: 86vw; }

  .pom-shop__panels { width: 86vw; max-width: 380px; }
  .pom-shop__main {
    width: 100%;
    border-right: none;
  }

  .pom-shop__sub-wrap {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: var(--pom-menu-white);
    transform: translateX(100%);
    transition: transform 0.35s var(--pom-shop-ease);
    z-index: 2;
  }

  .pom-shop__panels.is-sub-open .pom-shop__sub-wrap { transform: translateX(0); }

  .pom-shop__sub-back { display: inline-flex; }
  .pom-shop__cols { grid-template-columns: 1fr; gap: 20px; }
  .pom-shop__col-img-wrap { display: none; }
}

/* ── Fix logo mobile dans grid header ── */
.pom-header__center .pom-header__logo-link {
  position: static !important;
  transform: none !important;
  left: auto !important;
}

.pom-header__center .pom-header__logo {
  width: auto !important;
  max-width: 120px !important;
  height: 36px !important;
  object-fit: contain !important;
}

/* ══ Fin Méga Menu ══ */
