/* Style global pour la page des compétences */
body {
  font-family: 'Raleway', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
}

h1 , h2 {
  font-size: 2.5rem;
  font-weight: 400;
  color: #333;
  text-align: center;
  margin-bottom: 3rem;
  font-family: 'Raleway', sans-serif;
}

h3 {
  font-size: 1.5rem;
  font-weight: 400;
  color: #333;
  text-align: center;
  margin-top: 1rem;
}

img {
  width: 100%;
  height: auto;
  margin-bottom: 2rem;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  margin-left: auto;
  margin-right: auto;
}

/* Section des compétences */
.competence-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Trois colonnes sur grands écrans */
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.competence-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;  /* Padding autour de chaque image et texte */
  background-color: #ffffff;  /* Fond blanc*/
  border-radius: 8px;  /* Coins arrondis */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);  /* Légère ombre autour */
  margin-bottom: 3rem;
}

.competence-item h3 {
  font-size: 1.4rem;
  color: #333;
  margin-top: 1rem;
  font-weight: bold;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  .competence-container {
    grid-template-columns: 1fr; /* Une seule colonne sur mobile */
  }

  .competence-item {
    width: 80%;
    margin: 0 auto;
    padding: 1rem;  /* Réduire un peu le padding sur mobile */
  }

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

  .competence-container img {
    width: 80%; /* Réduction de la taille de l'image sur mobile */
  }
}
