.portfolio-section {
    padding: 80px 6%;
  }
  
  .portfolio-section h2 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 10px;
    color: #1F2A44;
    font-size: 2em;
  }
  
  .portfolio-section p {
    margin-bottom: 50px;
    color: #222;
  }
  
  /* Grid moderne 2026 */
  .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 30px;
  }
  
  .portfolio-grid-2{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(219px, 1fr));
    gap: 30px;
}

  /* Carte projet */
  .project-card {
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.8s ease-out;
    background: #f8f8f8;
    position: relative;
  }
  
  .project-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
  }
  
  .project-card:hover {
    transform: translateY(-5px) scale(1.02);
  }
  
  .project-info {
    padding: 30px;
    background: #fff;
    opacity: 0;
    position: absolute;
    bottom: 0;
    z-index: 3;
    transition: all ease-in-out 0.8s;
    background: rgba(255, 255, 255, 0.9);

  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* couvrir toute l'image */
  display: flex; /* pour centrer vertical + horizontal */
  flex-direction: column;
  justify-content: center; /* centrer verticalement */
  align-items: center; /* centrer horizontalement */
  color: #fff;
  opacity: 0; /* invisible par défaut */
  text-align: center;
  padding: 10px;
  }
  .project-info:hover {
    opacity: 1;
  }
  
  .project-info h3 {
    margin: 0 0 5px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1em;
    color: #1F2A44;
  }
  
  .project-info p {
    margin: 0;
    font-size: 0.9em;
    color: #555;
  }
  
  /* Animation fade-in au scroll */
  .project-card.visible {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  
  /* Responsive mobile */
  @media (max-width: 768px) {
    .project-card img {
      height: 180px;
    }
  }