/* ========= GLOBAL ========= */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #1f1f1f;
    margin: 0;
    padding: 0;
    background-color: #fff;
  }
  
  a {
    text-decoration: none;
    color: inherit;
  }
  
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* ========= NAVBAR ========= */
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1f1f1f;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  
  .navbar .logo img {
    height: 50px;
    margin-left: 30px;
  }
  
  .nav-links {
    display: flex;
    gap: 1.5rem;
    margin-right: 15px;
  }
  
  .nav-links li a {
    color: #fff;
    font-weight: 500;
    position: relative;
  }
  
  .nav-links li a:hover,
  .nav-links li a.active {
    color: #52a167;
  }
  
  .burger {
    display: none;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
  }
  
  /* ========= SECTION PRESTATIONS ========= */
  .prestations {
    padding: 4rem 2rem;
    text-align: center;
  }
  
  .prestations h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #222;
  }
  
  .prestations .intro {
    color: #666;
    margin-bottom: 3rem;
    font-size: 1.1rem;
  }
  
  .prestation-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    padding: 0rem 3rem; /* ✅ Plus doux */
  }
  
  @media (max-width: 768px) {
    .prestation-grid {
      padding: 0 1rem; /* ✅ Parfaitement centré sur mobile */
    }
  }
  
  .prestation-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 0;
    display: flex;
    flex-direction: column;
  }
  
  .prestation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  }
  
  .prestation-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    border-radius: 0;
    margin: 0;
  }
  
  .prestation-card h3,
  .prestation-card p {
    padding: 0 1.2rem;
  }
  
  .prestation-card h3 {
    color: #52a167;
    font-size: 1.3rem;
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
  }
  
  .prestation-card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
  }
  
  
/* ======= FRISE 3 ÉTAPES STYLISÉE ======= */
.method-frise {
    padding: 4rem 2rem;
    text-align: center;
}

.method-frise h2 {
    font-size: 2.2rem;
    color: #1f1f1f;
    margin-bottom: 3rem;
}

