/* ===== STYLES SPÉCIFIQUES POUR LA PAGE À PROPOS ===== */
/* (Fichier: css/a-propos.css) */

/* Page Banner */
.page-banner {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/drapeau-maroc.jpg') center/cover no-repeat;
  padding: 150px 0 80px;
  color: #fff;
  text-align: center;
}

.page-banner h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.page-banner p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  opacity: 0.9;
}

/* About Section */
.about-section {
  padding: 80px 0;
}

.alt-bg {
  background-color: var(--light-color);
}

.about-content {
  display: flex;
  gap: 40px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.about-image {
  flex: 1;
  max-width: 400px; /* Garder une taille raisonnable pour le logo/image */
  text-align: center; /* Centrer l'image si elle est plus petite */
}

.about-image img {
  /* Ajuster la taille max si c'est le logo */
  max-width: 100%; /* S'assure qu'elle ne dépasse pas */
  height: auto; /* Garder les proportions */
  max-height: 250px; /* Limiter la hauteur max du logo ici */
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text {
  flex: 2;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* Mission Section */
.mission-section {
  padding: 80px 0;
}

.mission-content {
  max-width: 900px;
  margin: 0 auto;
}

.mission-statement {
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--primary-color);
  margin-bottom: 40px;
  text-align: center;
}

.mission-commitments h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  text-align: center;
}

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

.commitment-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.commitment-list li:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.commitment-list i {
  color: var(--primary-color);
  margin-right: 15px;
  font-size: 1.2rem;
  margin-top: 3px;
}

/* Team Section */
.team-section {
  padding: 80px 0;
}

.team-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  font-size: 1.1rem;
}

/* MODIFIÉ : Utilisation de Flexbox pour .team-grid */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Centre les éléments */
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto 40px;
  /* grid-template-columns: ... ; */ /* Supprimé */
}

.team-category {
  text-align: center;
  background-color: #fff;
  padding: 30px 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  flex: 1 1 200px; /* AJOUTÉ: Base 200px */
  max-width: 260px; /* Optionnel: Limiter la largeur */
}

.team-category:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.category-icon {
  width: 70px;
  height: 70px;
  background-color: rgba(197, 40, 28, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.category-icon i {
  font-size: 1.8rem;
  color: var(--primary-color);
}

.team-category h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.team-commitment {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  font-weight: 500;
}

/* Methodology Section */
.methodology-section {
  padding: 80px 0;
}

.methodology-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  font-size: 1.1rem;
  font-weight: 500;
}

/* Utilisation de Flexbox pour .methodology-pillars (déjà fait) */
.methodology-pillars {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto 40px;
}

.pillar {
  text-align: center;
  padding: 20px;
  transition: transform 0.3s ease;
  flex: 1 1 200px;
  max-width: 250px;
}

.pillar:hover {
  transform: translateY(-5px);
}

.pillar-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
}

.pillar-icon i {
  font-size: 1.5rem;
}

.pillar h3 {
  font-size: 1rem;
  font-weight: 600;
}

.methodology-conclusion {
  text-align: center;
  max-width: 800px;
  margin: 40px auto 0;
  font-size: 1.1rem;
}

/* Values Section */
.values-section {
  padding: 80px 0;
}

/* Utilisation de Flexbox pour .values-grid (déjà fait) */
.values-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.value-card {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  flex: 1 1 300px;
  max-width: calc(50% - 15px);
}

.value-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.value-icon {
  width: 70px;
  height: 70px;
  background-color: rgba(197, 40, 28, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.value-icon i {
  font-size: 1.8rem;
  color: var(--primary-color);
}

.value-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.value-card p {
  line-height: 1.6;
}

/* Engagement Section */
.engagement-section {
  padding: 80px 0;
}

.engagement-content {
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
}

.engagement-content p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  line-height: 1.7;
}

.engagement-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}


/* ----- Responsive styles pour A Propos ----- */
@media (max-width: 992px) {
  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .about-image {
    margin: 0 auto 30px;
    max-width: 400px; /* Rétablir taille max image */
  }
   .value-card {
      max-width: calc(50% - 15px);
  }
   .pillar {
      flex-basis: calc(33.33% - 21px); /* Env 3 par ligne */
      max-width: calc(33.33% - 21px);
  }
   .team-category {
      flex-basis: calc(33.33% - 21px); /* Env 3 par ligne */
       max-width: calc(33.33% - 21px);
   }
}

@media (max-width: 768px) {
  .page-banner h1 { font-size: 2.5rem; }

  .engagement-actions {
    flex-direction: column;
    align-items: center;
  }

  .engagement-actions .btn {
    width: 100%;
    max-width: 300px;
  }

   /* Ajustement Flexbox pour tablettes */
   .pillar {
       flex-basis: calc(50% - 15px); /* 2 par ligne */
       max-width: calc(50% - 15px);
   }
   .value-card {
       max-width: none;
       flex-basis: 300px;
   }
   .team-category {
       flex-basis: calc(50% - 15px); /* 2 par ligne */
       max-width: calc(50% - 15px);
   }
}

@media (max-width: 576px) {
  .page-banner h1 { font-size: 2rem; }

  .mission-statement { font-size: 1.1rem; }

  .about-section,
  .mission-section,
  .team-section,
  .methodology-section,
  .values-section,
  .engagement-section {
    padding: 60px 0;
  }

   /* Ajustement Flexbox pour mobile */
   .pillar,
   .value-card,
   .team-category {
       flex-basis: 100%; /* 1 par ligne */
       max-width: none;
   }
}