/* ===== STYLES SPÉCIFIQUES POUR LA PAGE SERVICES ===== */
/* (Fichier: css/services.css) */

/* Page Banner */
.page-banner {
  /* Chemin image mis à jour */
  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;
}

/* Service Sections */
.service-section {
  padding: 80px 0;
  scroll-margin-top: 100px; /* Pour le défilement fluide avec les ancres */
}

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

.service-card {
  display: flex;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  /* Ajouter une transition si on veut un effet sur la carte entière */
  /* transition: box-shadow 0.3s ease; */
}
/* Optionnel: Ombre légère au survol de la carte entière */
/* .service-card:hover {
   box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
} */


.service-icon {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  background-color: rgba(197, 40, 28, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 3rem;
  transition: transform 0.3s ease; /* AJOUT : Transition pour l'icône */
}

/* AJOUT : Effet sur l'icône quand la carte est survolée */
.service-card:hover .service-icon {
  transform: scale(1.05); /* Léger zoom sur l'icône */
}

.service-content {
  flex-grow: 1;
}

.service-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 30px;
  position: relative;
}

.service-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

.service-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 colonnes égales */
  gap: 40px;
  margin-top: 20px;
}

.service-block {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  height: 100%; /* Pour aligner les hauteurs si contenus différents */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* AJOUT : Transition */
}
.service-section:not(.alt-bg) .service-block {
    background-color: var(--light-color); /* Fond différent si la section n'a pas alt-bg */
}


/* AJOUT : Effet de survol pour les blocs internes */
.service-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.block-title {
  display: flex;
  align-items: center;
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 600;
}

.block-title i {
  margin-right: 12px;
  font-size: 1.4rem;
  width: 20px; /* Donner une largeur fixe pour l'alignement */
  text-align: center;
}

.service-list {
  padding-left: 25px; /* Ajusté pour l'icône */
  list-style: none; /* Enlever puces par défaut */
  margin: 0; /* Reset marge */
}

.service-list li {
  margin-bottom: 10px;
  position: relative;
  padding: 4px 8px; /* Padding pour le fond hover */
  margin-left: -8px; /* Compenser padding */
  border-radius: 4px;
  transition: background-color 0.2s ease; /* AJOUT : Transition fond */
}

/* AJOUT : Effet de survol pour les items de liste */
.service-list li:hover {
    background-color: #f0f0f0; /* Fond gris très clair */
}

/* MODIFIÉ : Puce personnalisée avec FontAwesome */
.service-list li::before {
  content: "\f00c"; /* Code FontAwesome pour check */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--primary-color);
  position: absolute;
  left: -15px; /* Positionner l'icône */
  top: 8px; /* Ajuster position verticale */
  font-size: 0.9rem;
}

/* Approach Section */
.approach-section {
  text-align: center;
  padding: 80px 0;
}

.approach-content {
  max-width: 800px;
  margin: 0 auto;
}

.approach-content p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

/* Styles redondants retirés */
/* .nav-links a.active { ... } */
/* .nav-links a.active::after { ... } */

/* Responsive styles */
@media (max-width: 992px) {
  .page-banner h1 {
    font-size: 2.5rem;
  }

  .service-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px; /* Réduire gap quand en colonne */
  }

  .service-icon {
      margin-bottom: 10px; /* Ajouter marge en bas si en colonne */
  }

  .service-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  /* Passer les blocs de service en 1 colonne */
  .service-blocks {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .block-title {
      justify-content: center; /* Centrer titre+icône */
  }
  .service-list {
       text-align: left; /* Garder texte liste à gauche */
       display: inline-block; /* Empêcher la liste de prendre 100% */
       max-width: 100%;
   }
}

@media (max-width: 768px) {
  .page-banner {
    padding: 120px 0 60px;
  }

  .page-banner h1 {
    font-size: 2rem;
  }

  .service-title {
    font-size: 1.8rem;
  }

  .service-icon {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
  }

  .block-title {
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  .service-block {
    padding: 20px;
  }

  .service-icon {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }

  .service-title {
    font-size: 1.6rem;
  }

  .service-section {
    padding: 60px 0;
  }

  .approach-section {
    padding: 60px 0;
  }
}