
/* ========== 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 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;
}

/* 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-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.lang-dots {
  display: flex;
  gap: 4px;
}

.lang-dot {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 3px 6px;
  border-radius: 4px;
}

.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) {
  .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); }
}
