/* ===== Lead Section Syndic ===== */
.active-lead-section {
  background-color: var(--accent-color);
  width: 100%;
  overflow-x: hidden; /* Empêche tout débordement horizontal */
}

.active-lead-section .container-fluid {
  padding-left: 0;
  padding-right: 0;
  overflow-x: hidden;
  width: 100%;
}

.active-lead-section .row {
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  overflow-x: hidden;
}

.active-lead-section [class*="col-"] {
  padding-left: 0;
  padding-right: 0;
}

/* Hauteur en viewport height */
.leadSwiper {
  width: 100%;
  height: 80vh;
  min-height: 500px;
  max-height: 800px;
  overflow: hidden; /* Cache tout débordement interne */
}

.leadSwiper .swiper-wrapper {
  width: 100%;
  height: 100%;
}

.leadSwiper .swiper-slide {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
  /* Correction pour éviter le débordement d'image */
  background-clip: border-box;
  overflow: hidden;
}

/* Désactiver navigation et pagination */
.leadSwiper .swiper-button-prev,
.leadSwiper .swiper-button-next,
.leadSwiper .swiper-pagination {
  display: none !important;
}

/* Animation de fondu */
.leadSwiper .swiper-slide {
  transition: opacity 1.5s ease-in-out;
}

/* Zone de texte avec la MÊME hauteur */
.text-lead {
  padding: 40px;
  height: 80vh;
  min-height: 500px;
  max-height: 800px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  /* Correction overflow */
  overflow-y: auto; /* Permet le scroll si le texte est trop long */
  overflow-x: hidden;
}

.text-lead p,
.text-lead h2 {
  color: #FFFFFF;
  max-width: 100%; /* Empêche le texte de déborder */
  word-wrap: break-word; /* Coupe les mots longs */
}

/* Correction pour les ul et li */
.text-lead ul {
  max-width: 100%;
  padding-left: 0;
}

.text-lead li {
  max-width: 100%;
  word-wrap: break-word;
}

/* Version mobile */
@media (max-width: 991px) {
  .leadSwiper,
  .text-lead {
    height: auto;
    min-height: 400px;
  }
  
  /* Cacher le slider sur mobile */
  .leadSwiper {
    display: none;
  }
  
  .text-lead {
    height: auto;
    min-height: auto;
    padding: 40px 20px;
    overflow-y: visible;
  }
}

@media (max-width: 576px) {
  .active-lead-section {
    padding: 40px 0;
  }
  
  .text-lead {
    height: auto;
    min-height: auto;
    padding: 30px 15px; /* Réduit sur mobile */
  }
}

/* Solution de secours pour les très petits écrans */
@media (max-width: 400px) {
  .text-lead {
    padding: 20px 10px;
  }
  
  .text-lead h2 {
    font-size: 1.5rem; /* Réduit si besoin */
  }
  
  .text-lead p {
    font-size: 0.95rem;
  }
}

/* ===== Hero Section À Propos ===== */
.about-hero-section {
  position: relative;
  background: linear-gradient(rgba(44, 62, 73, 0.7), rgba(44, 62, 73, 0.8)), 
              url('../../banner/emera_syndic_2048x2048.jpg');
   background-size:cover;
   background-repeat: no-repeat;
  background-position: center;
  color: white;
  /* height: 40vh; */
  min-height: 320px;
  padding: 70px 0 50px;
  margin-bottom: 20px;
  
}

.about-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.about-hero-content {
  z-index: 2;
}

.about-hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--white-color);
  margin-bottom: 1.5rem;
  align-items: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.about-hero-subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ===== Sections ===== */
.section-history,
.section-mission,
.section-values,
.section-expertise,
.section-team,
.section-recognition {
  padding: 5rem 0;
}

.bg-accent {
  background-color: var(--accent-color) !important;
}

.text-accent {
  color: var(--accent-color) !important;
}

/* ===== Timeline ===== */
.timeline-content {
  background: var(--white-color);
  padding: 1.5rem;
  position: relative;
}

.timeline-content:before {
  content: '';
  position: absolute;
  top: 20px;
  width: 20px;
  height: 20px;
  /* background: var(--white-color); */
  transform: rotate(45deg);
}

.timeline-item:nth-child(odd) .timeline-content:before {
  right: -10px;
}

.timeline-item:nth-child(even) .timeline-content:before {
  left: -10px;
}

/* ===== Cards spécifiques ===== */
.value-card {
  background: var(--white-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
}

.value-card:hover {
  box-shadow: var(--box-shadow-hover);
}

.expertise-card {
  background: var(--white-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
}

.expertise-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-hover);
}

