/* styles/projects.css - Style unifié comme le CV */

.projects-section {
  max-width: 850px;
  margin: 100px auto 60px;
  padding: 40px;
  background-color: var(--color-bg);
  color: var(--color-fg);
  border-radius: 24px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.8s ease-out;
}

.projects-section h1 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.projects-section p {
  text-align: center;
  color: var(--color-muted);
  margin-bottom: 2rem;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.project-card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-accent);
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.project-card:hover {
  background-color: var(--color-accent);
  transform: translateY(-5px);
  color: var(--color-bg);
}

.project-card h2 {
  margin-top: 0;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.project-card h2 a {
  text-decoration: none;
  color: var(--color-fg);
  transition: color 0.2s;
}

.project-card:hover h2 a {
  color: var(--color-bg);
}

.project-card p {
  margin: 0;
  color: var(--color-fg);
  line-height: 1.6;
}

@media (max-width: 600px) {
  .projects-section {
    padding: 25px;
  }

  .project-card {
    padding: 20px;
  }

  .project-card h2 {
    font-size: 1.3rem;
  }

  .project-card p {
    font-size: 0.95rem;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
