.murmur-global-footer {
  display: block !important;
  order: 999999 !important;
  grid-column: 1 / -1 !important;
  grid-row: auto !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  align-items: stretch !important;
  justify-items: stretch !important;
  gap: 0 !important;
  text-align: left !important;
  position: relative !important;
  inset: auto !important;
  float: none !important;
  clear: both !important;
}

.murmur-global-footer > section,
.murmur-global-footer > div {
  min-width: 0;
  max-width: none;
}

body.murmur-footer-ready {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  min-height: 100vh;
}

body.murmur-footer-ready > main {
  order: 0 !important;
  flex: 0 0 auto !important;
  width: 100% !important;
}

body.murmur-footer-ready > .murmur-global-footer {
  order: 999999 !important;
  flex: 0 0 auto !important;
  margin-top: auto !important;
}

/* The legacy collection header now exposes the same cart treatment as the
   shared header used by current and static pages. */
.site-header .site-header-brand {
  width: 175px !important;
  min-width: 220px !important;
  background: url("/brand/postyourmood-logo-cutout-v1.png") left center / 175px auto no-repeat !important;
  filter: drop-shadow(0 3px 3px rgba(32, 53, 47, .13));
}

.site-header .site-header-brand > .brand-lockup,
.site-header .site-header-brand > .brand-posters {
  display: none !important;
}

/* Remove the yellow underline from the former text lockup. It otherwise
   remains absolutely positioned on top of the new cut-out logo. */
.site-header .site-header-brand::after,
.site-header .site-header-brand:hover::after {
  content: none !important;
  display: none !important;
}

