/* Styles pour la section compétences (cartes et bulles au survol) */
.competence-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.competence-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(74,144,226,0.13);
  padding: 2.2rem 1.5rem 1.2rem 1.5rem;
  width: 230px;
  min-height: 180px;
  text-align: center;
  text-decoration: none;
  color: #357ABD;
  font-weight: 600;
  font-size: 1.08em;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s, border 0.18s;
  border: 2px solid #e3eaf3;
  position: relative;
  overflow: hidden;
}
.competence-card:hover {
  background: #f7fbff;
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 8px 32px rgba(74,144,226,0.18);
  border: 2px solid #4A90E2;
  cursor: pointer;
}
.competence-icon {
  font-size: 2.1em;
  font-weight: 700;
  letter-spacing: 2px;
  color: #357ABD;
  background: #eaf3fa;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.7em;
  box-shadow: 0 2px 8px rgba(74,144,226,0.07);
  transition: opacity 0.2s;
}
.competence-title {
  font-size: 1.08em;
  font-weight: 600;
  transition: opacity 0.2s;
}
.competence-card:hover .competence-icon,
.competence-card:hover .competence-title {
  opacity: 0;
  pointer-events: none;
}
.competence-desc {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: none;
  color: #357ABD;
  border-radius: 12px;
  box-shadow: none;
  padding: 0 1em;
  width: 90%;
  z-index: 10;
  font-size: 0.98em;
  font-weight: 400;
  text-align: center;
  transition: opacity 0.2s;
  display: block;
}
.competence-card:hover .competence-desc {
  opacity: 1;
  pointer-events: auto;
}
@media (max-width: 900px) {
  .competence-cards { flex-direction: column; align-items: center; }
  .competence-card { width: 90%; }
  .competence-desc { left: 50%; top: 110%; width: 90vw; max-width: 320px; }
}
