
/* ========== Page Produits — style Gen Z / catalogue moderne ========== */

.products-hero {
  padding: 48px 0 32px;
  position: relative;
  overflow: hidden;
}

.products-hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(26, 107, 156, 0.18), transparent 70%);
  pointer-events: none;
}

.products-hero::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: -40px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(26, 107, 156, 0.1), transparent 70%);
  pointer-events: none;
}

.products-hero .container { position: relative; z-index: 1; }

.products-hero-layout {
  display: grid;
  grid-template-columns: 1fr min(300px, 34%);
  gap: 28px 32px;
  align-items: start;
}

.products-hero-main {
  min-width: 0;
}

.products-hero-aside {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-self: end;
  width: 100%;
  max-width: 300px;
}

.products-hero-water {
  width: 100%;
  max-width: none;
  animation: fadeUp 0.6s 0.1s ease both;
}

.products-hero-sectors {
  width: 100%;
  text-align: center;
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  animation: fadeUp 0.6s 0.18s ease both;
}

.products-hero-water .hero-water-title {
  font-size: 1.05rem;
}

.products-hero-water .hero-water-lead {
  font-size: 0.78rem;
}

.products-hero-water .btn-water {
  font-size: 0.78rem;
  padding: 6px 12px;
}

.products-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--blue-deep);
  margin: 0 0 12px;
  line-height: 1.1;
}

.products-hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 0 24px;
  line-height: 1.6;
}

.products-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue-dark);
  box-shadow: var(--shadow);
}

.hero-stat-chip strong {
  color: var(--blue);
  font-weight: 800;
}

.products-hero-stats {
  align-items: center;
}

/* Pastille nouveautés — fond foncé, texte clair */
.news-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(135deg, var(--blue-deep) 0%, #1a6b9c 55%, #2380b0 100%);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(15, 40, 70, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
  font-family: inherit;
  line-height: 1.2;
}
.news-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(15, 40, 70, 0.35);
  border-color: rgba(255, 255, 255, 0.38);
}
.news-pill:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.news-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55);
  animation: newsPulse 2.2s ease infinite;
  flex-shrink: 0;
}
.news-pill-label { letter-spacing: -0.01em; }
.news-pill-count {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
@keyframes newsPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
  50% { box-shadow: 0 0 0 5px rgba(74, 222, 128, 0); }
}

/* Modale nouveautés */
.news-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.news-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}
.news-modal {
  width: min(100%, 480px);
  max-height: min(88vh, 640px);
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}
.news-modal-backdrop.open .news-modal {
  transform: translateY(0) scale(1);
}
.news-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 14px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(26, 107, 156, 0.06), transparent);
}
.news-modal-head h2 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--blue-deep);
  letter-spacing: -0.02em;
}
.news-modal-head p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.news-modal-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: var(--bg);
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.news-modal-close:hover {
  background: var(--border);
  color: var(--blue-deep);
}
.news-modal-body {
  padding: 12px 16px 8px;
  overflow-y: auto;
  flex: 1;
}
.news-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.news-item:hover {
  border-color: rgba(26, 107, 156, 0.35);
  box-shadow: 0 4px 12px rgba(26, 107, 156, 0.08);
}
.news-item-name {
  flex: 1;
  min-width: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.35;
}
.news-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.news-tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 100px;
  background: rgba(26, 107, 156, 0.1);
  color: var(--blue);
}
.news-tag.pro {
  background: rgba(234, 88, 12, 0.12);
  color: #c2410c;
}
.news-modal-foot {
  padding: 14px 20px 18px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}
.news-modal-foot a {
  color: var(--blue);
  font-weight: 600;
}
.news-empty {
  text-align: center;
  padding: 32px 20px 40px;
}
.news-empty-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  opacity: 0.5;
}
.news-empty h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--blue-deep);
}
.news-empty p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 280px;
  margin-inline: auto;
  line-height: 1.55;
}

