.btn-neon {
  display: inline-block;
  background: #0c0c0c;
  padding: 12px 30px;
  border: 2px solid #f5e000;
  color: #f5e000;
  text-transform: uppercase;
  font-weight: bold;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  transition: color 0.3s ease;
  z-index: 1;
}

.btn-neon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #f5e000;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: -1;
}

.btn-neon:hover::before {
  transform: scaleX(1);
}

.btn-neon:hover {
  color: #0c0c0c;
}

/* === VARIANTES DE COULEUR === */
.btn-neon.green {
  border-color: #00ff9c;
  color: #00ff9c;
}

.btn-neon.green::before {
  background: #00ff9c;
}

.btn-neon.yellow {
  border-color: #f5e000;
  color: #f5e000;
}

.btn-neon.yellow::before {
  background: #f5e000;
}

/* === GRILLE === */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  justify-items: center;
  margin-top: 40px;
}

/* Responsive : 2 cartes max sur tablette, 1 sur mobile */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* === CARTE === */
.project-card {
  display: block;
  background: #111;
  border: 1px solid #333;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 0 10px rgba(0, 255, 156, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 340px;
  height: 380px; /* ✅ toutes les cartes font la même taille */
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 0 25px rgba(0, 255, 156, 0.6);
}

/* === IMAGE === */
.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid #222;
}

/* === INFO === */
.project-info {
  padding: 15px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-info h3 {
  color: #f5e000;
  font-size: 1.1rem;
  margin-bottom: 8px;
  text-align: center;
}

.project-desc {
  color: #b3b3b3;
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 12px;
  text-align: center;
}

/* === TECHNO TAGS === */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.tech-tag {
  background: rgba(0, 255, 156, 0.1);
  border: 1px solid #00ff9c;
  color: #00ff9c;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  user-select: none;
  transition: 0.3s ease;
}

.tech-tag:hover {
  background: #00ff9c;
  color: #0c0c0c;
  box-shadow: 0 0 10px #00ff9c;
}