/* Client-only geometry override. Repeated IDs beat the legacy canonical locks. */
body[data-pb-space="client"] #app#app#app#app#app#app#app#app#app#app#app#app .mockup.pb-client-flow-v4 {
  height: auto !important;
  min-height: 100svh !important;
  padding-top: 0 !important;
  overflow-x: clip !important;
}
body[data-pb-space="client"] #app#app#app#app#app#app#app#app#app#app#app#app .pb-client-header-v4 {
  position: relative !important;
  inset: auto !important;
  display: grid !important;
  grid-template-columns: 120px minmax(0, 1fr) 260px !important;
  grid-template-areas: "logo nav actions" !important;
  align-items: start !important;
  gap: 16px !important;
  width: min(1480px, calc(100% - 32px)) !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 auto 20px !important;
  padding: 16px 0 !important;
  box-sizing: border-box !important;
  transform: none !important;
  z-index: 2 !important;
}
body[data-pb-space="client"] #app#app#app#app#app#app#app#app#app#app#app#app .pb-client-header-v4 :is(.page-logo-home-link, .site-nav-overlay, .client-header-actions, .theme-mode-switch, .quick-actions-overlay, .install-home-button) {
  position: relative !important;
  inset: auto !important;
  float: none !important;
  transform: none !important;
  height: auto !important;
  block-size: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  min-width: 0 !important;
  min-inline-size: 0 !important;
  max-width: 100% !important;
  max-inline-size: 100% !important;
}
body[data-pb-space="client"] #app#app#app#app#app#app#app#app#app#app#app#app .pb-client-header-v4 .page-logo-home-link {
  grid-area: logo !important;
  display: block !important;
  width: 120px !important;
  inline-size: 120px !important;
  aspect-ratio: 1 !important;
}
body[data-pb-space="client"] #app#app#app#app#app#app#app#app#app#app#app#app .pb-client-header-v4 .page-logo-overlay {
  display: block !important;
  position: static !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 1 !important;
}
body[data-pb-space="client"] #app#app#app#app#app#app#app#app#app#app#app#app .pb-client-header-v4 .site-nav-overlay {
  grid-area: nav !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-template-rows: none !important;
  grid-template-areas: none !important;
  grid-auto-rows: auto !important;
  gap: 12px !important;
  width: 100% !important;
  inline-size: 100% !important;
  padding: 0 !important;
}
body[data-pb-space="client"] #app#app#app#app#app#app#app#app#app#app#app#app .pb-client-header-v4 .client-header-actions {
  grid-area: actions !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 12px !important;
  width: 100% !important;
  justify-items: stretch !important;
}
body[data-pb-space="client"] #app#app#app#app#app#app#app#app#app#app#app#app .pb-client-header-v4 .theme-mode-switch {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  width: 100% !important;
  inline-size: 100% !important;
  padding: 0 !important;
  overflow: visible !important;
}
body[data-pb-space="client"] #app#app#app#app#app#app#app#app#app#app#app#app .pb-client-header-v4 .quick-actions-overlay {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-template-rows: none !important;
  grid-auto-rows: auto !important;
  gap: 12px !important;
  width: 100% !important;
  inline-size: 100% !important;
  padding: 0 !important;
}
body[data-pb-space="client"] #app#app#app#app#app#app#app#app#app#app#app#app .pb-client-header-v4 :is(.nav-button, .client-quick-action, .theme-mode-switch > button, .install-home-button) {
  position: relative !important;
  inset: auto !important;
  grid-area: auto !important;
  grid-column: auto !important;
  width: 100% !important;
  inline-size: 100% !important;
  min-width: 0 !important;
  min-inline-size: 0 !important;
  min-height: 44px !important;
  height: auto !important;
  block-size: auto !important;
  padding: 8px 10px !important;
  box-sizing: border-box !important;
  white-space: normal !important;
  font-size: clamp(11px, 1.1vw, 15px) !important;
  line-height: 1.25 !important;
  transform: none !important;
}
body[data-pb-space="client"] #app#app#app#app#app#app#app#app#app#app#app#app .pb-client-header-v4 .install-home-button {
  grid-column: 1 / -1 !important;
}
body[data-pb-space="client"] #app#app#app#app#app#app#app#app#app#app#app#app .pb-client-flow-v4 > :is(section, .client-page-content, .contact-panel, .event-detail, .location-detail, .account-page-content, .cart-page-content, .lot01-composition-page, .home-quality-teaser, .client-route-back, .site-legal-footer, .client-pages-overview, .votes-overview, .vote-detail, .client-product-reviews-page) {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  z-index: 1 !important;
}
body[data-pb-space="client"] #app#app#app#app#app#app#app#app#app#app#app#app .pb-client-flow-v4 > .client-page-content {
  margin-top: 16px !important;
}
body[data-pb-space="client"] #app#app#app#app#app#app#app#app#app#app#app#app .pb-client-flow-v4 > .client-scene-image {
  position: absolute !important;
}
body[data-pb-space="client"] #app#app#app#app#app#app#app#app#app#app#app#app .pb-client-flow-v4 > .client-mobile-top-logo {
  display: none !important;
}
body[data-pb-space="client"] #app#app#app#app#app#app#app#app#app#app#app#app .pb-client-flow-v4[data-page="accueil"] .home-quality-teaser {
  width: min(540px, calc(100% - 32px)) !important;
  height: auto !important;
  margin: clamp(40px, 10vw, 140px) auto 60px !important;
}
/* Fit the entire existing photo in its frame; never crop or replace the asset. */
body[data-pb-space="client"] #app#app#app#app#app#app#app#app#app#app#app#app img,
body[data-pb-space="client"] #modalBackdrop#modalBackdrop#modalBackdrop#modalBackdrop img {
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
}
@media (max-width: 1040px) {
  body[data-pb-space="client"] #app#app#app#app#app#app#app#app#app#app#app#app .pb-client-header-v4 {
    grid-template-columns: 90px minmax(0, 1fr) 220px !important;
    gap: 12px !important;
  }
  body[data-pb-space="client"] #app#app#app#app#app#app#app#app#app#app#app#app .pb-client-header-v4 .page-logo-home-link {
    width: 90px !important;
    inline-size: 90px !important;
  }
}
@media (max-width: 740px) {
  body[data-pb-space="client"] #app#app#app#app#app#app#app#app#app#app#app#app .pb-client-header-v4 {
    grid-template-columns: 80px minmax(0, 1fr) !important;
    grid-template-areas: "logo actions" "nav nav" !important;
    width: calc(100% - 24px) !important;
    gap: 16px 12px !important;
    padding: 12px 0 !important;
  }
  body[data-pb-space="client"] #app#app#app#app#app#app#app#app#app#app#app#app .pb-client-header-v4 .page-logo-home-link {
    width: 80px !important;
    inline-size: 80px !important;
  }
  body[data-pb-space="client"] #app#app#app#app#app#app#app#app#app#app#app#app .pb-client-header-v4 .site-nav-overlay {
    gap: 12px 8px !important;
  }
}
@media (max-width: 420px) {
  body[data-pb-space="client"] #app#app#app#app#app#app#app#app#app#app#app#app .pb-client-header-v4 .site-nav-overlay {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Keep one accessible DOM label, not labels painted into a background image. */
body[data-pb-space="client"] #app#app#app#app#app#app#app#app#app#app#app#app .pb-client-header-v4 .theme-mode-switch {
  background: linear-gradient(180deg, #ff79d9 0%, #f000bd 18%, #ad00df 58%, #6c009e 100%) !important;
  border: 1px solid #f8a9fa !important;
  border-radius: 999px !important;
  box-shadow: inset 0 2px 1px #fff9, inset 0 -3px 3px #50006580 !important;
  isolation: isolate !important;
}

body[data-pb-space="client"] #app#app#app#app#app#app#app#app#app#app#app#app .pb-client-header-v4 .theme-mode-switch::before,
body[data-pb-space="client"] #app#app#app#app#app#app#app#app#app#app#app#app .pb-client-header-v4 .theme-mode-switch::after,
body[data-pb-space="client"] #app#app#app#app#app#app#app#app#app#app#app#app .pb-client-header-v4 .theme-mode-switch > button::before,
body[data-pb-space="client"] #app#app#app#app#app#app#app#app#app#app#app#app .pb-client-header-v4 .theme-mode-switch > button::after {
  content: none !important;
  display: none !important;
  background: none !important;
}

