/* PRATINIUM preorder v1.0.675 — Fiche fournisseur (/marketplacesupplier)
 * Inspirée des pages « usine » d'Alibaba : en-tête riche, onglets, produits principaux,
 * catalogue, profil de l'entreprise et encart « Contacter le fournisseur » fixe.
 */
.pmp-sp {
  --sp-gold: #a87a2a;
  --sp-gold-dark: #8f6420;
  --sp-gold-soft: #fbf6ea;
  --sp-ink: #0f172a;
  --sp-text: #334155;
  --sp-muted: #64748b;
  --sp-line: #ebe5d8;
  --sp-card: #fff;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--sp-text);
  margin-top: 8px;
}
.pmp-sp *, .pmp-sp *::before, .pmp-sp *::after { box-sizing: border-box; }
.pmp-sp h1, .pmp-sp h2, .pmp-sp h3 { text-transform: none !important; letter-spacing: -.01em; }

/* ───────── boutons ───────── */
.pmp-sp .pmp-sp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 26px; border-radius: 999px;
  font-size: 15px; font-weight: 700; white-space: nowrap;
  text-decoration: none !important; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.pmp-sp .pmp-sp-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.pmp-sp .pmp-sp-btn--gold { background: var(--sp-gold); border: 1.5px solid var(--sp-gold); color: #fff !important; }
.pmp-sp .pmp-sp-btn--gold:hover { background: var(--sp-gold-dark); border-color: var(--sp-gold-dark); transform: translateY(-1px); }
.pmp-sp .pmp-sp-btn--ghost { background: #fff; border: 1.5px solid var(--sp-ink); color: var(--sp-ink) !important; }
.pmp-sp .pmp-sp-btn--ghost:hover { border-color: var(--sp-gold); color: var(--sp-gold-dark) !important; background: var(--sp-gold-soft); }
.pmp-sp .pmp-sp-btn--link { padding: 0 8px; background: transparent; border: 0; color: var(--sp-ink) !important; font-weight: 600; }
.pmp-sp .pmp-sp-btn--link:hover { color: var(--sp-gold-dark) !important; }
.pmp-sp .pmp-sp-btn--block { width: 100%; }

/* ───────── badge Vérifié ───────── */
.pmp-sp .pmp-sp-verified { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 15px; color: var(--sp-ink); }
.pmp-sp .pmp-sp-verified svg { width: 20px; height: 20px; fill: var(--sp-gold); flex: 0 0 auto; }
.pmp-sp .pmp-sp-verified strong { color: var(--sp-gold); font-style: italic; font-weight: 800; font-size: 17px; }
.pmp-sp .pmp-sp-verified span { font-weight: 700; }
.pmp-sp .pmp-sp-verified--small { font-size: 13px; }
.pmp-sp .pmp-sp-verified--small strong { font-size: 15px; }
.pmp-sp .pmp-sp-verified--small span { font-weight: 600; color: var(--sp-muted); }
.pmp-sp .pmp-sp-tick { fill: none !important; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ───────── en-tête ───────── */
.pmp-sp-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 42%);
  gap: 32px;
  padding: 34px 36px 36px;
  border: 1px solid var(--sp-line);
  border-radius: 20px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(168, 122, 42, .10) 0%, rgba(168, 122, 42, 0) 55%),
    linear-gradient(180deg, #fffdf8 0%, #fff 60%);
  box-shadow: 0 12px 34px rgba(15, 23, 42, .06);
  overflow: hidden;
}
.pmp-sp-hero__top { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.pmp-sp-id { min-width: 0; }
.pmp-sp .pmp-sp-name {
  margin: 0 0 10px !important;
  font-size: 34px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  color: var(--sp-ink) !important;
}
.pmp-sp .pmp-sp-meta { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 14px; font-size: 15px; color: var(--sp-muted); }
.pmp-sp .pmp-sp-meta__item + .pmp-sp-meta__item::before { content: "·"; margin: 0 10px; color: #b6ab93; }
.pmp-sp-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; flex-direction: row-reverse; justify-content: flex-end; }

.pmp-sp .pmp-sp-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 26px 0 0;
  padding: 22px 0;
  border-top: 1px solid var(--sp-line);
  border-bottom: 1px solid var(--sp-line);
}
.pmp-sp .pmp-sp-kpi dt { margin: 0 0 8px; font-size: 14px; font-weight: 500; color: var(--sp-text); }
.pmp-sp .pmp-sp-kpi dd { margin: 0; font-size: 30px; font-weight: 800; line-height: 1.1; color: var(--sp-ink); }
.pmp-sp .pmp-sp-kpi dd small { font-size: 15px; font-weight: 600; color: var(--sp-muted); }
.pmp-sp .pmp-sp-kpi__text { font-size: 18px !important; line-height: 1.35 !important; }
.pmp-sp .pmp-sp-dash { color: #94a3b8; font-weight: 600; }

.pmp-sp .pmp-sp-caps { display: grid; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.pmp-sp .pmp-sp-caps li {
  position: relative; margin: 0; padding-left: 32px;
  font-size: 16px; font-weight: 700; color: var(--sp-ink);
}
.pmp-sp .pmp-sp-caps li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 21px; height: 21px;
  background: var(--sp-gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.4 2.1 3.2-.3.9 3.1 2.8 1.6-1.2 3 1.2 3-2.8 1.6-.9 3.1-3.2-.3L12 22l-2.4-2.1-3.2.3-.9-3.1-2.8-1.6 1.2-3-1.2-3 2.8-1.6.9-3.1 3.2.3z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.4 2.1 3.2-.3.9 3.1 2.8 1.6-1.2 3 1.2 3-2.8 1.6-.9 3.1-3.2-.3L12 22l-2.4-2.1-3.2.3-.9-3.1-2.8-1.6 1.2-3-1.2-3 2.8-1.6.9-3.1 3.2.3z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.pmp-sp .pmp-sp-caps li::after {
  content: ""; position: absolute; left: 7px; top: 6px; width: 7px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.pmp-sp .pmp-sp-caps small { font-weight: 500; color: var(--sp-muted); }

.pmp-sp-hero__media {
  position: relative;
  min-height: 340px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #0a2540 0%, #123d63 60%, #a87a2a 170%);
  align-self: stretch;
}
.pmp-sp-hero__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pmp-sp-hero__logo {
  position: absolute; left: 16px; top: 16px;
  display: flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 14px;
  background: rgba(255, 255, 255, .96); box-shadow: 0 8px 22px rgba(0, 0, 0, .22); overflow: hidden;
}
.pmp-sp-hero__logo img { width: 100%; height: 100%; object-fit: contain; padding: 7px; }
.pmp-sp-hero__logo span { font-size: 22px; font-weight: 800; color: #0a2540; letter-spacing: .04em; }
.pmp-sp-hero__media--fallback .pmp-sp-hero__logo { left: 50%; top: 50%; transform: translate(-50%, -50%); width: 120px; height: 120px; border-radius: 26px; }
.pmp-sp-hero__media--fallback .pmp-sp-hero__logo span { font-size: 40px; }

/* ───────── onglets ───────── */
.pmp-sp-tabs {
  position: sticky; top: 10px; z-index: 40;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 22px 0 18px; padding: 0 24px;
  border: 1px solid var(--sp-line); border-radius: 16px; background: rgba(255, 255, 255, .96);
  box-shadow: 0 6px 20px rgba(15, 23, 42, .05);
  backdrop-filter: blur(8px);
}
.pmp-sp-tabs::-webkit-scrollbar { display: none; }
.pmp-sp-tabs a {
  position: relative; flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 20px 16px; font-size: 16px; font-weight: 500;
  color: var(--sp-text) !important; text-decoration: none !important; white-space: nowrap;
}
.pmp-sp-tabs a small { padding: 1px 8px; border-radius: 999px; background: #f3efe5; font-size: 12px; font-weight: 700; color: var(--sp-muted); }
.pmp-sp-tabs a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: transparent; transition: background-color .15s ease; }
.pmp-sp-tabs a:hover { color: var(--sp-ink) !important; }
.pmp-sp-tabs a.is-active { color: var(--sp-ink) !important; font-weight: 700; }
.pmp-sp-tabs a.is-active::after { background: var(--sp-ink); }

/* ───────── mise en page ───────── */
.pmp-sp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.pmp-sp-content { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.pmp-sp-panel {
  scroll-margin-top: 100px;
  padding: 30px 32px 32px;
  border: 1px solid var(--sp-line); border-radius: 20px; background: var(--sp-card);
  box-shadow: 0 10px 30px rgba(15, 23, 42, .05);
}
.pmp-sp-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.pmp-sp .pmp-sp-panel__head h2 { margin: 0 !important; font-size: 24px !important; font-weight: 800 !important; color: var(--sp-ink) !important; }
.pmp-sp-panel__count { font-size: 14px; color: var(--sp-muted); }

/* produits principaux : bande défilante */
.pmp-sp-rail-nav { display: flex; gap: 8px; }
.pmp-sp-rail-nav button {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--sp-line); background: #fff; color: var(--sp-ink);
  font-size: 26px; line-height: 1; cursor: pointer;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .08);
  transition: border-color .15s ease, background-color .15s ease, opacity .15s ease;
}
.pmp-sp-rail-nav button:hover:not(:disabled) { border-color: var(--sp-gold); background: var(--sp-gold-soft); }
.pmp-sp-rail-nav button:disabled { opacity: .35; cursor: default; }
.pmp-sp-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4);
  gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; padding-bottom: 4px;
}
.pmp-sp-rail::-webkit-scrollbar { display: none; }
.pmp-sp-rail .pmp-sp-offer { scroll-snap-align: start; }

/* vignette d'offre (bande + catalogue) */
.pmp-sp-offer { position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; color: var(--sp-text) !important; text-decoration: none !important; }
.pmp-sp-offer__img {
  position: relative; display: block; aspect-ratio: 1 / 1; margin-bottom: 10px;
  border-radius: 14px; overflow: hidden; background: #f4f1ea;
}
.pmp-sp-offer__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.pmp-sp-offer:hover .pmp-sp-offer__img img { transform: scale(1.04); }
.pmp-sp-offer__noimg { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 26px; font-weight: 800; color: #b6ab93; }
.pmp-sp-offer__tag {
  position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px;
  background: rgba(15, 23, 42, .78); color: #fff; font-size: 12px; font-weight: 700;
}
.pmp-sp-offer__cat { font-size: 14px; color: var(--sp-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pmp-sp-offer__title {
  font-size: 15px; line-height: 1.4; color: var(--sp-ink) !important; text-decoration: none !important;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em;
}
.pmp-sp-offer:hover .pmp-sp-offer__title, a.pmp-sp-offer__title:hover { color: var(--sp-gold-dark) !important; }
.pmp-sp-offer__price { margin-top: 2px; font-size: 18px; font-weight: 800; color: var(--sp-ink); }
.pmp-sp-offer__moq { font-size: 14px; color: var(--sp-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* cœur « envies » posé sur la photo */
.pmp-sp-offer__heart { position: absolute; top: 10px; right: 10px; z-index: 2; }
.pmp-sp-offer__heart .pmp-wishlist-toggle {
  display: inline-flex !important; align-items: center; justify-content: center;
  width: 38px !important; height: 38px; min-width: 0 !important; padding: 0 !important; margin: 0 !important;
  border: 0 !important; border-radius: 50% !important;
  background: rgba(255, 255, 255, .94) !important; box-shadow: 0 4px 12px rgba(15, 23, 42, .15) !important;
  font-size: 0 !important; color: #94a3b8 !important; overflow: hidden;
}
.pmp-sp-offer__heart .pmp-wishlist-toggle i.material-icons { font-size: 21px !important; line-height: 1; margin: 0 !important; }
.pmp-sp-offer__heart .pmp-wishlist-toggle:hover, .pmp-sp-offer__heart .pmp-wishlist-toggle.is-active { color: #d0453a !important; }

.pmp-sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 28px 20px; }
.pmp-sp-pages { display: flex; justify-content: center; gap: 6px; margin-top: 28px; }
.pmp-sp-pages a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid var(--sp-line); border-radius: 999px; color: var(--sp-ink) !important; font-weight: 600; text-decoration: none !important;
}
.pmp-sp-pages a.is-current { background: var(--sp-ink); border-color: var(--sp-ink); color: #fff !important; }
.pmp-sp-empty { margin: 0; padding: 30px 20px; border: 1.5px dashed #ddd3bd; border-radius: 14px; background: #fcfaf5; text-align: center; color: var(--sp-muted); }

/* profil de l'entreprise */
.pmp-sp-facts { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; padding: 26px 0; border-top: 1px solid #f1ece2; }
.pmp-sp-facts:first-of-type { border-top: 0; padding-top: 4px; }
.pmp-sp .pmp-sp-facts h3 { margin: 0 !important; font-size: 18px !important; font-weight: 700 !important; color: var(--sp-ink) !important; }
.pmp-sp-facts dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; margin: 0; }
.pmp-sp-facts dt { margin: 0 0 6px; font-size: 14px; font-weight: 500; color: var(--sp-text); }
.pmp-sp-facts dd { margin: 0; font-size: 16px; font-weight: 700; color: var(--sp-ink); line-height: 1.4; }
.pmp-sp-description { font-size: 15px; line-height: 1.7; color: var(--sp-text); }
.pmp-sp-description p:last-child { margin-bottom: 0; }

/* encart contact */
.pmp-sp-aside { position: sticky; top: 92px; }
.pmp-sp-contact {
  display: flex; flex-direction: column; gap: 14px;
  padding: 28px 26px; border: 1px solid var(--sp-line); border-radius: 20px; background: var(--sp-card);
  box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}
.pmp-sp .pmp-sp-contact h2 { margin: 0 0 6px !important; font-size: 24px !important; font-weight: 800 !important; line-height: 1.25 !important; color: var(--sp-ink) !important; }
.pmp-sp-contact__id { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.pmp-sp-contact__logo {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 10px; overflow: hidden;
  background: linear-gradient(135deg, #0a2540 0%, #123d63 70%, #a87a2a 160%);
}
.pmp-sp-contact__logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 6px; }
.pmp-sp-contact__logo span { font-size: 20px; font-weight: 800; color: #fff; letter-spacing: .04em; }
.pmp-sp-contact__name { font-size: 16px; line-height: 1.45; color: var(--sp-text); }
.pmp-sp-contact__note { margin: -4px 0 0; font-size: 12.5px; color: var(--sp-muted); text-align: center; }
.pmp-sp-contact__back {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 6px; padding-top: 18px; border-top: 1px solid var(--sp-line);
  font-size: 15px; color: var(--sp-ink) !important; text-decoration: none !important;
}
.pmp-sp-contact__back svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.pmp-sp-contact__back:hover { color: var(--sp-gold-dark) !important; }

.pmp-sp-mobilebar { display: none; }

/* bas de page (repris de l'ancien gabarit) */
.pmp-sp .pmp-footer-nav { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 1.8rem; padding-top: 1rem; border-top: 1px solid #e5e7eb; }
.pmp-sp .pmp-footer-nav__btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; text-decoration: none !important; border: 1.5px solid #a87a2a; color: #a87a2a !important; background: #fff; transition: all .15s; }
.pmp-sp .pmp-footer-nav__btn:hover { background: #fbf6ea; color: #8f6420 !important; border-color: #8f6420; }

/* ───────── écrans moyens ───────── */
@media (max-width: 1199.98px) {
  .pmp-sp-hero { grid-template-columns: minmax(0, 1fr) minmax(260px, 38%); padding: 28px; gap: 24px; }
  .pmp-sp .pmp-sp-name { font-size: 28px !important; }
  .pmp-sp-layout { grid-template-columns: minmax(0, 1fr) 280px; }
  .pmp-sp-rail { grid-auto-columns: calc((100% - 2 * 20px) / 3); }
}
@media (max-width: 991.98px) {
  .pmp-sp-hero { grid-template-columns: minmax(0, 1fr); }
  .pmp-sp-hero__media { order: -1; min-height: 0; aspect-ratio: 16 / 7; }
  .pmp-sp-layout { grid-template-columns: minmax(0, 1fr); }
  .pmp-sp-aside { display: none; }
  .pmp-sp-facts { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}

/* ───────── mobile ───────── */
@media (max-width: 767.98px) {
  .pmp-sp-hero { padding: 16px; gap: 16px; border-radius: 16px; }
  .pmp-sp-hero__top { flex-direction: column; gap: 14px; }
  .pmp-sp-hero__actions { display: none; } /* remplacées par la barre fixe */
  .pmp-sp .pmp-sp-name { font-size: 24px !important; margin-bottom: 8px !important; }
  .pmp-sp .pmp-sp-meta { font-size: 13.5px; flex-direction: column; gap: 2px; }
  .pmp-sp .pmp-sp-meta__item + .pmp-sp-meta__item::before { content: none; }
  .pmp-sp .pmp-sp-verified { flex-wrap: wrap; font-size: 13.5px; }
  .pmp-sp .pmp-sp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; padding: 16px 0; }
  .pmp-sp .pmp-sp-kpi:last-child { grid-column: 1 / -1; }
  .pmp-sp .pmp-sp-kpi dd { font-size: 24px; }
  .pmp-sp .pmp-sp-kpi__text { font-size: 16px !important; }
  .pmp-sp .pmp-sp-caps li { font-size: 14.5px; }
  .pmp-sp-hero__logo { width: 52px; height: 52px; left: 12px; top: 12px; }
  .pmp-sp-tabs { top: 6px; margin: 14px 0; padding: 0 8px; border-radius: 14px; }
  .pmp-sp-tabs a { padding: 15px 10px; font-size: 14.5px; }
  .pmp-sp-tabs a::after { left: 10px; right: 10px; }
  .pmp-sp-panel { padding: 20px 16px; border-radius: 16px; scroll-margin-top: 80px; }
  .pmp-sp .pmp-sp-panel__head h2 { font-size: 20px !important; }
  .pmp-sp-rail { grid-auto-columns: 62%; gap: 14px; }
  .pmp-sp-rail-nav { display: none; }
  .pmp-sp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .pmp-sp-offer__price { font-size: 16px; }
  .pmp-sp-offer__title { font-size: 14px; }
  .pmp-sp-offer__cat, .pmp-sp-offer__moq { font-size: 12.5px; }
  .pmp-sp-offer__moq { white-space: normal; }
  .pmp-sp-offer__heart .pmp-wishlist-toggle { width: 34px !important; height: 34px; }
  .pmp-sp-facts dl { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .pmp-sp-facts { padding: 20px 0; }
  .pmp-sp { padding-bottom: 76px; }
  .pmp-sp-mobilebar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); border-top: 1px solid var(--sp-line);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, .08); backdrop-filter: blur(8px);
  }
}
