.py-section {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text-color);
  position: relative;
  padding-bottom: 1.5rem;
  margin-bottom: 3.5rem;
  text-align: center;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 90px;
  height: 5px;
  background-color: var(--primary-color);
  border-radius: 3px;
}

.section-intro {
  font-size: 1.25rem;
  color: var(--secondary-color);
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}





/* --- Section HERO --- */
.about-hero {
  min-height: 30vh;
  background: url('../images/parto_strat_indien.jpg') no-repeat top center/cover;
  color: var(--white);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10rem 0;
}

.about-hero .container {
  background-color: #0505056e;
  position: relative;
  border-radius: 20px;
  left: 0;
  margin-bottom: 400px;
}

.about-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 2px 2px 6px #00000066;
}

.about-hero p {
  font-size: 1.1rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.5rem;
  text-shadow: 1px 1px 3px #0000004d;
}

/* --- Section HISTOIRE (Timeline) --- */

.about-history {
  background-color: none;
}

.about-history p,
.about-partners p {
  background-color: white;
  color: #000;
}

.timeline {
  position: relative;
  padding-left: 2.5rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 1000px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  width: 4px;
  height: 100%;
  border-radius: 2px;
}

.timeline-item {
  margin-bottom: 3.5rem;
  background-color: #e2e6ea;
  position: relative;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.year-circle,
.year-circle-right {
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border: 3px solid var(--white);
  /* Petite bordure blanche */
}

.year-circle-right {
  right: -40px;
  font-size: 15px;
}

.year-circle {
  left: 0;
}

.timeline-item .desc {
  background-color: var(--white);
  padding: 1.8rem;
  border-radius: 0.75rem;
  box-shadow: 0 5px 20px var(--shadow-color);
  margin-left: 4.5rem;
  /* Espacement par rapport à la ligne */
  position: relative;
  border-left: 5px solid var(--primary-color);
}

.timeline-item:nth-child(even) .desc {
  margin-left: unset;
  margin-right: 4.5rem;
  border-left: none;
  border-right: 5px solid var(--primary-color);
}

.timeline-item .desc h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.timeline-item .desc p {
  font-size: 1rem;
  line-height: 1.6;
  color: #000;
}

/* Connecteur entre le cercle et la carte */
.timeline-item .desc::before {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 10px 10px 0;
  /* Pointe vers la gauche */
  border-color: transparent var(--primary-color) transparent transparent;
  left: -10px;
  top: 20px;
}

.timeline-item:nth-child(even) .desc::before {
  border-width: 10px 0 10px 10px;
  /* Pointe vers la droite */
  border-color: transparent transparent transparent var(--primary-color);
  right: -10px;
  left: unset;
}

/* --- Section MISSION & VISION --- */
.about-mission-vision {
  background-color: var(--primary-color);
  /* Arrière-plan bleu */
  color: var(--white);
}

.about-mission-vision .section-title::after {
  background-color: var(--white);
  /* Ligne blanche sur fond bleu */
}

.card-mv {
  background-color: var(--white);
  color: var(--text-color);
  padding: 3rem 2rem;
  border-radius: 1rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  transition: transform var(--transition-speed) ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.card-mv:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.card-mv i {
  font-size: 4rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.card-mv h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.card-mv p {
  font-size: 1.1rem;
  line-height: 1.7;
}

/* --- Section VALEURS --- */

.about-values {
  background-color: none;
}

.value-card {
  background-color: none;
  padding: 2.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 5px 20px var(--shadow-color);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  border-bottom: 5px solid var(--secondary-color);

}

.value-card:hover {
  transform: translateY(-8px);
  border-bottom-color: transparent;
  box-shadow: 0 12px 30px #00000026;
}

.value-card i {
  font-size: 3.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.value-card h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.value-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color);
}


/* Styles pour la section "Notre Équipe Engagée" */
.Agediom-team-section-pro {
  background-color: #f8f9fa;
  padding: 50px 0;
}


.key-members-carousel {
  padding: 30px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.team-member-card {
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  text-align: center;
}

.team-member-card img {
  border-radius: 50%;
  margin-bottom: 15px;
}

.experts-by-domain {
  padding: 30px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .team-member-card {
    margin-bottom: 30px;
  }

  .team-section h2 {
    font-size: 2.2rem;
  }

}








/* MISSION SECTION - À Propos de nous */
.mission-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.mission-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 123, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.mission-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mission-section h2 i {
  color: var(--bs-primary, #007bff);
  transition: transform 0.3s ease;
}

.mission-section h2:hover i {
  transform: rotate(15deg);
}

.mission-section p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  text-align: justify;
}




/* ANIMATIONS */
@keyframes float {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(20px, -20px);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .mission-section h2 {
    font-size: 2rem;
  }

  .mission-section p {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .mission-section {
    padding: 60px 0;
  }

  .mission-section h2 {
    font-size: 1.75rem;
  }

  .mission-section::before {
    display: none;
  }

}

@media (max-width: 576px) {
  .mission-section {
    padding: 40px 0;
  }

  .mission-section h2 {
    font-size: 1.5rem;
    flex-direction: column;
    text-align: center;
  }

  .mission-section h2 i {
    margin-bottom: 0.5rem;
  }

}









/* --- Section IMPACT --- */
.about-impact {
  background-color: var(--primary-color);
  color: var(--white);
}

.about-impact p {
  color: white;
}


.about-impact .section-title::after {
  background-color: var(--white);
}

.stat {
  background-color: var(--white);
  color: var(--text-color);
  padding: 2.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.stat h3 {
  font-size: 3.5rem;
  /* Taille des chiffres */
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat p {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 0;
}

/* --- Section PARTENAIRES --- */
.partners-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  /* Espacement entre les logos */
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.partner-logo-wrapper {
  display: block;
  /* Pour que le lien englobe l'image */
  height: 80px;
  /* Hauteur fixe pour les logos */
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo {
  max-height: 80px;
  width: auto;
  filter: grayscale(100%);
  /* Logos en noir et blanc */
  opacity: 0.7;
  transition: all var(--transition-speed) ease;
  padding: 0.5rem 1rem;
  background-color: var(--white);
  border-radius: 0.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.partner-logo:hover {
  filter: grayscale(0%);
  /* Couleurs au survol */
  opacity: 1;
  transform: scale(1.08);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* --- Section CTA --- */
.about-ctaa {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 8rem 0;
  /* Plus de padding pour la visibilité */
  text-align: center;
}

.about-ctaa h2 {
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 2rem;
  line-height: 1.3;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.about-ctaa p {
  font-size: 1.4rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3rem;
}








/* Section for the Interactive Background */
.interactive-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: -1;
  /* background: linear-gradient(135deg, var(--primary-color), #4CAF50); */
  background-size: 400% 400%;
}

/* Floating Items (Icons and Words) */
.background__container {
  position: relative;
  width: 100%;
  height: 100%;
}

.floating-item {
  position: absolute;
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  opacity: 0.8;
  animation: float 6s linear infinite, drift 12s ease-in-out infinite;
  white-space: nowrap;
}

/* Animate Background Gradient */
@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Float Effect for Items */
@keyframes float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0);
  }
}

/* Drift Animation for Horizontal Movement */
@keyframes drift {
  0% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(50px);
  }

  100% {
    transform: translateX(0);
  }
}

/* Generate Random Position for Items */
.floating-item:nth-child(1) {
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.floating-item:nth-child(2) {
  top: 20%;
  left: 75%;
  animation-delay: 1s;
}

.floating-item:nth-child(3) {
  top: 50%;
  left: 40%;
  animation-delay: 2s;
}

.floating-item:nth-child(4) {
  top: 30%;
  left: 20%;
  animation-delay: 3s;
}

.floating-item:nth-child(5) {
  top: 70%;
  left: 60%;
  animation-delay: 4s;
}

.floating-item:nth-child(6) {
  top: 80%;
  left: 10%;
  animation-delay: 5s;
}

.floating-item:nth-child(7) {
  top: 60%;
  left: 80%;
  animation-delay: 6s;
}

.floating-item:nth-child(8) {
  top: 15%;
  left: 45%;
  animation-delay: 7s;
}

.floating-item:nth-child(9) {
  top: 5%;
  left: 50%;
  animation-delay: 8s;
}

.floating-item:nth-child(10) {
  top: 90%;
  left: 35%;
  animation-delay: 9s;
}







/* ================== VERSION RESPONSIVE ================== */

/* Tablettes (≤ 991px) */
@media (max-width: 991.98px) {
  .py-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .section-intro {
    font-size: 1.1rem;
    max-width: 90%;
  }

  .about-hero h1 {
    font-size: 2.8rem;
  }

  .about-hero p {
    font-size: 1.2rem;
  }

  .card-mv,
  .value-card,
  .expertise-card,
  .stat {
    padding: 2rem 1.5rem;
  }

  .partners-logos {
    gap: 2rem;
  }
}

/* Mobiles (≤ 767px) */
@media (max-width: 767.98px) {
  .py-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }

  .section-intro {
    font-size: 1rem;
    line-height: 1.6;
  }

  /* Hero */
  .about-hero {
    padding: 5rem 1rem;
    text-align: center;
  }

  .about-hero .container {
    background-color: #0505056e;
    position: relative;
    padding-top: 170px;
    border-radius: 20px;
    left: 0;
    margin-bottom: 40px;

  }

  .about-hero h1 {
    font-size: 1.8rem;
  }

  .about-hero p {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .about-values h2,
  .about-history h2,
  .about-mission-vision h2,
  .about-expertise h2,
  .about-partners h2 {
    font-size: 1.8rem;
  }

  .about-impact h2 {
    font-size: 2.2rem;
  }


  /* Timeline */
  .timeline {
    max-width: 100%;
  }

  .timeline-item .year-circle {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }

  .timeline-item .desc {
    margin-left: 3.5rem;
    padding: 1.2rem;
  }

  .timeline-item .desc h3 {
    font-size: 1.2rem;
  }

  .timeline-item .desc p {
    font-size: 0.95rem;
  }

  /* Mission/Vision */
  .card-mv h3 {
    font-size: 1.5rem;
  }

  .card-mv p {
    font-size: 1rem;
  }

  /* Valeurs & Expertise */
  .value-card h3,
  .expertise-card h3 {
    font-size: 1.4rem;
  }

  .value-card p,
  .expertise-card p {
    font-size: 0.95rem;
  }


  /* Impact */
  .stat h3 {
    font-size: 2.2rem;
  }

  .stat p {
    font-size: 1rem;
  }

  /* Partenaires */
  .partner-logo-wrapper {
    height: 60px;
  }

  .partner-logo {
    max-height: 60px;
  }

  /* CTA */
  .about-ctaa {
    padding: 5rem 1rem;
  }

  .about-ctaa h2 {
    font-size: 2rem;
  }

  .about-ctaa p {
    font-size: 1.1rem;
  }
}

/* Très petits écrans (≤ 480px) */
@media (max-width: 480.98px) {
  .section-title {
    font-size: 1.5rem;
  }

  .about-hero h1 {
    font-size: 1.8rem;
  }

  .about-hero p {
    font-size: 0.9rem;
  }

  .timeline-item .desc {
    margin-left: 3rem;
    padding: 1rem;
  }

  .card-mv,
  .value-card,
  .expertise-card,
  .stat {
    padding: 1.5rem;
  }

  .about-cta h2 {
    font-size: 1.6rem;
  }

  .about-cta p {
    font-size: 1rem;
  }
}