.team-card {
  background: var(--white-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
}

/* ===== Social Icons ===== */
.social-icon-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--light-gray);
  border-radius: 50%;
  color: var(--dark-color);
  transition: all 0.3s ease;
}

.social-icon-small:hover {
  background: var(--primary-color);
  color: var(--dark-color);
  transform: translateY(-3px);
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .about-hero-title {
      font-size: 2.8rem;
  }
  
  .about-hero-subtitle {
      font-size: 1.3rem;
  }
  
  .timeline:before {
      left: 30px;
  }
  
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
      margin-left: 60px;
      margin-right: 0;
      padding-left: 40px;
      padding-right: 15px;
      text-align: left;
  }
  
  .timeline-dot {
      left: 30px;
  }
  
  .timeline-content:before {
      left: -10px;
      right: auto;
  }
}

@media (max-width: 768px) {
  .about-hero-section {
  padding: 100px 0 50px;
        margin-top:0px;
  }
  
  .about-hero-title {
      font-size: 2.2rem;
  }
  
  .about-hero-subtitle {
      font-size: 1.1rem;
  }
  
  .section-history,
  .section-mission,
  .section-values,
  .section-expertise,
  .section-team,
  .section-recognition {
      padding: 3rem 0;
  }
  
  .team-img {
      width: 150px;
      height: 150px;
  }
}

@media (max-width: 576px) {
  .about-hero-section {
      height: 50vh;
      min-height: 350px;
      margin-top: 0px;
  }
  
  .about-hero-title {
      font-size: 1.8rem;
  }
  
  .about-hero-subtitle {
      font-size: 1rem;
  }
  
  .cta-buttons {
      flex-direction: column;
      gap: 1rem;
  }
  
  .cta-buttons .btn {
      width: 100%;
      margin: 0 !important;
  }
  
  .stats-counter {
      font-size: 2.5rem;
  }
}


      .timeline {
          position: relative;
          padding: 0;
          list-style: none;
      }
      
      .timeline:before {
          content: '';
          position: absolute;
          top: 0;
          bottom: 0;
          left: 50%;
          width: 4px;
          background: var(--primary-color);
          margin-left: -2px;
      }
      
      .timeline-item {
          margin-bottom: 50px;
          position: relative;
      }
      
      .timeline-item:nth-child(odd) .timeline-content {
          margin-left: 0;
          margin-right: 50%;
          padding-right: 40px;
          text-align: right;
      }
      
      .timeline-item:nth-child(even) .timeline-content {
          margin-left: 50%;
          padding-left: 40px;
      }
      
      .timeline-dot {
          position: absolute;
          top: 10px;
          left: 50%;
          width: 20px;
          height: 20px;
          background: var(--accent-color);
          border: 4px solid var(--white-color);
          border-radius: 50%;
          margin-left: -10px;
          z-index: 2;
      }
      
      .timeline-item:nth-child(odd) .timeline-dot {
          left: 50%;
      }
      
      .timeline-item:nth-child(even) .timeline-dot {
          left: 50%;
      }
      
      .expertise-icon {
          width: 80px;
          height: 80px;
          background: rgba(243, 215, 35, 0.1);
          border-radius: 50%;
          display: flex;
          align-items: center;
          justify-content: center;
          margin: 0 auto 1.5rem;
          font-size: 2rem;
          color: var(--primary-color);
          transition: all 0.3s ease;
      }
      
      .expertise-card:hover .expertise-icon {
          transform: scale(1.1);
          background: var(--primary-color);
          color: var(--dark-color);
      }
      
      .team-card {
          transition: transform 0.3s ease;
      }
      
      .team-card:hover {
          transform: translateY(-10px);
      }
      
      .team-img {
          width: 200px;
          height: 200px;
          border-radius: 50%;
          object-fit: cover;
          border: 5px solid rgba(243, 215, 35, 0.2);
          margin-bottom: 1.5rem;
      }
      
      .value-card {
            border: 1px solid var(--light-gray);
          transition: all 0.3s ease;
      }
      
      .value-card:hover {
          border-color: var(--accent-color);
          transform: translateX(10px);
      }
      .value-card p {
        margin-bottom: 20px;
      }
      
      .certification-badge {
          display: inline-flex;
          align-items: center;
          gap: 0.5rem;
          padding: 0.75rem 1.5rem;
          background: rgba(80, 180, 50, 0.1);
          border-radius: 50px;
          margin-bottom: 1rem;
      }
      
      .stats-counter {
          font-size: 3rem;
          font-weight: 700;
          color: var(--accent-color);
          margin-bottom: 0.5rem;
      }
      
      @media (max-width: 768px) {
          .timeline:before {
              left: 30px;
          }
          
          .timeline-item:nth-child(odd) .timeline-content,
          .timeline-item:nth-child(even) .timeline-content {
              margin-left: 60px;
              margin-right: 0;
              padding-left: 40px;
              padding-right: 0;
              text-align: left;
          }
          
          .timeline-dot {
              left: 30px;
          }
      }

      /* Style pour les points-tirets */
