
/* ========== Catalogue unifié v2 (interne) ========== */

.catalogue-v2-banner {
  background: linear-gradient(90deg, #1a1a2e, #2d3a5c);
  color: #e2e8f0;
  text-align: center;
  font-size: 0.8rem;
  padding: 10px 16px;
  line-height: 1.45;
}
.catalogue-v2-banner strong { color: #7dd3fc; }
.catalogue-v2-banner a {
  color: #93c5fd;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.catalogue-v2-future-url {
  color: #94a3b8;
  font-size: 0.75rem;
}
.catalogue-v2-future-url code {
  font-size: 0.72rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

.products-v2-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.products-v2-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.products-v2-visual {
  aspect-ratio: 4 / 5;
  max-height: none;
  background: linear-gradient(165deg, #eef4f9 0%, #f8fafc 45%, #fff 100%);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.products-v2-visual.has-packshot {
  background: transparent;
}

.products-v2-visual.is-placeholder .products-v2-visual-media {
  padding: 20px 14px 14px;
}

.products-v2-visual .emoji-fallback {
  font-size: 3.25rem;
  line-height: 1;
  opacity: 0.88;
  filter: drop-shadow(0 4px 10px rgba(12, 61, 92, 0.08));
}

/* Placeholder Gen Z soft — verre dépoli (sans emoji de fond) */
.products-v2-card.is-ph-card .products-v2-visual {
  aspect-ratio: 4 / 5;
  max-height: none;
}

.products-v2-card.is-ph-card {
  background: transparent;
  border: none;
  box-shadow: none;
}

.products-v2-card.is-ph-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.products-v2-card.is-ph-card .products-v2-visual {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--card);
}

.products-v2-card.is-ph-card:hover .products-v2-visual {
  box-shadow: var(--shadow-lg);
  border-color: rgba(26, 107, 156, 0.25);
}

.products-v2-visual.is-genz-ph {
  padding: 0;
  background: transparent;
}

.v2-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 14px 14px 58px;
  overflow: hidden;
}

.v2-ph::before {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  top: -40px;
  right: -40px;
  background: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.v2-ph-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.v2-ph-sector {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: var(--blue-deep);
}

.v2-ph-soon {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.06);
  color: rgba(15, 23, 42, 0.45);
  white-space: nowrap;
}

.v2-ph-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
  padding: 8px 0;
  min-height: 0;
}

.v2-ph-name {
  font-size: clamp(0.88rem, 2.6vw, 1.08rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--blue-deep);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.v2-ph-foot {
  position: relative;
  z-index: 2;
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: center;
  gap: 4px;
  min-height: 38px;
  padding-top: 4px;
  padding-bottom: 2px;
}

.v2-ph--pack {
  background: linear-gradient(180deg, #f3f7fb 0%, #eef4f9 52%, #e2ebf4 100%);
}

.v2-ph-body--pack {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
  padding: 0 0 2px;
}

.v2-ph-pack-media {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px 2px;
}

.v2-ph-pack-media img {
  display: block;
  width: auto;
  height: auto;
  max-width: 88%;
  max-height: 100%;
  object-fit: contain;
}

.v2-ph-name--pack {
  font-size: clamp(0.78rem, 2.4vw, 0.92rem);
  -webkit-line-clamp: 2;
  text-align: center;
  flex-shrink: 0;
  padding: 0 6px;
}

.v2-ph-glass {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 11px 14px 13px;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.v2-ph-glass > img {
  display: block;
  height: 26px;
  width: auto;
  max-width: 78%;
  max-height: none;
  object-fit: contain;
  flex-shrink: 0;
}

.v2-ph-glass--inline {
  position: static;
  margin: 10px -16px -16px;
  padding: 11px 14px 13px;
}

.v2-ph.cat-auto {
  background: linear-gradient(145deg, #dbeafe 0%, #bfdbfe 40%, #60a5fa33 100%);
}
.v2-ph.cat-menage {
  background: linear-gradient(145deg, #dcfce7 0%, #bbf7d0 45%, #4ade8033 100%);
}
.v2-ph.cat-peinture {
  background: linear-gradient(145deg, #ffedd5 0%, #fdba74 50%, #fb923c33 100%);
}
.v2-ph.cat-sanitaire {
  background: linear-gradient(145deg, #cffafe 0%, #67e8f9 45%, #06b6d433 100%);
}
.v2-ph.cat-batiment {
  background: linear-gradient(145deg, #e7e5e4 0%, #d6d3d1 50%, #a8a29e33 100%);
}
.v2-ph.cat-industrie {
  background: linear-gradient(145deg, #e2e8f0 0%, #cbd5e1 50%, #64748b33 100%);
}

.v2-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 3px 7px;
  border-radius: 100px;
  line-height: 1.2;
  border: 1px solid transparent;
  white-space: nowrap;
  flex: 0 0 auto;
}
.v2-chip-retail { background: #dbeafe; color: #1e40af; }
.v2-chip-60s { background: #ccfbf1; color: #0f766e; }
.v2-chip-chem-tools { background: #ffedd5; color: #c2410c; }
.v2-chip-pro { background: #f3e8ff; color: #6b21a8; }
.v2-chip-fds { background: #dcfce7; color: #166534; }
.v2-chip-formats {
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue-dark);
  border-color: var(--border);
}
.v2-chip-format {
  background: rgba(12, 61, 92, 0.92);
  color: #fff;
  font-weight: 800;
}

.products-v2-body {
  padding: 14px 16px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.products-v2-body h3 {
  margin: 0 0 4px;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--blue-dark);
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.products-v2-body .v2-ph-glass {
  position: static;
  margin: 10px -16px 0;
  padding: 11px 14px 13px;
}
.products-v2-meta {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: capitalize;
}

.filter-toolbar-v2 {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  flex-wrap: nowrap;
  width: 100%;
  padding: 2px 0 2px;
  overflow: hidden;
}

.filter-retail-group {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  padding: 2px 0;
}

.filter-toolbar-gap {
  display: none;
}

.filter-chips.filter-sector-group {
  flex: none;
  width: 100%;
  min-width: 0;
  flex-wrap: wrap;
  overflow: visible;
  justify-content: flex-start;
}

.filter-retail-group .chip-retail-standalone {
  font-size: 0.78rem;
  padding: 8px 14px;
  white-space: nowrap;
}

.filter-retail-group .chip-range-60s {
  font-size: 0.78rem;
  padding: 8px 14px;
  white-space: nowrap;
  border-color: #99f6e4;
  color: #0f766e;
}
.filter-retail-group .chip-range-60s:hover {
  border-color: #0f766e;
  color: #115e59;
  box-shadow: 0 6px 16px rgba(15, 118, 110, 0.14);
}
.filter-retail-group .chip-range-60s.active {
  background: linear-gradient(135deg, #14b8a6, #0f766e);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.35);
}
.filter-retail-group .chip-range-60s.active:hover {
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.42);
}

.filter-retail-group .chip-range-chem-tools {
  font-size: 0.78rem;
  padding: 8px 14px;
  white-space: nowrap;
  border-color: #fdba74;
  color: #c2410c;
}
.filter-retail-group .chip-range-chem-tools:hover {
  border-color: #c2410c;
  color: #9a3412;
  box-shadow: 0 6px 16px rgba(194, 65, 12, 0.14);
}
.filter-retail-group .chip-range-chem-tools.active {
  background: linear-gradient(135deg, #fb923c, #c2410c);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(194, 65, 12, 0.35);
}
.filter-retail-group .chip-range-chem-tools.active:hover {
  box-shadow: 0 8px 20px rgba(194, 65, 12, 0.42);
}

@media (max-width: 1024px) {
  .filter-toolbar-v2 {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-toolbar-gap {
    width: 100%;
    height: 1px;
    min-height: 0;
    margin: 10px 0;
  }

  .filter-retail-group {
    width: 100%;
    justify-content: center;
  }

  .filter-retail-group .chip-retail-standalone {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  .filter-retail-group .chip-range-60s,
  .filter-retail-group .chip-range-chem-tools {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    text-align: center;
  }
}

.products-bento.v2-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

@media (max-width: 900px) {
  .products-bento.v2-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
  }
}

@media (max-width: 720px) {
  .products-bento.v2-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .products-v2-visual,
  .products-v2-card.is-ph-card .products-v2-visual {
    aspect-ratio: 3 / 4;
  }

  .v2-ph-name,
  .v2-ph-name--pack {
    font-size: clamp(0.72rem, 3.1vw, 0.86rem);
    -webkit-line-clamp: 3;
  }

  .v2-ph-foot {
    min-height: 34px;
  }

  .v2-chip {
    font-size: 0.52rem;
    padding: 2px 5px;
  }
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(12, 40, 60, 0.45);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }

.product-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 310;
  width: 100%;
  max-width: 100vw;
  max-height: 92vh;
  background: var(--card);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -20px 60px rgba(12, 61, 92, 0.2);
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}
.product-sheet.open { transform: translateY(0); }

.sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 4px;
  background: var(--border);
  margin: 10px auto 0;
  flex-shrink: 0;
}

.sheet-header {
  padding: 16px 20px 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  min-width: 0;
}
.sheet-header > div {
  min-width: 0;
  flex: 1;
}
.sheet-header h2 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.sheet-header .sheet-desc {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text);
  margin: 8px 0 0;
  max-width: 42em;
}
.sheet-header .sub { font-size: 0.82rem; color: var(--muted); margin-top: 6px; }
.sheet-close {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--bg);
  font-size: 1.2rem; cursor: pointer; line-height: 1; color: var(--muted); flex-shrink: 0;
}
.sheet-close:hover { background: var(--blue-light); color: var(--blue-dark); }

.sheet-body {
  padding: 20px;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.variant-picker { margin-bottom: 18px; }
.variant-picker label {
  display: block; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted); margin-bottom: 8px;
}
.variant-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-chip {
  font-family: inherit; font-size: 0.88rem; font-weight: 600;
  padding: 10px 16px; border-radius: 12px;
  border: 2px solid var(--border); background: #fff; cursor: pointer;
}
.variant-chip:hover { border-color: var(--accent); }
.variant-chip.active { border-color: var(--blue); background: var(--blue-light); color: var(--blue-dark); }
.variant-chip-note {
  cursor: default;
  font-size: 0.68rem;
  font-weight: 500;
  padding: 7px 10px;
  border-style: dashed;
  background: #f8fafc;
  color: var(--muted);
  flex: 1 1 100%;
  width: 100%;
  max-width: 100%;
  line-height: 1.35;
  text-align: left;
  box-sizing: border-box;
}
.variant-chip-note:hover { border-color: var(--border); }

.sku-panel {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px; margin-bottom: 16px;
}
.sku-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.sku-row + .sku-row { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); }
.sku-label { font-size: 0.78rem; color: var(--muted); }
.sku-value { font-size: 0.92rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.btn-copy {
  font-family: inherit; font-size: 0.75rem; font-weight: 600;
  padding: 6px 12px; border-radius: 8px;
  border: 1px solid var(--border); background: #fff; cursor: pointer; color: var(--blue);
}
.btn-copy:hover { background: var(--blue-light); }
.btn-copy.copied { color: #166534; border-color: #86efac; background: #f0fdf4; }

details.logistics-v2 {
  margin-bottom: 18px; border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
}
details.logistics-v2 summary {
  padding: 12px 16px; font-size: 0.85rem; font-weight: 600;
  cursor: pointer; list-style: none; background: var(--bg);
}
details.logistics-v2 summary::-webkit-details-marker { display: none; }
details.logistics-v2 summary::after { content: "＋"; float: right; color: var(--muted); }
details.logistics-v2[open] summary::after { content: "−"; }
details.logistics-v2 .inner {
  padding: 12px 16px 16px; font-size: 0.85rem; color: var(--muted);
  border-top: 1px solid var(--border);
}

.fds-block-v2 {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  color: #fff; border-radius: 14px; padding: 16px;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.fds-block-v2 p { margin: 0 0 12px; font-size: 0.78rem; line-height: 1.45; opacity: 0.95; }
.fds-block-v2 .btn-fds-v2 {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  line-height: 1.35;
  text-align: center;
  word-wrap: break-word;
}
.fds-block-v2 .fds-langs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.fds-block-v2 .fds-langs-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  opacity: 0.95;
  margin-right: 2px;
}
.fds-block-v2 .v2-fds-lang {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 6px;
  color: #003d6b;
  background: #fff;
  border: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.btn-fds-v2 {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-size: 0.88rem; font-weight: 700;
  padding: 12px 18px; border-radius: 10px; border: none;
  background: #fff; color: var(--blue-deep); cursor: pointer; text-decoration: none;
}
.btn-fds-v2:hover { background: var(--blue-light); }

.pro-desc-v2 {
  font-size: 0.9rem; line-height: 1.55; color: var(--text); margin-bottom: 18px;
}

@media (max-width: 767px) {
  .sheet-header {
    padding: 14px 16px 10px;
  }

  .sheet-header h2 {
    font-size: 1.05rem;
  }

  .sheet-body {
    padding: 16px;
  }

  .sku-row {
    flex-direction: column;
    align-items: stretch;
  }

  .sku-value {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .variant-chip {
    font-size: 0.82rem;
    padding: 8px 12px;
  }
}

@media (min-width: 768px) {
  .product-sheet {
    left: 50%; right: auto; bottom: auto; top: 50%;
    width: min(520px, calc(100% - 32px)); max-height: 88vh;
    border-radius: 20px;
    transform: translate(-50%, -50%) scale(0.96);
    opacity: 0; pointer-events: none;
  }
  .product-sheet.open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1; pointer-events: auto;
  }
  .sheet-handle { display: none; }
}