.progress-container {
    width: 100%;
    max-width: 900px;
    margin: 4rem auto;
    text-align: center;
  }
  
  .progress-steps {
    counter-reset: step;
    display: flex;
    justify-content: space-between;
    padding: 0;
    position: relative;
    gap: 5rem;
  }
  
  .progress-steps li {
    list-style: none;
    flex: 1;
    position: relative;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
  }
  
  .progress-steps li:before {
    content: counter(step);
    counter-increment: step;
    width: 60px;
    height: 60px;
    line-height: 58px;
    display: block;
    margin: 0 auto 0.5rem;
    border: 3px solid #999;
    border-radius: 50%;
    background-color: #fff;
    color: #999;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  }
  
  .progress-steps li:after {
    content: '';
    position: absolute;
    width: 20rem;
    height: 3px;
    background-color: #999;
    top: 33.5px;
    left: -80%;
    z-index: -1;
    transition: background-color 0.3s ease;
  }
  
  .progress-steps li:first-child:after {
    content: none;
  }
  
  .progress-steps li.active {
    color: #52a167;
  }
  
  .progress-steps li.active:before {
    border-color: #52a167;
    color: #52a167;
    background-color: #e6f9f0;
    box-shadow: 0 0 0 6px rgba(82, 161, 103, 0.2), 0 6px 15px rgba(0,0,0,0.1);
    transform: scale(1.05);
  }
  
  .progress-steps li:hover:before {
    box-shadow: 0 0 0 6px rgba(82, 161, 103, 0.15), 0 4px 12px rgba(0,0,0,0.08);
  }
  
  .progress-steps li.active + li:after {
    background-color: #52a167;
  }
  
  /* Texte sous les pastilles */
  .step-label {
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
    margin-top: 2rem;
    color: #222;
  }
  
  .step-description {
    font-size: 0.85rem;
    color: #555;
    margin: 0 auto;
    max-width: 200px;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .progress-steps {
      flex-direction: column;
      gap: 2rem;
    }
  
    .progress-steps li:after {
      display: none;
    }
  
    .step-description {
      max-width: 100%;
    }
  }

/* ========= GALERIE PRESTATIONS ========= */
.galerie-prestations {
  padding: 5rem 2rem;
  background-color: #f7fdf9;
  text-align: center;
}

.galerie-prestations h2 {
  font-size: 2.2rem;
  color: #1f1f1f;
  margin-bottom: 1rem;
}

.galerie-prestations .galerie-intro {
  color: #555;
  font-size: 1.05rem;
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

/* === Grille des images === */
.galerie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.galerie-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  background-color: #fff;
}

.galerie-item:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

/* ✅ Images réduites */
.galerie-item img {
  width: 100%;
  height: 220px; /* Réduit pour un rendu plus compact */
  object-fit: cover;
  display: block;
  transition: opacity 0.4s ease;
}

/* ✅ Effet overlay (texte au survol) */
.galerie-overlay {
  position: absolute;
  inset: 0;
  background: rgba(31, 31, 31, 0.7);
  color: white;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: opacity 0.4s ease;
  padding: 1rem;
}

.galerie-item:hover .galerie-overlay {
  opacity: 1;
}

.galerie-overlay h3 {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
  color: #52a167;
}

.galerie-overlay p {
  font-size: 0.95rem;
  color: #e8f5ed;
  line-height: 1.4;
  max-width: 85%;
  margin: 0 auto;
}

/* ✅ Responsive */
@media (max-width: 1024px) {
  .galerie-item img {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .galerie-prestations h2 {
    font-size: 1.8rem;
  }

  .galerie-prestations .galerie-intro {
    font-size: 0.95rem;
  }

  .galerie-item img {
    height: 180px;
  }

  .galerie-overlay h3 {
    font-size: 1.1rem;
  }

  .galerie-overlay p {
    font-size: 0.9rem;
  }
}

/* ========= ANIMATION AUTOMATIQUE SUR MOBILE ========= */
/* ✅ Effet automatique de survol (mobile uniquement) */
@media (max-width: 768px) {
  .galerie-item.auto-overlay .galerie-overlay {
    opacity: 1;
  }
}



/* AVANT APRES */

  .avant-apres {
    background-color: #f7fdf9;
    padding: 4rem 2rem;
  }
  
  .avant-apres .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3rem;
  }
  
  .avant-apres .texte {
    flex: 1;
    min-width: 280px;
    text-align: right;
  }
  
  .avant-apres .texte h2 {
    font-size: 2rem;
    color: #1f1f1f;
    margin-bottom: 1rem;
  }
  
  .avant-apres .texte p {
    color: #444;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
  }
  
  .images-comparaison {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .image-block {
    position: relative;
    width: 250px;
    max-width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .image-block span {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #52a167;
    color: white;
    font-size: 0.85rem;
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    font-weight: bold;
    z-index: 2;
  }
  
  .image-block img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .avant-apres .container {
      flex-direction: column;
      text-align: center;
    }
  
    .avant-apres .texte {
      text-align: center; /* 🔧 Ajout pour corriger ton problème */
    }
  
    .images-comparaison {
      justify-content: center;
    }
  }
  
  /* ======= SECTION TÉMOIGNAGES CLIENTS ======= */
.testimonials {
  padding: 4rem 2rem;
  background-color: #f9f9f9;
  text-align: center;
}

.testimonials h2 {
  font-size: 2.2rem;
  color: #1f1f1f;
  margin-bottom: 3rem;
}

.testimonial-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.testimonial-card {
  background: #ffffff;
  border: 1px solid #dceee2;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.testimonial-text {
  font-style: italic;
  color: #555;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.testimonial-author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #52a167;
}

.testimonial-author span {
  font-weight: bold;
  color: #333;
}
  
  /* ========= SECTION CTA DEVIS ========= */
  .cta-devis {
    background: #1f1f1f;
    color: #fff;
    padding: 3rem 2rem;
    text-align: center;
  }
  
  .cta-devis h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .cta-devis p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #ccc;
  }
  
  .cta-devis a {
    background-color: #52a167;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.3s ease;
  }
  
  .cta-devis a:hover {
    background-color: #3f8954;
  }
  
  /* ========= FOOTER ========= */
  /* ========= FOOTER ========= */
  footer {
    background-color: #121212;
    color: #aaa;
    padding: 2rem;
    text-align: center;
  }
  
  .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .footer-content .socials img {
    height: 24px;
    margin: 0 10px;
    transition: transform 0.3s;
  }
  
  .footer-content .socials img:hover {
    transform: scale(1.1);
  }
  
  .footer-content a {
    color: #52a167;
    font-weight: 500;
    font-size: 0.9rem;
  }

  .footer-links {
    margin: 1rem 0;
    font-size: 0.95rem;
    color: #aaa;
  }
  
  .footer-links a {
    color: #aaa;
    transition: color 0.3s;
  }
  
  .footer-links a:hover {
    color: #52a167;
  }
  
  .white-icon {
    filter: brightness(0) invert(1); /* Force les icônes SVG en blanc */
  }

    /* ========= RESPONSIVE ========= */
    @media screen and (max-width: 768px) {
      .nav-links {
        display: none;
        flex-direction: column;
        background-color: #1f1f1f;
        position: absolute;
        top: 70px;
        right: 20px;
        width: 200px;
        border: 1px solid #444;
        padding: 1rem;
      }
    
      .nav-links.active {
        display: flex;
      }
    
      .burger {
        display: block;
      }
    }