body[data-pb-space="client"] #app#app#app#app#app#app#app#app#app#app#app#app .pb-client-header-v4 .theme-mode-switch > button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-shadow: 0 1px 2px #390047 !important;
  font-weight: 800 !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

body[data-pb-space="client"] #app#app#app#app#app#app#app#app#app#app#app#app .pb-client-header-v4 .theme-mode-switch > button[aria-pressed="true"] {
  background: linear-gradient(180deg, #ffffff55, #5d007b99) !important;
  box-shadow: inset 0 0 0 1px #ffffffaa, 0 1px 4px #47005c66 !important;
}

body[data-pb-space="client"] #app#app#app#app#app#app#app#app#app#app#app#app .pb-client-header-v4 .theme-mode-switch > button:focus-visible {
  outline: 2px solid #fff !important;
  outline-offset: -4px !important;
}

/* Natural image height avoids letterboxing without cropping the scene. */
body[data-pb-space="client"] #app#app#app#app#app#app#app#app#app#app#app#app .pb-client-flow-v4 > .client-scene-image {
  width: 100% !important;
  inline-size: 100% !important;
  height: auto !important;
  block-size: auto !important;
  min-height: 0 !important;
  min-block-size: 0 !important;
  max-height: none !important;
  max-block-size: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center top !important;
}
