/* ============================================================
   ACCÈS ÉLÉVATION — catalogue.css
   Styles spécifiques à la page catalogue produit
   Réutilise les variables de styles.css
   ============================================================ */

/* ===== CATALOGUE HERO (compact) ===== */
.catalogue-hero {
  position: relative;
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: clamp(7rem, 12vw, 9rem) 0 clamp(3rem, 5vw, 4.5rem);
  overflow: hidden;
  text-align: center;
}
.catalogue-hero::before {
  content: '';
  position: absolute;
  top: -30%; right: -15%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(242,116,5,0.10) 0%, transparent 65%);
  pointer-events: none;
}
.catalogue-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.025'/%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
  z-index: 1;
}
.catalogue-hero .container {
  position: relative;
  z-index: 2;
}
.catalogue-hero h1 {
  color: var(--white);
  margin-bottom: 12px;
  font-size: clamp(2rem, 5vw, 3.4rem);
}
.catalogue-hero h1 span {
  color: var(--orange);
}
.catalogue-hero p {
  color: rgba(255, 255, 255, 0.62);
  max-width: 560px;
  margin: 0 auto 24px;
}
.catalogue-hero-count {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 100px;
  padding: 8px 22px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-weight: 500;
}
.catalogue-hero-count strong {
  color: var(--orange);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
}

/* ===== CATALOGUE FILTERS (sticky) ===== */
.catalogue-filters {
  position: sticky;
  top: 72px;
  z-index: 100;
  background: rgba(244, 245, 247, 0.88);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
  transition: box-shadow 0.3s var(--ease-smooth);
}
.catalogue-filters.is-stuck {
  box-shadow: 0 2px 16px rgba(27, 54, 93, 0.07);
}
.catalogue-filters .container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.catalogue-filter-label {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  margin-right: 4px;
}
.catalogue-filter {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 7px 18px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.25s var(--ease-smooth);
}
.catalogue-filter:hover {
  background: var(--gray-light);
  color: var(--navy);
  border-color: var(--gray);
}
.catalogue-filter.active {
  background: var(--orange);
  border-color: var(--orange);
  color: white;
  box-shadow: 0 2px 12px rgba(242, 116, 5, 0.30);
}
.catalogue-filter-count {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.80rem;
  font-weight: 500;
  white-space: nowrap;
}
.catalogue-filter-count strong {
  color: var(--navy);
  font-weight: 700;
}

/* ===== CATALOGUE GRID ===== */
.catalogue-section {
  background: var(--gray-light);
  padding: clamp(3rem, 5vw, 5rem) 0 clamp(4rem, 7vw, 7rem);
  min-height: 60vh;
}
.catalogue-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ===== PRODUCT CARD ===== */
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.4s var(--ease-out);
  position: relative;
  opacity: 1;
  transform: translateY(0) scale(1);
}
.product-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(242, 116, 5, 0.10);
}
.product-card[data-animate] {
  opacity: 0;
  transform: translateY(32px) scale(0.98);
  filter: blur(3px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out), filter 0.75s var(--ease-out);
}
.product-card[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Filter animation */
.product-card.filtered-out {
  display: none;
}

/* ===== PRODUCT GALLERY ===== */
.product-gallery {
  position: relative;
}
.product-gallery-main {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f1f3 0%, #fafafa 100%);
  position: relative;
}
.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 0.35s var(--ease-smooth);
  padding: 8px;
}
.product-gallery-main img.is-photo {
  object-fit: cover;
  padding: 0;
}
.product-gallery-thumbs {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  background: var(--gray-light);
  overflow-x: auto;
  scrollbar-width: none;
}
.product-gallery-thumbs::-webkit-scrollbar {
  display: none;
}
.product-gallery-thumb {
  width: 56px;
  height: 42px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s var(--ease-smooth);
  flex-shrink: 0;
  background: var(--white);
}
.product-gallery-thumb:hover {
  border-color: var(--gray);
}
.product-gallery-thumb.active {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange);
}
.product-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.product-gallery-thumb.is-photo img {
  object-fit: cover;
}

