/* Introduction de la page portfolio */
.portfolio-intro {
  max-width: 70ch;
}

/* Grille des projets */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

/* Carte projet */
.project-card {
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(13, 36, 52, 0.6);
}

/* Image de couverture du projet */
.project-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

/* Contenu textuel de la carte */
.project-content {
  padding: 1rem;
}

/* Titre de projet */
.project-content h3 {
  margin-bottom: 0.45rem;
}

/* Metadonnees/technologies du projet */
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.7rem;
}

/* Badge individuel de metadonnee */
.project-meta span {
  display: inline-flex;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Bloc d'appel à l'action final */
.cta-box {
  margin-top: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: rgba(7, 21, 31, 0.45);
}

/* Adaptation responsive */
@media (max-width: 950px) {
  .project-grid {
    grid-template-columns: 1fr;
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }
}