/* ===============================================================
   UBERPEGUY V7 — FOND SOMBRE ET VISIBLE SUR TOUT LE SITE
   Shared by the homepage, catalogue and administration.
   Change --street-shade-top / --street-shade-bottom to adjust
   photo visibility without changing any commerce functionality.
   =============================================================== */

body.site-homepage,
body.boutique-page,
body.admin-backdrop {
  --street-shade-top: rgba(2, 9, 5, .67);
  --street-shade-bottom: rgba(2, 9, 5, .78);
  background-color: #06100a !important;
  background-image:
    linear-gradient(180deg, var(--street-shade-top), var(--street-shade-bottom)),
    url('./peguy-background.png') !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}

/* HOME — the last V5 stylesheet used a solid body background,
   hiding the photo outside the hero. All main sections now show it. */
body.site-homepage::before {
  opacity: .08 !important;
  background: radial-gradient(ellipse at 85% 25%, rgba(151,255,28,.12), transparent 50%) !important;
}
body.site-homepage .hero.v5-hero {
  background: transparent !important;
}
body.site-homepage .hero.v5-hero::after {
  background: linear-gradient(90deg,
    rgba(2, 9, 5, .77) 0%,
    rgba(2, 9, 5, .62) 48%,
    rgba(2, 9, 5, .44) 100%) !important;
}
body.site-homepage .v5-section,
body.site-homepage .v5-how,
body.site-homepage .v5-catalogue,
body.site-homepage .v5-delivery,
body.site-homepage .v5-faq {
  background: transparent !important;
}
body.site-homepage .v5-catalogue::before {
  background: transparent !important;
}
body.site-homepage .v5-introbar {
  background: rgba(5, 18, 10, .73) !important;
  backdrop-filter: blur(8px);
}
body.site-homepage .v5-benefit {
  background: linear-gradient(150deg, rgba(16,35,20,.85), rgba(5,18,10,.79)) !important;
}
body.site-homepage .step-premium.v5-step {
  background: linear-gradient(150deg, rgba(14,30,18,.85), rgba(6,17,10,.80)) !important;
}
body.site-homepage .v5-catalogue-shell {
  background: linear-gradient(135deg, rgba(14,30,18,.81), rgba(5,15,10,.78)) !important;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
body.site-homepage .v5-product-card {
  background: linear-gradient(155deg, rgba(19,37,23,.88), rgba(8,22,13,.84)) !important;
}
body.site-homepage .v5-delivery-card {
  background: linear-gradient(155deg, rgba(14,32,20,.86), rgba(6,20,12,.80)) !important;
}
body.site-homepage .v5-accordion details {
  background: rgba(10,26,15,.84) !important;
}
body.site-homepage .up-footer-final {
  background: rgba(4,13,8,.85) !important;
  backdrop-filter: blur(7px);
}

/* CATALOGUE — reuse the same panorama for a continuous identity. */
body.boutique-page {
  --street-shade-top: rgba(2, 9, 5, .68);
  --street-shade-bottom: rgba(2, 9, 5, .79);
}
body.boutique-page #produits,
body.boutique-page .section,
body.boutique-page .up-footer-final {
  background-image: none !important;
}
body.boutique-page .catalog-tools {
  background: rgba(5, 18, 10, .76) !important;
  backdrop-filter: blur(8px);
}
body.boutique-page .card {
  background: rgba(11, 27, 16, .86) !important;
}
body.boutique-page .up-footer-final {
  background-color: rgba(4, 14, 8, .86) !important;
}

/* ADMIN — V3's solid workspace covered the photo completely. */
body.admin-backdrop {
  --street-shade-top: rgba(3, 10, 5, .69);
  --street-shade-bottom: rgba(3, 10, 5, .80);
}
body.admin-backdrop .app,
body.admin-backdrop .workspace,
body.admin-backdrop main {
  background: transparent !important;
}
body.admin-backdrop .side {
  background: rgba(8, 17, 10, .83) !important;
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
}
body.admin-backdrop .topbar {
  background: rgba(9, 19, 12, .80) !important;
}
body.admin-backdrop .card,
body.admin-backdrop .login-box {
  background: rgba(12, 27, 16, .85) !important;
}
body.admin-backdrop .dash-kpi {
  background: rgba(14, 31, 19, .86) !important;
}
body.admin-backdrop .dash-kpi-feature {
  background: linear-gradient(135deg, rgba(31, 55, 21, .9), rgba(15, 36, 20, .87)) !important;
}
body.admin-backdrop .orders-controls,
body.admin-backdrop .orders-kpi,
body.admin-backdrop .order-ticket,
body.admin-backdrop .quick-action,
body.admin-backdrop .bulk-toolbar,
body.admin-backdrop .orders-blank {
  background: rgba(13, 29, 17, .86) !important;
}
body.admin-backdrop .order-ticket.is-open,
body.admin-backdrop .order-detail-panel {
  background: rgba(9, 24, 14, .90) !important;
}
body.admin-backdrop .workspace-foot {
  background: rgba(5, 16, 9, .68);
}

/* Keep legible content and prevent janky effects on touch devices. */
@media (max-width: 860px) {
  body.site-homepage,
  body.boutique-page,
  body.admin-backdrop {
    background-position: 57% center !important;
    background-attachment: fixed !important;
  }
  body.site-homepage .v5-catalogue-shell,
  body.boutique-page .catalog-tools {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
@media (prefers-reduced-transparency: reduce) {
  body.site-homepage .v5-product-card,
  body.site-homepage .v5-catalogue-shell,
  body.admin-backdrop .card,
  body.admin-backdrop .order-ticket {
    background: rgba(8, 23, 12, .94) !important;
  }
}