/* ===== PRODUCT INFO ===== */
.product-info {
  padding: 20px 22px 24px;
}
.product-badges {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.product-badge-cat {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  display: inline-block;
}
.product-badge-cat--modulaires {
  background: rgba(27, 54, 93, 0.08);
  color: var(--navy);
}
.product-badge-cat--portatives {
  background: rgba(242, 116, 5, 0.08);
  color: var(--orange);
}
.product-badge-cat--passe-seuils {
  background: rgba(0, 74, 141, 0.08);
  color: var(--blue-accent);
}
.product-badge-cat--plateformes {
  background: rgba(27, 54, 93, 0.08);
  color: var(--navy);
}
.product-badge-cat--tapis {
  background: rgba(0, 74, 141, 0.08);
  color: var(--blue-accent);
}
.product-badge-type {
  font-family: var(--font-display);
  font-size: 0.60rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 100px;
  background: var(--gray-light);
  color: var(--text-muted);
}

.product-info h3 {
  color: var(--navy);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  margin-bottom: 6px;
  line-height: 1.25;
}
.product-info .product-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.55;
}

/* ===== PRODUCT SPECS ===== */
.product-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin-bottom: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}
.product-spec {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.80rem;
}
.product-spec-icon {
  color: var(--orange);
  flex-shrink: 0;
  margin-top: 1px;
}
.product-spec-icon .icon {
  width: 14px;
  height: 14px;
}
.product-spec-label {
  color: var(--text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.product-spec-value {
  color: var(--text-main);
  font-weight: 500;
}

/* ===== PRODUCT GARDE-CORPS OPTIONS ===== */
.product-garde-corps {
  margin-bottom: 16px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(27, 54, 93, 0.04) 0%, rgba(242, 116, 5, 0.04) 100%);
  border-radius: var(--radius-sm, 12px);
  border: 1px solid var(--border-subtle);
}
.product-garde-corps-label {
  display: block;
  font-size: 0.70rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.product-garde-corps-options {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.product-garde-corps-tag {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--border);
  letter-spacing: 0.03em;
}

/* ===== PRODUCT CTA ===== */
.product-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--orange);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  transition: all var(--transition);
}
.product-cta:hover {
  gap: 10px;
  color: var(--orange-hover);
}

/* ===== CATALOGUE CTA SECTION ===== */
.catalogue-cta {
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: clamp(4rem, 7vw, 6rem) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.catalogue-cta::before {
  content: '';
  position: absolute;
  top: -40%; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(242,116,5,0.10) 0%, transparent 60%);
  pointer-events: none;
}
.catalogue-cta .container {
  position: relative;
  z-index: 2;
}
.catalogue-cta h2 {
  color: var(--white);
  margin-bottom: 12px;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}
.catalogue-cta p {
  color: rgba(255, 255, 255, 0.62);
  max-width: 520px;
  margin: 0 auto 28px;
}
.catalogue-cta .btn-orange {
  font-size: 1rem;
  padding: 17px 40px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .catalogue-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 900px) {
  .catalogue-filters {
    top: 72px;
  }
  .catalogue-filter-count {
    display: none;
  }
}

@media (max-width: 640px) {
  .catalogue-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .catalogue-filters .container {
    gap: 6px;
  }
  .catalogue-filter {
    padding: 6px 14px;
    font-size: 0.70rem;
  }
  .catalogue-filter-label {
    display: none;
  }
  .product-gallery-main {
    aspect-ratio: 16 / 11;
  }
  .product-specs {
    grid-template-columns: 1fr;
  }
  .catalogue-hero {
    padding: clamp(6rem, 10vw, 8rem) 0 clamp(2rem, 4vw, 3rem);
  }
}

@media (max-width: 420px) {
  .product-gallery-thumb {
    width: 48px;
    height: 36px;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .product-card[data-animate] {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