.site-header-cart.is-link b {
  min-width: 20px !important;
  height: 20px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 50% !important;
  color: var(--ink, #20352f) !important;
  background: var(--yellow, #f3cc5d) !important;
  font-size: 11px !important;
  animation: none !important;
}

/* All routes now keep the same complete footer, including its PLÜM invitation. */

/* The global footer already contains the complete PLÜM invitation. The
   smaller legacy home-page banner repeated it immediately above. */
.shop-creative-escape { display: none !important; }

/* Keep the remaining home-page service block on the same 1500 px grid as the
   hero and the collection sections above it. */
.shop-services {
  width: min(1500px, 92vw) !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* One consistent lift back to the top on every storefront route. It sits
   above the PLÜM nudge and the page-specific floating action bars. */
.murmur-back-to-top {
  width: 54px;
  height: 54px;
  position: fixed;
  right: 20px;
  bottom: 136px;
  z-index: 75;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 250, 241, .72);
  border-radius: 50%;
  color: #fffaf1;
  background: #eb6249;
  box-shadow: 0 14px 34px rgba(32, 53, 47, .28);
  font: 700 25px/1 Arial, Helvetica, sans-serif;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px) scale(.92);
  transition: opacity .22s ease, visibility .22s ease, transform .22s ease, color .18s ease, background .18s ease;
}

.murmur-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.murmur-back-to-top:hover,
.murmur-back-to-top:focus-visible {
  color: #20352f;
  background: #f3cc5d;
  outline: 3px solid rgba(243, 204, 93, .32);
  outline-offset: 3px;
  transform: translateY(-3px) scale(1);
}

/* The homepage universe cards become a swipeable track on mobile. These
   controls stay centered on the visible card while the track moves below. */
.murmur-universe-carousel-shell {
  display: contents;
}

.murmur-universe-carousel-arrow {
  display: none;
}

/* Mobile app navigation and progressive installation prompt. They are
   injected by the shared navigation script so the current app and the legacy
   catalogue receive exactly the same controls. */
.pym-mobile-app-dock,
.pym-install-app-prompt {
  display: none;
}

@media (max-width: 720px) {
  body.pym-mobile-app-ready {
    padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .pym-mobile-app-dock {
    width: calc(100% - 16px);
    min-height: 70px;
    position: fixed;
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom, 0px));
    left: 8px;
    z-index: 96;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    padding: 5px;
    border: 1px solid rgba(32, 53, 47, .18);
    border-radius: 24px;
    background: rgba(255, 250, 241, .96);
    box-shadow: 0 18px 46px rgba(32, 53, 47, .24);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }

  .pym-mobile-app-link {
    min-width: 0;
    min-height: 58px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    padding: 5px 2px 4px;
    border-radius: 18px;
    color: #52605a;
    font-family: var(--font-sans, Arial, Helvetica, sans-serif);
    text-decoration: none;
    touch-action: manipulation;
    transition: color .18s ease, background .18s ease, transform .18s ease;
  }

  .pym-mobile-app-link::after {
    width: 14px;
    height: 3px;
    position: absolute;
    bottom: 3px;
    left: 50%;
    border-radius: 999px;
    background: transparent;
    content: "";
    transform: translateX(-50%);
  }

  .pym-mobile-app-link:active { transform: scale(.94); }
  .pym-mobile-app-link:focus-visible {
    outline: 3px solid rgba(235, 98, 73, .32);
    outline-offset: 1px;
  }

  .pym-mobile-app-link.is-active {
    color: #20352f;
    background: #f7e6a9;
  }

  .pym-mobile-app-link.is-active::after { background: #eb6249; }

  .pym-mobile-app-icon {
    width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
  }

  .pym-mobile-app-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .pym-mobile-app-label {
    max-width: 100%;
    overflow: hidden;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .pym-install-app-prompt {
    width: min(430px, calc(100% - 20px));
    min-height: 68px;
    position: fixed;
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    z-index: 98;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto 28px;
    align-items: center;
    gap: 9px;
    padding: 9px 8px 9px 10px;
    border: 1px solid rgba(255, 250, 241, .2);
    border-radius: 21px;
    color: #fffaf1;
    background: #20352f;
    box-shadow: 0 16px 42px rgba(32, 53, 47, .34);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 12px);
    transition: opacity .2s ease, transform .2s ease;
  }

  .pym-install-app-prompt.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }

  .pym-install-app-logo {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .pym-install-app-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
  }

  .pym-install-app-copy strong {
    overflow: hidden;
    font: 800 12px/1.15 var(--font-sans, Arial, Helvetica, sans-serif);
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .pym-install-app-copy small {
    color: rgba(255, 250, 241, .72);
    font: 600 10px/1.25 var(--font-sans, Arial, Helvetica, sans-serif);
  }

  .pym-install-app-copy .pym-install-app-help {
    color: #f3cc5d;
    white-space: normal;
  }

  .pym-install-app-action {
    min-height: 40px;
    padding: 0 12px;
    border: 0;
    border-radius: 14px;
    color: #20352f;
    background: #f3cc5d;
    font: 900 10px/1 var(--font-sans, Arial, Helvetica, sans-serif);
    cursor: pointer;
    touch-action: manipulation;
  }

  .pym-install-app-close {
    width: 28px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    color: rgba(255, 250, 241, .72);
    background: transparent;
    font: 400 24px/1 Arial, Helvetica, sans-serif;
    cursor: pointer;
    touch-action: manipulation;
  }

  /* Existing floating controls stay above the application dock. */
  body.pym-mobile-app-ready .murmurito-nudge-shell {
    bottom: calc(92px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.pym-mobile-app-ready .murmur-back-to-top {
    bottom: calc(228px + env(safe-area-inset-bottom, 0px));
  }

  body.pym-install-app-visible .murmurito-nudge-shell {
    bottom: calc(168px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.pym-install-app-visible .murmur-back-to-top { display: none; }

  body.pym-mobile-app-ready [class*="_mobileSticky_"] {
    bottom: calc(90px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (max-width: 720px) {
  .site-header-strip {
    min-height: 42px !important;
    padding: 0 14px !important;
    line-height: 1.25 !important;
    white-space: normal !important;
  }

  /* Keep long mobile headings inside their rounded content blocks. */
  main[class*="_page_"] [class*="_hero_"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  main[class*="_page_"] [class*="_heroCopy_"],
  .city-collection-hero-copy,
  .territory-hero-copy,
  .about-story-heading,
  .about-story-copy,
  .race-poster-copy {
    min-width: 0 !important;
  }

  .city-collection-hero,
  .race-collection-hero,
  .race-catalogue-heading,
  .territory-hero,
  .about-story {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  main[class*="_page_"] [class*="_heroCopy_"] :is(h1, h2, h3, p, span, em, strong),
  .city-collection-hero-copy :is(h1, h2, h3, p, span, em, strong),
  .race-collection-hero-copy :is(h1, h2, h3, p, span, em, strong),
  .race-catalogue-heading :is(h1, h2, h3, p, span, em, strong),
  .territory-hero-copy :is(h1, h2, h3, p, span, em, strong),
  .about-story :is(h1, h2, h3, p, span, em, strong),
  .race-poster-copy :is(h1, h2, h3, p, span, em, strong) {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .universe-spotlight-copy {
    grid-template-columns: 37px minmax(0, 1fr) !important;
  }

  .universe-spotlight-copy > div {
    min-width: 0 !important;
  }

  .universe-spotlight-copy strong {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  main[class*="_page_"] [class*="_customCta_"] {
    grid-template-columns: 90px minmax(0, 1fr) !important;
    gap: 14px !important;
  }

  main[class*="_page_"] [class*="_customCta_"] > div {
    min-width: 0 !important;
  }

  main[class*="_page_"] [class*="_customCta_"] > a {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .about-closing {
    grid-template-columns: 88px minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  .about-closing > * {
    min-width: 0 !important;
  }

  .shop-services {
    width: calc(100% - 28px) !important;
  }

  .murmur-back-to-top {
    width: 48px;
    height: 48px;
    right: 14px;
    /* PLÜM déborde visuellement au-dessus de son lanceur mobile. La flèche
       reste volontairement au-dessus de toute la silhouette. */
    bottom: 176px;
    font-size: 23px;
  }

  .murmur-universe-carousel-shell {
    width: 100%;
    max-width: 1400px;
    position: relative;
    display: block;
    margin: 0 auto;
  }

  .murmur-universe-carousel-arrow {
    appearance: none;
    width: 44px;
    height: 44px;
    position: absolute;
    top: calc(50% - 8px);
    z-index: 24;
    display: grid;
    place-items: center;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 250, 241, .82);
    border-radius: 50%;
    color: #fffaf1;
    background: #eb6249;
    box-shadow: 0 10px 24px rgba(32, 53, 47, .25);
    font: 800 22px/1 Arial, Helvetica, sans-serif;
    cursor: pointer;
    transform: translateY(-50%);
    transition: opacity .18s ease, transform .18s ease, background .18s ease;
    touch-action: manipulation;
  }

  .murmur-universe-carousel-arrow.is-previous { left: 7px; }
  .murmur-universe-carousel-arrow.is-next { right: 7px; }

  .murmur-universe-carousel-arrow:not(:disabled):active {
    transform: translateY(-50%) scale(.92);
  }

  .murmur-universe-carousel-arrow:focus-visible {
    color: #20352f;
    background: #f3cc5d;
    outline: 3px solid rgba(243, 204, 93, .38);
    outline-offset: 3px;
  }

  .murmur-universe-carousel-arrow:disabled {
    color: rgba(32, 53, 47, .62);
    background: rgba(255, 250, 241, .9);
    border-color: rgba(32, 53, 47, .24);
    opacity: .82;
    cursor: default;
    box-shadow: 0 6px 16px rgba(32, 53, 47, .14);
  }

  /* PLÜM stays useful without covering almost the whole mobile viewport. The
     mascot now floats from the corner instead of reserving a tall empty row. */
  .murmurito-nudge-shell {
    width: min(390px, calc(100vw - 24px));
    min-width: 0;
    right: 12px;
    bottom: 12px;
  }

  .murmurito-nudge {
    max-height: none;
    min-height: 0;
    padding: 20px 14px 14px;
    border-radius: 24px;
    overflow: visible;
  }

  .murmurito-nudge-close {
    width: 32px;
    height: 32px;
    top: 11px;
    right: 11px;
    font-size: 18px;
  }

  .murmurito-nudge-character {
    width: 124px;
    height: 142px;
    min-height: 142px;
    top: -52px;
    left: -38px;
  }

  .murmurito-nudge-character .murmurito-mascot {
    width: 124px;
    height: 124px;
  }

  .murmurito-nudge-character::after {
    top: 27px;
    right: 5px;
    font-size: 16px;
  }

  .murmurito-hello { display: none; }
  .murmurito-nudge-kicker {
    min-height: 16px;
    margin-left: 72px;
    padding-right: 34px;
    font-size: 6.5px;
  }

  .murmurito-nudge-copy h3 {
    margin: 8px 18px 8px 72px;
    font-size: 24px;
    line-height: .94;
  }

  .murmurito-nudge-copy > p {
    margin-left: 0;
    font-size: 9.5px;
    line-height: 1.4;
  }

  .murmurito-nudge-offer {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 9px;
    margin: 10px 0 8px;
    padding: 10px;
    border-radius: 14px;
  }

  .murmurito-nudge-offer > strong {
    min-width: 66px;
    font-size: 27px;
  }

  .murmurito-nudge-offer span { font-size: 7px; }
  .murmurito-refund {
    gap: 5px;
    margin-bottom: 8px;
    padding: 9px 10px;
    border-radius: 14px;
  }
  .murmurito-refund b { font-size: 7.5px; }
  .murmurito-refund b::before {
    width: 18px;
    height: 18px;
    margin-right: 6px;
    font-size: 9px;
  }
  .murmurito-refund span {
    font-size: 7.5px;
    line-height: 1.38;
  }

  .murmurito-nudge-cta {
    min-height: 46px;
    padding: 10px 12px 10px 15px;
    border-radius: 14px;
    font-size: 7.5px;
  }

  .murmurito-nudge-cta b {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
}

@media (max-width: 1080px) {
  .site-header .site-header-brand {
    width: 160px !important;
    min-width: 160px !important;
    background-size: 160px auto !important;
  }
}

@media (max-width: 760px) {
  .site-header .site-header-brand {
    width: 150px !important;
    min-width: 150px !important;
    background-size: 150px auto !important;
  }
}

@media (max-width: 500px) {
  .site-header .site-header-brand {
    width: 138px !important;
    min-width: 138px !important;
    background-size: 138px auto !important;
  }
}

/* Les descriptions des collections sportives restent intégralement lisibles.
   Les anciennes cartes les réduisaient à deux lignes sur tablette et bureau,
   alors que la grille aligne déjà les cartes et leurs boutons. */
.race-poster-copy p {
  display: block !important;
  overflow: visible !important;
  -webkit-line-clamp: unset !important;
}

@media (max-width: 720px) {
  .race-poster-copy {
    min-height: 0 !important;
  }

  .race-poster-copy p {
    min-height: 0 !important;
    font-size: 10.5px !important;
    line-height: 1.45 !important;
  }
}

@media (max-width: 480px) {
  .murmurito-nudge-shell {
    width: calc(100vw - 20px);
    right: 10px;
    bottom: 10px;
  }

  .murmurito-nudge { padding: 18px 12px 12px; }
  .murmurito-nudge-character {
    width: 106px;
    height: 120px;
    min-height: 120px;
    top: -42px;
    left: -30px;
  }
  .murmurito-nudge-character .murmurito-mascot {
    width: 106px;
    height: 106px;
  }
  .murmurito-nudge-kicker { margin-left: 62px; font-size: 6px; }
  .murmurito-nudge-copy h3 {
    margin-left: 62px;
    font-size: 21px;
  }
  .murmurito-nudge-copy > p { font-size: 8.8px; }
  .murmurito-nudge-offer > strong { min-width: 58px; font-size: 24px; }
  .murmurito-nudge-offer span { font-size: 6.4px; }
  .murmurito-refund span { font-size: 6.9px; }
  .murmurito-nudge-cta { min-height: 44px; font-size: 6.8px; }
}

@media (max-width: 340px) {
  .murmur-back-to-top {
    right: 10px;
    z-index: 110;
  }
}

@media (prefers-reduced-motion: reduce) {
  .murmur-back-to-top,
  .murmur-universe-carousel-arrow,
  .pym-mobile-app-link,
  .pym-install-app-prompt { transition: none; }
}
/* Stable transition between the vendored catalogue and the current app. */
.murmur-route-curtain {
  position: fixed;
  inset: 0;
  z-index: 119;
  display: grid;
  place-content: center;
  gap: 8px;
  color: #20352f;
  background: #f7f2e8;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.murmur-route-curtain.is-visible { opacity: 1; pointer-events: auto; }
.murmur-route-curtain span {
  font: 900 clamp(20px, 3vw, 34px)/1 var(--font-display, Arial, sans-serif);
  letter-spacing: -.04em;
}
.murmur-route-curtain small {
  color: #66736d;
  font: 700 9px/1.2 var(--font-mono, monospace);
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}
