/* Identité originale Jey Pastry et corrections d’affichage — 22 novembre 2026. */
:root {
  --jey-nav-height: 96px;
  --jey-ink: #27231e;
  --jey-green: #1e6025;
  --jey-orange: #ed7026;
}

html { scroll-padding-top: calc(var(--jey-nav-height) + 24px); }
.navbar {
  top: 0;
  height: var(--jey-nav-height);
  background: #fff;
  border-bottom: 1px solid #dedbd4;
  box-shadow: 0 5px 20px #27231e09;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.navbar .container {
  height: 100%;
  min-height: 0;
  max-width: 1280px;
  padding: 6px 28px;
}
.navbar .logo-text { min-width: 0; flex: 0 0 auto; height: auto; margin: 0; }
.navbar .logo-text::before, .navbar .logo-text::after { content: none !important; }
/* Le PNG original reste intact : on masque seulement ses marges blanches. */
.jey-logo {
  position: relative;
  display: block;
  width: 136px;
  height: 82px;
  flex: 0 0 auto;
  overflow: hidden;
  background: #fff;
}
.navbar .logo-text .jey-logo img, .jey-logo img {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: 240%;
  max-width: none;
  height: auto;
  object-fit: contain;
  filter: none;
  transform: translate(-50%, -46%);
  transition: none;
}
.navbar .nav-links { gap: 2px; }
.navbar .nav-links a { color: var(--jey-ink); font-size: 13px; padding: 12px; }
.navbar .nav-links .nav-icon svg { stroke: currentColor; }

