/* ============================================
   CSS COMMUN - PAGES DE SERVICES
   Styles partagés entre assainissement.html,
   serrurerie.html et plomberie.html
   ============================================ */

/* Map */
#map-asfp {
  width: 100%;
  height: 450px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border: 1px solid #ccc;
}

/* Intro Grid */
.intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.intro-content h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--dark-navy);
  margin-bottom: 25px;
  line-height: 1.3;
}

.intro-content p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-gray);
  margin-bottom: 20px;
}

.intro-image {
  height: 500px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.intro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
}

.service-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: var(--light-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 25px;
}

.service-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark-navy);
  margin-bottom: 15px;
}

.service-desc {
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 15px;
}

.service-list {
  list-style: none;
  padding: 0;
}

.service-list li {
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
  color: var(--text-dark);
  font-size: 15px;
}

.service-list li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-blue);
  font-weight: bold;
}

/* CTA Box */
.cta-box {
  background: var(--dark-navy);
  border-radius: 20px;
  padding: 60px;
  text-align: center;
  color: white;
}

.cta-box h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 20px;
}

.cta-box p {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.9;
}

/* Process Grid */
.process-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 60px;
}

.process-step {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.process-number {
  width: 60px;
  height: 60px;
  background: var(--primary-blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 20px;
}

.process-step h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark-navy);
  margin-bottom: 15px;
}

.process-step p {
  color: var(--text-gray);
  line-height: 1.7;
}

.process-step ul {
  list-style: none;
  padding: 0;
  margin-top: 15px;
}

.process-step ul li {
  padding: 6px 0;
  padding-left: 25px;
  position: relative;
  color: var(--text-gray);
}

.process-step ul li:before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary-blue);
  font-size: 20px;
}

/* Interventions Section */
.interventions-section {
  background: white;
  padding: 100px 0;
}

.interventions-title {
  font-size: 42px;
  font-weight: 800;
  color: var(--dark-navy);
  margin-bottom: 20px;
  text-align: center;
}

.interventions-subtitle {
  font-size: 20px;
  color: var(--text-gray);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 60px;
  line-height: 1.7;
}

.interventions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.intervention-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
  border: 2px solid #f1f5f9;
}

.intervention-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-blue);
}

.intervention-image-container {
  height: 300px;
  overflow: hidden;
  position: relative;
}

.intervention-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.intervention-card:hover .intervention-image-container img {
  transform: scale(1.05);
}

.intervention-content {
  padding: 30px;
}

.intervention-location {
  display: inline-block;
  background: var(--light-bg);
  color: var(--primary-blue);
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 15px;
}

.intervention-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark-navy);
  margin-bottom: 15px;
  line-height: 1.4;
}

.intervention-desc {
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 15px;
}

.intervention-details {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
}

.intervention-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-gray);
}

.intervention-detail-icon {
  color: var(--primary-blue);
  font-size: 16px;
}

/* Other Services Section */
.other-services-section {
  background: white;
  padding: 100px 0;
}

.other-services-container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.other-services-title {
  font-size: 42px;
  font-weight: 800;
  color: var(--dark-navy);
  margin-bottom: 20px;
}

.other-services-subtitle {
  font-size: 20px;
  color: var(--text-gray);
  margin-bottom: 60px;
  line-height: 1.7;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.other-services-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.other-service-card-with-image {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
  border: 2px solid #f1f5f9;
  text-align: center;
}

.other-service-card-with-image:hover {
  border-color: var(--primary-blue);
  box-shadow: 0 10px 40px rgba(59, 91, 168, 0.1);
  transform: translateY(-5px);
}

.other-service-image-container {
  height: 250px;
  overflow: hidden;
  position: relative;
}

.other-service-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.other-service-card-with-image:hover .other-service-image-container img {
  transform: scale(1.05);
}

.other-service-content-centered {
  padding: 40px 30px;
}

.other-service-content-centered h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--dark-navy);
  margin-bottom: 20px;
}

.other-service-content-centered p {
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 25px;
}

.btn-discover {
  background: var(--primary-blue);
  color: white;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  display: inline-block;
  transition: all 0.3s;
}

.btn-discover:hover {
  background: var(--secondary-blue);
  transform: translateY(-2px);
}

/* FAQ Accordion */
.faq-grid {
  max-width: 900px;
  margin: 60px auto 0;
}

.faq-item {
  background: white;
  border-radius: 15px;
  margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: all 0.3s;
}

.faq-question-btn {
  width: 100%;
  padding: 25px 30px;
  background: none;
  border: none;
  text-align: left;
  font-size: 20px;
  font-weight: 700;
  color: var(--dark-navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s;
}

.faq-question-btn:hover {
  color: var(--primary-blue);
}

.faq-icon {
  font-size: 24px;
  transition: transform 0.3s;
  color: var(--primary-blue);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-content {
  padding: 0 30px 25px;
  color: var(--text-gray);
  line-height: 1.8;
  font-size: 16px;
}

/* Responsive spécifique aux pages de services */
@media (max-width: 991px) {
  .services-grid,
  .process-grid,
  .interventions-grid {
    grid-template-columns: 1fr;
  }

  .intro-grid {
    grid-template-columns: 1fr;
  }

  .intro-image {
    height: 400px;
  }

  .other-services-container {
    padding: 0;
  }

  .other-services-cards {
    grid-template-columns: 1fr;
  }

  .other-service-image-container {
    height: 220px;
  }

  .intervention-image-container {
    height: 250px;
  }
}

@media (max-width: 767px) {
  .section-title,
  .interventions-title,
  .other-services-title {
    font-size: 32px;
  }

  .interventions-subtitle,
  .other-services-subtitle {
    font-size: 18px;
  }

  .other-service-image-container {
    height: 200px;
  }

  .intervention-image-container {
    height: 220px;
  }

  .faq-question-btn {
    padding: 20px;
    font-size: 16px;
  }

  .faq-answer-content {
    padding: 0 20px 20px;
    font-size: 15px;
  }

  .cta-box {
    padding: 30px;
  }

  .cta-box h2 {
    font-size: 1.5rem;
  }

  .interventions-section a {
    font-size: 13px;
  }

  .interventions-subtitle {
    font-size: 1rem;
  }

  .intervention-card {
    padding: 0;
  }

  .intervention-content {
    padding-top: 30px;
  }
}