.bullet-point {
  min-width: 20px;
  text-align: center;
}

.bullet-icon {
  display: inline-block;
  font-size: 1.2rem;
  line-height: 1;
}

.bullet-dash {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}

/* Ou style avec effet de cercle minimal */
.bullet-point-circle {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-weight: bold;
}

.bullet-point-circle span {
  margin-top: -2px;
}


/* ===== Accordion Syndic ===== */

.accordion-item {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 1rem;
}
.accordion-header .accordion-button {
    background-color: var(--light-gray);
    color: var(--dark-color) !important;
    font-weight: 600;
    border: none;
    box-shadow: none;
}
.accordion-button:not(.collapsed) {
    background-color: var(--accent-color);
    color: #FFFFFF !important;
    box-shadow: none;
}
.accordion-button:focus {
  border-color: var(--accent-color);
}
.accordion-button::after {
  transition: transform 0.3s ease, background-image 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
  transform: rotate(180deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.5 6.5l6 6 6-6'/%3E%3C/svg%3E");
}



/* ===== Testimonials Carousel Syndic ===== */ 
.carousel-item {
  transform: none !important;
}
.carousel img {
  width: 50px;
  max-height: 70px;
  border-radius: 50%;
  margin-right: 1rem;
  overflow: hidden;
}
.carousel-inner {
  padding: 1em;
}

@media screen and (min-width: 576px) {
  .carousel-inner {
    display: flex;
    width: 90%;
    margin-inline: auto;
    padding: 1em 0;
    overflow-y: hidden;
    scroll-behavior: smooth;
  }

  .carousel-item {
    flex: 0 0 calc(100% / 2);
  }
}

@media screen and (min-width: 768px) {
  .carousel-item {
    display: block;
    margin-right: 0;
    flex: 0 0 calc(100% / 3);
  }
}
.carousel .card {
  margin: 0 0.5em;
  border: 0;
  height: 100%;
}

.carousel-control-prev,
.carousel-control-next {
  width: 3rem;
  height: 3rem;
  background-color: grey;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}




/* ===== TIMELINE SYNDIC ===== */

.step {
  width: 100%;
  padding: 25px;
  border-radius: 10px;
  background: #FFFFFF;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--box-shadow);
}
.step:hover{
  border: 1px solid;
  border-color: var(--accent-color);
  transform: translateX(10px);
  box-shadow: var(--box-shadow-hover);
}
.step h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-color);
  margin-bottom: 10px;
}
.step p {
  font-size: 1rem;
  font-weight: 300;
  color: var(--dark-color); 
}

.section-cta-home {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),  url("../../banner/emera_immeuble_1024x924.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* ===== Gestion mobile text-lead 320px à 832 ===== */ 

@media (max-width: 832px) {
  .text-lead {
    padding: 20px 10px;
  }
  .text-lead h2 {
    font-size: 1.8rem;
  }
  .text-lead p {
    font-size: 1rem;
  }
}




      .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
      }
      .table-responsive table th,
      .table-responsive table td {
        white-space: normal;
        word-break: break-word;
      }
      @media (max-width: 576px) {
        .table-responsive table td,
        .table-responsive table th {
          padding: .5rem .6rem;
          font-size: 0.95rem;
        }
      }

      /* Stats responsive */
      .stats-counter {
        font-weight: 700;
        color: var(--accent-color, #2b8a3e);
        line-height: 1;
        margin-bottom: .5rem;
        font-size: 2.5rem; /* desktop */
      }
      .section-expertise .text-muted {
        font-size: 1rem;
      }
      /* ensure descriptions can wrap and avoid overflow */
      .section-expertise .text-muted {
        white-space: normal;
        word-break: break-word;
      }

      @media (max-width: 992px) {
        .stats-counter {
          font-size: 2rem;
        }
      }
      @media (max-width: 576px) {
        .stats-counter {
          font-size: 1.4rem;
        }
        .section-expertise .text-muted {
          font-size: .95rem;
        }
        /* tighten column padding on small screens */
        .section-expertise .col-md-4,
        .section-expertise .col-6 {
          padding-left: .4rem;
          padding-right: .4rem;
        }
      }
   