/* Un seul dessin, sans mosaïque ni background-attachment: fixed sur iPhone. */
.home-shop-drop,
.commander-page .boutique,
body.page-product,
body.cart-page {
  background-color: #fff;
  background-image: url("images/jey-peinture-original.png");
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-position: center top;
  background-size: 100% auto;
}
body.page-product, body.cart-page {
  background-position: center var(--jey-nav-height);
  background-size: max(100%, 1000px) auto;
}
.home-shop-drop {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 720px;
  padding: calc(var(--jey-nav-height) + 100px) 24px 100px;
  background-position: center var(--jey-nav-height);
  background-size: 100% calc(100% - var(--jey-nav-height));
  text-align: center;
}
.home-shop-drop .home-copy { max-width: 860px; padding: 24px; }
.home-shop-drop h1 {
  font-size: clamp(52px, 6vw, 86px);
  line-height: 1.1;
  letter-spacing: -3px;
}
.home-shop-drop h1 em { color: var(--jey-green); }
.home-shop-drop .boutique-button { background: var(--jey-ink); color: #fff; margin-top: 28px; }
.home-shop-drop + .hero-jey { display: none; }

.commander-page .boutique { padding-top: var(--jey-nav-height); }
.commander-page .boutique-hero {
  padding: 54px 32px 64px;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: 48px;
  background: transparent;
}
.commander-page .boutique-copy { padding: 26px; background: #fffffff5; border-radius: 16px; }
.commander-page .boutique-copy h1 { font-size: clamp(40px, 4.3vw, 60px); letter-spacing: -2px; }
.commander-page .boutique-photo { margin: 0; transform: rotate(2deg); box-shadow: 5px 6px 0 var(--jey-ink); }
.commander-page .boutique-photo > img { height: 440px; object-fit: contain; background: #f7f5ef; }
.commander-page .boutique-hero::before,
.commander-page .boutique-hero::after,
.page-product .product-gallery::before { content: none; display: none; }
.commander-page .boutique-collection { background: transparent; }
.commander-page .creation-card { padding: 16px; background: #fffffff5; border-radius: 12px; }
.commander-page .creation-media { height: 390px; border-width: 1px; box-shadow: none; border-color: #d9d5cd; }
.commander-page .creation-media img { width: 100%; height: 100%; object-fit: contain; }
.commander-page .creation-body { padding: 22px 4px 4px; }
.commander-page .creation-body h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.3; }
.commander-page .noel-star { display: none; }

/* La fiche produit commence entièrement sous le menu fixe. */
.page-product .product-page.product-street {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: calc(var(--jey-nav-height) + 32px) 32px 60px;
  background: transparent;
}
.page-product .back-shop { margin-bottom: 22px; padding: 7px 12px; border-radius: 20px; background: #fffffff2; }
.page-product .product-topline { margin-bottom: 24px; flex-wrap: wrap; }
.page-product .product-container.product-main {
  width: 100%;
  max-width: none;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}
.page-product .product-gallery { position: static; top: auto; min-width: 0; }
.page-product .product-figure {
  aspect-ratio: auto;
  display: block;
  margin: 0;
  padding: 12px;
  overflow: hidden;
  border: 1px solid #dedbd4;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 28px #27231e0a;
}
.page-product .product-figure #zoomProduct { width: 100%; background: #f7f5ef; border-radius: 6px; overflow: hidden; }
.page-product .product-gallery .product-figure #mainProductImage {
  display: block;
  width: 100%;
  height: clamp(400px, 44vw, 610px);
  object-fit: contain;
  object-position: center;
  background: #f7f5ef;
}
.page-product .gallery-stamp { display: none; }
.page-product .thumbs {
  display: flex !important;
  flex-wrap: nowrap;
  gap: 10px;
  margin-top: 14px;
  padding: 3px 0 8px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}
.page-product .photo-thumb {
  flex: 0 0 80px;
  padding: 3px;
  border: 2px solid #dedbd4;
  border-radius: 8px;
  background: #fff;
}
.page-product .photo-thumb[aria-pressed="true"] { border-color: var(--jey-green); background: #e8f4e9; }
.page-product .photo-thumb img { display: block; width: 100%; height: 86px; object-fit: cover; border-radius: 4px; }
.page-product .product-details {
  min-width: 0;
  padding: 28px;
  background: #fffffff5;
  color: var(--jey-ink);
  border: 1px solid #e4e0d6;
  border-radius: 14px;
  box-shadow: none;
}
.page-product .product-title {
  font-family: 'Poppins', sans-serif !important;
  font-size: clamp(28px, 3vw, 42px) !important;
  font-weight: 800 !important;
  line-height: 1.16 !important;
  letter-spacing: -1.5px;
  overflow-wrap: normal;
  margin: 12px 0 18px;
}
.page-product .product-short { font-size: 14px; line-height: 1.8; }
.page-product .product-price { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 24px 0; }
.page-product .product-price span { font-size: 30px; line-height: 1.2; }
.page-product .product-price small { color: #655f56; }
.page-product .pickup-box {
  padding: 16px 18px;
  background: #edf6ed;
  color: #214d27;
  border: 1px solid #cadfcb;
  border-radius: 10px;
}
.page-product .pickup-box strong { color: #214d27; font-size: 13px; }
.page-product .pickup-box p { color: #354e37; font-size: 12px; line-height: 1.8; margin-top: 6px; }
.page-product .composition-panel { margin: 22px 0; padding: 20px; background: #faf4e9; }
.page-product .composition-panel h2 { font-size: 16px; margin-bottom: 9px; }
.page-product .product-personalisation { padding-top: 20px; border-color: #dedbd4; }
.page-product .product-personalisation input,
.page-product .product-personalisation textarea { font-size: 16px; color: var(--jey-ink); }
.page-product .product-personalisation textarea { min-height: 90px; resize: vertical; }
.page-product .product-add { min-height: 52px; font-size: 14px; }
.page-product .product-bottom { margin-top: 64px; transform: none; border: 0; border-radius: 12px; background: #e8f4e9; }
.page-product .product-bottom > span { display: none; }
.page-product #photoDialog { max-width: min(1100px, 94vw); max-height: 92dvh; padding: 16px; background: #fff; border-radius: 12px; }
.page-product #photoDialog img { width: 100%; height: auto; max-height: 78dvh; object-fit: contain; }
.page-product #closePhoto { position: sticky; top: 0; display: block; margin-left: auto; padding: 10px 16px; background: #fff; border: 1px solid #dedbd4; border-radius: 22px; color: var(--jey-ink); }

@media (max-width: 950px) {
  .navbar .nav-links a { font-size: 11px; padding: 10px 8px; }
  .page-product .product-container.product-main { gap: 22px; }
  .page-product .product-details { padding: 22px; }
  .commander-page .boutique-hero { gap: 24px; }
}
@media (max-width: 768px) {
  :root { --jey-nav-height: 88px; }
  .navbar .container { padding: 6px 20px; }
  .navbar .jey-logo { width: 118px; height: 72px; }
  .navbar .nav-links { top: var(--jey-nav-height); height: calc(100dvh - var(--jey-nav-height)); gap: 10px; }
  .navbar .nav-links a { font-size: 14px; padding: 14px 18px; }
  .navbar .nav-toggle { border-radius: 50%; }
  .home-shop-drop { min-height: 660px; padding: calc(var(--jey-nav-height) + 110px) 20px 110px; }
  .home-shop-drop .home-copy { padding: 20px 12px; background: #ffffffed; border-radius: 16px; }
  .home-shop-drop h1 { font-size: clamp(44px, 11vw, 68px); letter-spacing: -2px; }
  .home-shop-drop .boutique-button { font-size: 12px; padding: 16px 18px; }
  .commander-page .boutique { background-size: 100% 800px; }
  .commander-page .boutique-hero { grid-template-columns: minmax(0, 1fr); padding: 28px 20px 44px; gap: 28px; }
  .commander-page .boutique-copy { padding: 24px 18px; }
  .commander-page .boutique-copy h1 { font-size: clamp(38px, 9vw, 54px); }
  .commander-page .boutique-photo { margin: 0 6px; }
  .commander-page .boutique-photo > img { height: 380px; }
  .commander-page .boutique-sticker { right: 8px; bottom: 20px; width: 92px; height: 92px; font-size: 13px; }
  .commander-page .boutique-collection { padding: 42px 18px; }
  .commander-page .creation-card { padding: 12px; }
  .commander-page .creation-media { height: 350px; }
  .page-product .product-page.product-street { padding: calc(var(--jey-nav-height) + 24px) 18px 32px; }
  .page-product .product-topline { font-size: 11px; gap: 10px; }
  .page-product .product-container.product-main { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .page-product .product-gallery .product-figure #mainProductImage { height: clamp(340px, 112vw, 540px); }
  .page-product .product-details { padding: 22px 18px; }
  .page-product .product-title { font-size: clamp(28px, 7vw, 38px) !important; letter-spacing: -1px; }
  .page-product .product-short { font-size: 13px; }
  .page-product .photo-thumb { flex-basis: 72px; }
  .page-product .photo-thumb img { height: 76px; }
  .page-product .product-bottom { margin-top: 36px; padding: 36px 18px; }
}
