/* ========= RESET GLOBAL ========= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #1f1f1f;
    background-color: #fff;
    overflow-x: hidden;
  }
  
  a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
  }
  
  ul {
    list-style: none;
  }
  
  /* ========= 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;
  }
  
 /* ========= HERO SECTION AMÉLIORÉE & ANIMÉE ========= */
.hero.improved-hero {
  position: relative;
  background: url('../img/accueil/hero.JPG') center/cover no-repeat;
  height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 2rem;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  animation: slideInDown 1s ease-out;
}

.hero-content p {
  font-size: 1.4rem;
  margin-bottom: 2rem;
  color: #dddddd;
  animation: slideInUp 1.2s ease-out;
}

.cta-button {
  background-color: #52a167;
  color: #fff;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.2s;
  display: inline-block;
}

.cta-button:hover {
  background-color: #3f8954;
  transform: translateY(-2px);
}

/* Pulse animation */
.pulse-button {
  animation: pulse 2s infinite;
}

/* ========= ANIMATIONS ========= */
@keyframes slideInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(82, 161, 103, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(82, 161, 103, 0); }
  100% { box-shadow: 0 0 0 0 rgba(82, 161, 103, 0); }
}


  
  /* ========= FADE-IN ANIMATION ========= */
  .fade-in {
    animation: fadeIn 1s ease-in both;
  }
  @keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
  }
  
  /* ========= SERVICES ========= */
  .services {
    padding: 4rem 2rem;
    text-align: center;
  }
  
  .services h2 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 2rem;
  }
  
  .service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
  }
  
  .service-card {
    background-color: #f4f4f4;
    padding: 2rem 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
  }
  
  .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  }
  
  .service-card i {
    color: #52a167;
    margin-bottom: 0.5rem;
  }
  
  .service-card h3 {
    color: #52a167;
    margin-bottom: 0.5rem;
  }
  
  /* ========= GARANTIE ========= */
  .garantie {
    background-color: #e0efe4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    text-align: center;
  }
  
  .garantie img {
    height: 60px;
  }
  
  /* ========= CONTACT CTA ========= */
  .contact-cta {
    background-color: #1f1f1f;
    color: #fff;
    text-align: center;
    padding: 2rem;
  }
  
  .contact-cta a {
    color: #52a167;
    font-weight: bold;
  }

/* ========= POURQUOI NOUS CHOISIR ========= */
/* ===== SECTION POURQUOI NOUS CHOISIR ===== */
.why-choose-alt {
  padding: 4rem 2rem;
  background-color: #fff;
}

.why-choose-alt h2 {
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 3rem;
  color: #333;
}

.why-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

/* Bloc avec image à droite */
.why-block.image-right {
  flex-direction: row-reverse;
}

.why-img,
.why-text {
  flex: 1 1 45%;
}

.why-img img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.why-text h3 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  color: #222;
}

.why-text p {
  color: #555;
  line-height: 1.6;
}

.text-pos {
text-align: right;
}

/* Barre de satisfaction */
.progress-bar {
  background: #e0efe4;
  border-radius: 20px;
  overflow: hidden;
  height: 12px;
  margin-top: 1rem;
}

.progress {
  background: #52a167;
  height: 100%;
  transition: width 1s ease-in-out;
}

@media (max-width: 768px) {
  .why-block,
  .why-block.image-right {
    flex-direction: column;
    text-align: center;
  }

  .why-img,
  .why-text {
    width: 100%;
  }

  /* ✅ Correction : recentrer le texte sur mobile */
  .text-pos {
    text-align: center !important;
  }

  .progress-bar {
    margin-inline: auto;
  }
}
  
  /* ========= AVIS CLIENTS ========= */
  .testimonials {
    background-color: #f4f4f4;
    padding: 4rem 2rem 5rem 4rem;
    text-align: center;
  }
  
  .testimonials h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: #333;
  }
  
  .testimonial-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
  }
  
  .testimonial {
    background: #fff;
    border-left: 5px solid #52a167;
    padding: 1.5rem;
    border-radius: 10px;
    max-width: 300px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  }
  
  .testimonial p {
    font-style: italic;
    margin-bottom: 0.5rem;
  }
  
  .testimonial span {
    font-weight: bold;
    color: #333;
  } 
  
  /* ========= 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;
    }
  }
  