/* Département Métallurgique — design moderne */

.metallurgique-page {
  overflow-x: clip;
}

.met-hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  padding: 140px 0 100px;
}

.met-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.55) 55%,
    rgba(27, 142, 233, 0.18) 100%
  );
}

.met-hero .container {
  position: relative;
  z-index: 2;
}

.met-hero-content {
  max-width: 720px;
  color: var(--white-color);
}

.met-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  font-size: 14px;
}

.met-breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  opacity: 0.5;
}

.met-breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.met-breadcrumb a:hover {
  color: var(--white-color);
}

.met-hero-badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 50px;
  background: rgba(27, 142, 233, 0.18);
  border: 1px solid rgba(27, 142, 233, 0.4);
  color: #8ecfff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.met-hero h1 {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  color: var(--white-color);
  margin-bottom: 20px;
}

.met-hero h1 span {
  color: var(--accent-color);
}

.met-hero-content > p {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 32px;
}

.met-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.met-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white-color);
  font-weight: 600;
  text-decoration: none;
}

.met-btn-ghost:hover {
  color: var(--white-color);
  opacity: 0.85;
}

.met-stats {
  margin-top: -56px;
  position: relative;
  z-index: 5;
  padding-bottom: 80px;
}

.met-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.met-stat-card {
  background: var(--white-color);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--divider-color);
  transition: transform 0.35s, box-shadow 0.35s;
}

.met-stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(27, 142, 233, 0.12);
}

.met-stat-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-color), #0d5fa3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-color);
  font-size: 18px;
}

.met-stat-card h2 {
  font-size: 28px;
  margin-bottom: 6px;
}

.met-stat-card p {
  font-size: 13px;
  line-height: 1.5;
  color: #666;
  margin: 0;
}

.met-intro {
  padding: 40px 0 90px;
}

.met-intro-visual {
  position: relative;
}

.met-intro-image {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12);
}

.met-intro-image img {
  width: 100%;
  display: block;
  transition: transform 0.6s;
}

.met-intro-visual:hover .met-intro-image img {
  transform: scale(1.04);
}

.met-intro-float {
  position: absolute;
  bottom: -20px;
  right: 0;
  background: var(--primary-color);
  color: var(--white-color);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.met-intro-float i {
  font-size: 24px;
  color: var(--accent-color);
}

.met-intro-float strong {
  display: block;
  font-size: 14px;
}

.met-intro-float span {
  font-size: 12px;
  opacity: 0.75;
}

.met-intro-text p {
  line-height: 1.75;
  margin-bottom: 16px;
}

.met-families {
  padding: 90px 0;
}

.met-families-hint {
  margin-top: 10px;
  font-size: 14px;
  color: #888;
}

.met-families-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.met-family-card {
  background: var(--white-color);
  border-radius: 16px;
  padding: 28px 20px;
  border: 1px solid var(--divider-color);
  cursor: pointer;
  transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
  display: flex;
  flex-direction: column;
}

.met-family-card:hover,
.met-family-card.is-active {
  transform: translateY(-8px);
  border-color: rgba(27, 142, 233, 0.4);
  box-shadow: 0 20px 50px rgba(27, 142, 233, 0.12);
}

.met-family-card.is-active {
  background: var(--primary-color);
  color: var(--white-color);
}

.met-family-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(27, 142, 233, 0.1);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  transition: background 0.3s, color 0.3s;
}

.met-family-card.is-active .met-family-icon {
  background: var(--accent-color);
  color: var(--white-color);
}

.met-family-card h3 {
  font-size: 16px;
  margin-bottom: 12px;
}

.met-family-card ul {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  flex: 1;
}

.met-family-card li {
  font-size: 12px;
  line-height: 1.5;
  padding: 3px 0;
  color: #666;
}

.met-family-card.is-active li {
  color: rgba(255, 255, 255, 0.75);
}

.met-family-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-color);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.met-family-card.is-active .met-family-link {
  color: #8ecfff;
}

.met-catalogue {
  padding: 90px 0 100px;
}

.met-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 36px 0 20px;
}

.met-filter-btn {
  border: 1px solid var(--divider-color);
  background: var(--white-color);
  color: var(--primary-color);
  border-radius: 50px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.met-filter-btn:hover,
.met-filter-btn.active {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--white-color);
}

.met-search {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto 40px;
  background: var(--white-color);
  border: 1px solid var(--divider-color);
  border-radius: 50px;
  padding: 12px 20px;
}

.met-search i {
  color: #999;
}

.met-search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  background: transparent;
  min-width: 0;
}

.met-search-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-color);
  white-space: nowrap;
}

.met-product-grid {
  row-gap: 24px;
}

.met-product-card {
  background: var(--white-color);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--divider-color);
  height: 100%;
  transition: transform 0.3s, box-shadow 0.3s;
}

.met-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.met-product-image {
  display: block;
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f0f0f0;
}

.met-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.met-product-card:hover .met-product-image img {
  transform: scale(1.06);
}

.met-product-zoom {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-color);
  font-size: 22px;
  opacity: 0;
  transition: opacity 0.3s;
}

.met-product-card:hover .met-product-zoom {
  opacity: 1;
}

.met-product-body {
  padding: 16px 18px 20px;
}

.met-product-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-color);
  background: rgba(27, 142, 233, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.met-product-body h3 {
  font-size: 15px;
  line-height: 1.4;
  margin: 0;
}

.met-no-results {
  text-align: center;
  padding: 40px;
  color: #888;
}

.met-cta {
  padding: 0 0 100px;
}

.met-cta-inner {
  background: linear-gradient(135deg, #111 0%, #1a2a38 100%);
  border-radius: 24px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  gap: 40px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.met-cta-text h2 {
  color: var(--white-color);
  margin: 12px 0 16px;
}

.met-cta-text p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
  margin: 0;
}

.met-cta-fax {
  margin-top: 16px !important;
  font-size: 14px !important;
}

.met-cta-fax i {
  margin-right: 8px;
  color: var(--accent-color);
}

.met-cta-phones {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.met-phone-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.3s, transform 0.3s;
}

.met-phone-card i {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(27, 142, 233, 0.2);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.met-phone-card:hover {
  background: rgba(27, 142, 233, 0.15);
  transform: scale(1.03);
  color: var(--white-color);
}

@media (max-width: 1199px) {
  .met-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .met-families-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .met-cta-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .met-cta-action {
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .met-hero {
    min-height: auto;
    padding: 120px 0 80px;
  }

  .met-stats {
    margin-top: 0;
    padding-top: 60px;
  }

  .met-stats-grid,
  .met-families-grid {
    grid-template-columns: 1fr;
  }

  .met-filters {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
  }

  .met-filter-btn {
    flex-shrink: 0;
  }

  .met-cta-inner {
    padding: 36px 24px;
  }

  .met-cta-phones {
    grid-template-columns: 1fr;
  }
}
