/* Section 05 — Compétences : huit groupes en grille, trait ambre au survol (prototype index.html:70-72, 492-510) */

.competences {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.competences :where(h3, p) {
  margin: 0;
}

.competences-grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  gap: 0 64px;
  border-top: 2px solid var(--encre);
}

/* Aucune transition propre : celle de .rv (motion.css) reste intacte */
.competence {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 0;
  border-bottom: 1px solid var(--bordure-claire);
}

.competence h3 {
  font-family: var(--police-titre);
  font-size: 18px;
  font-weight: 600;
}

.competence p {
  font-size: clamp(15px, 0.95vw, 18px);
  line-height: 1.6;
  color: var(--texte-corps-clair);
}

.competence strong {
  font-weight: 600;
  color: var(--encre);
}

/* Trait du haut (index.html:70-72) */
.competence::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--ambre);
  transition: width 0.5s cubic-bezier(0.7, 0, 0.2, 1);
}

.competence:hover::before {
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .competence::before {
    transition: none;
  }
}
