/* ===== PRODUCTS PAGE SPECIFIC STYLES ===== */

/* Page Hero */
.page-hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  background: url("../img/produits/a2.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 0 2rem;
  margin-top: 70px; /* Adjust based on navbar height */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.page-hero .hero-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-hero .hero-subtitle {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 0 auto;
}

/* Products Navigation */
.products-categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
  padding: 1rem 0;
}

.product-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem;
  background: white;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--dark);
  transition: all 0.3s ease;
  min-width: 140px;
  border: 2px solid transparent;
  box-shadow: var(--shadow);
}

.product-category:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.product-category.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.product-category i {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.product-category span {
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
}

/* Product Sections */
.product-section {
  padding: 5rem 0;
  position: relative;
}

.product-section.bg-light {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.product-header {
  text-align: center;
  margin-bottom: 3rem;
}

.product-title {
  font-size: 2.5rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.product-subtitle {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

.product-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.product-image-gallery {
  position: sticky;
  top: 100px;
}

.main-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-lg);
}

.main-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.main-image:hover img {
  transform: scale(1.02);
}

.thumbnails {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.thumbnails img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.thumbnails img:hover,
.thumbnails img.active {
  border-color: var(--accent);
  transform: scale(1.05);
}

/* Product Details */
.product-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.product-specs h3,
.product-description h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.specs-list {
  list-style: none;
  padding: 0;
}

.specs-list li {
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
}

.specs-list li:before {
  content: "•";
  color: var(--accent);
  position: absolute;
  left: 0;
  font-size: 1.2rem;
}

.specs-list ul {
  list-style: none;
  margin-top: 0.5rem;
  padding-left: 1rem;
}

.specs-list ul li:before {
  content: "◦";
}

.technical-drawings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.drawing {
  text-align: center;
}

.drawing img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.drawing p {
  margin-top: 0.5rem;
  font-style: italic;
  color: var(--gray);
}

/* Products Grid for Vibrés */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.product-item {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.product-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.product-item h4 {
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.product-item p {
  font-size: 0.9rem;
  color: var(--gray);
}

/* Equipment Grid */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.equipment-item {
  text-align: center;
}

.equipment-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

/* Process Section */
.process-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

/* Process Timeline */
.process-timeline {
  max-width: 1000px;
  margin: 0 auto;
}

.process-phase {
  margin-bottom: 4rem;
  position: relative;
}

.process-phase:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.phase-title {
  font-size: 2rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
  padding-left: 2rem;
}

.phase-subtitle {
  font-size: 1.1rem;
  color: var(--gray);
  padding-left: 2rem;
  margin-bottom: 2rem;
}

.process-steps {
  padding-left: 2rem;
}

.process-step {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  position: relative;
}

.process-step:before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 3rem;
  width: 1.5rem;
  height: 4px;
  background: var(--accent);
}

.step-number {
  position: absolute;
  left: -3.5rem;
  top: 2rem;
  width: 3rem;
  height: 3rem;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(11, 96, 169, 0.3);
}

.step-content h4 {
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 1rem;
}

.step-content p {
  margin-bottom: 1.5rem;
  color: #444;
}

.step-content img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
  margin: 0 auto;
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    var(--accent-dark) 100%
  );
  color: white;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

.btn-large {
  padding: 1.2rem 3rem;
  font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  .product-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .product-image-gallery {
    position: static;
  }

  .technical-drawings {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-hero {
    height: 50vh;
    min-height: 300px;
  }

  .page-hero .hero-title {
    font-size: 2.2rem;
  }

  .page-hero .hero-subtitle {
    font-size: 1.1rem;
  }

  .product-title {
    font-size: 2rem;
  }

  .products-categories {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 1rem;
  }

  .product-category {
    min-width: 120px;
    padding: 1rem 0.8rem;
  }

  .process-step {
    padding: 1.5rem;
  }

  .step-number {
    left: -2.5rem;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .equipment-grid {
    grid-template-columns: 1fr;
  }

  .phase-title {
    font-size: 1.6rem;
  }

  .process-step:before {
    display: none;
  }

  .step-number {
    position: relative;
    left: 0;
    top: 0;
    margin-bottom: 1rem;
    display: inline-block;
  }

  .process-steps {
    padding-left: 0;
  }

  .process-phase:before {
    display: none;
  }
}