/* Toolbar */
.products-toolbar {
  position: sticky;
  top: calc(var(--header-h) + 33px);
  z-index: 50;
  background: rgba(246, 249, 252, 0.9);
  backdrop-filter: blur(12px);
  padding: 16px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.products-toolbar.stuck {
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.toolbar-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.search-wrap {
  position: relative;
}

.search-wrap svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.search-wrap input {
  width: 100%;
  padding: 14px 16px 14px 46px;
  border: 2px solid var(--border);
  border-radius: 16px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--card);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-wrap input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(26, 107, 156, 0.12);
}

.filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.filter-chips::-webkit-scrollbar { display: none; }

.chip {
  flex-shrink: 0;
  border: 2px solid var(--border);
  background: var(--card);
  color: var(--text);
  padding: 8px 18px;
  border-radius: 100px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.chip:hover {
  border-color: var(--blue);
  color: var(--blue-dark);
}

.chip.active {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(26, 107, 156, 0.35);
}

/* Bento grid */
.products-section { padding: 24px 0 88px; }

.products-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.product-card {
  grid-column: span 4;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.25s;
  cursor: default;
}

.product-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 40px rgba(12, 61, 92, 0.12);
  border-color: rgba(26, 107, 156, 0.3);
}

.product-card.featured {
  grid-column: span 6;
}

.product-card.featured:nth-child(1) {
  grid-row: span 1;
}

.product-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--blue-light);
}

.product-card.featured .product-visual {
  aspect-ratio: 16 / 10;
}

.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-visual img {
  transform: scale(1.06);
}

.product-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 61, 92, 0.55) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.product-card:hover .product-visual::after { opacity: 1; }

.product-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  z-index: 2;
}

.badge-cat {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  color: var(--blue-dark);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 10px;
  border-radius: 8px;
}

.badge-fds {
  background: rgba(26, 107, 156, 0.9);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-body {
  padding: 18px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-deep);
  margin: 0 0 6px;
  line-height: 1.3;
}

.product-body p {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 14px;
  line-height: 1.5;
  flex: 1;
}

.product-visual.has-packshot {
  background: #fff;
}

.product-visual.has-packshot img {
  object-fit: contain;
  padding: 14px;
  background: #fff;
}

.product-visual.is-placeholder {
  background: linear-gradient(145deg, #f0f4f8 0%, #e4ecf2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #9aabb8;
  padding: 16px;
  text-align: center;
}

.photo-placeholder svg {
  width: 44px;
  height: 44px;
}

.photo-placeholder span {
  font-size: 0.72rem;
  font-weight: 600;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.product-fds-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  text-decoration: none;
  padding: 4px 8px 4px 4px;
  margin: -4px -8px -4px -4px;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s;
}

.product-fds-link:hover {
  background: var(--blue-light);
  transform: translateY(-1px);
}

.product-fds-link:hover .fds-label {
  color: var(--blue);
}

.product-fds-link:hover .fds-lang {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.fds-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-right: 2px;
  transition: color 0.2s;
}

.fds-lang {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-light);
  border: 1px solid rgba(26, 107, 156, 0.2);
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  pointer-events: none;
}

.product-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}

.product-link:hover {
  color: var(--blue-dark);
  gap: 8px;
}

.products-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.products-empty h3 {
  color: var(--blue-deep);
  margin: 0 0 8px;
}

.products-cta-banner {
  margin-top: 48px;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  color: #fff;
  border-radius: 20px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.products-cta-banner h2 {
  margin: 0 0 8px;
  font-size: 1.4rem;
  font-weight: 800;
}

.products-cta-banner p {
  margin: 0;
  opacity: 0.88;
  font-size: 0.95rem;
}

.products-cta-banner .btn-primary {
  background: #fff;
  color: var(--blue-dark);
  box-shadow: none;
}

.products-cta-banner .btn-primary:hover {
  background: var(--blue-light);
  color: var(--blue-deep);
}

.photo-disclaimer {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 20px;
  font-style: italic;
}

.products-notice {
  max-width: 640px;
  margin: 0 auto 20px;
  padding: 10px 16px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--blue-dark);
  background: rgba(26, 107, 156, 0.08);
  border: 1px solid rgba(26, 107, 156, 0.15);
  border-radius: 10px;
  text-align: center;
}

.products-contact-hint,
.products-empty-contact {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 16px;
}

.products-contact-hint a,
.products-empty-contact a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

.products-contact-hint a:hover,
.products-empty-contact a:hover {
  text-decoration: underline;
}

.products-empty-contact {
  margin-top: 12px;
}

@media (max-width: 900px) {
  .products-hero-layout {
    grid-template-columns: 1fr;
  }

  .products-hero-aside {
    justify-self: stretch;
    max-width: none;
    order: -1;
  }

  .products-hero-water {
    max-width: none;
  }

  .product-card,
  .product-card.featured { grid-column: span 6; }
  .products-cta-banner { grid-template-columns: 1fr; text-align: center; }
}

@media (max-width: 600px) {
  .product-card,
  .product-card.featured { grid-column: span 12; }
  .products-toolbar { top: calc(var(--header-h) + 33px); }
}
