/* Section principale pour les projets (titre + grid) */
.projects-preview {
  padding: 80px 10%;
  background: #fff;
  color: #111;
  text-align: center;
}

.projects-preview h2 {
  font-family: 'Chivo', sans-serif;
  font-size: 2rem;
  margin-bottom: 40px;
}

/* Grille des projets */
.projects-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
}

/* Card projet */
.project-card {
  position: relative;
  display: block; /* entire card clickable */
  text-decoration: none;
  background: #fff;
  border: 1px solid #f5a8c7;
  border-radius: 20px;
  padding: 30px 25px;
  width: 300px;
  color: #111;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.project-card h3 {
  font-family: 'Chivo', sans-serif;
  font-size: 1.3rem;
  margin-bottom: 15px;
  position: relative;
  z-index: 2;
}

.project-card p {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
  position: relative;
  z-index: 2;
}

/* Illustration légère dans la carte */
.card-deco {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 150px;
  height: 150px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45; /* très légère */
}

.card-deco img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}