/* PORTFOLIO CNED — SECTION COMPÉTENCES */

/* Section compétences - fond noir */
.section-competences {
  position: relative;
  background: var(--color-noir);
  color: var(--color-text-clair);
  padding: 6rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Container principal */
.competences-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Titre principal - centré */
.competences-title {
  font-family: "Stack Sans Notch", sans-serif;
  font-weight: 600;
  font-size: 4.5rem;
  line-height: 1.1;
  text-align: center;
  color: var(--color-text-clair);
  margin: 0 0 4rem;
}

/* ============================================
   GRILLE DE COMPÉTENCES
   ============================================ */

.competences-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Card de compétence */
.competence-card {
  background: var(--color-noir);
  border: 1px solid var(--color-text-clair);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Icône de la compétence */
.competence-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
  color: var(--color-text-clair);
  display: flex;
  align-items: center;
  justify-content: center;
}

.competence-icon svg {
  width: 100%;
  height: 100%;
}

/* Titre de la compétence */
.competence-title {
  font-family: var(--font-principale);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--color-text-clair);
  margin: 0 0 1rem;
}

/* Description de la compétence */
.competence-description {
  font-family: var(--font-principale);
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-clair);
  margin: 0;
  opacity: 0.85;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1200px) {
  .competences-title {
    font-size: 3.5rem;
  }
  
  .competences-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .section-competences {
    padding: 4rem 0;
  }
  
  .competences-container {
    padding: 0 1.5rem;
  }
  
  .competences-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
  }
  
  .competences-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .competence-card {
    padding: 2rem 1.5rem;
  }
  
  .competence-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 1.25rem;
  }
  
  .competence-title {
    font-size: 1.25rem;
  }
  
  .competence-description {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .competences-container {
    padding: 0 1rem;
  }
  
  .competences-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .competences-grid {
    gap: 1rem;
  }
  
  .competence-card {
    padding: 1.5rem 1.25rem;
  }
  
  .competence-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
  }
  
  .competence-title {
    font-size: 1.125rem;
  }
  
  .competence-description {
    font-size: 0.85rem;
    line-height: 1.6;
  }
}
