/* =====================================================
   PAGE LISTE DES PROJETS
   Compatible avec style.css
===================================================== */

/* ---------- Titre ---------- */

.projects-hero {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--border);
}

.projects-hero h1 {
  margin-bottom: 14px;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}

.projects-hero p {
  max-width: 680px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ---------- Grille ---------- */

.projects-list {
  padding: 48px 0 72px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* ---------- Carte projet ---------- */

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.2s, box-shadow 0.2s;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.project-thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 190px;
  font-size: 2.4rem;
  color: rgba(255, 255, 255, 0.55);
  background: linear-gradient(135deg, #12203a, #1e3a6e);
  overflow: hidden;
}

.project-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.project-card-tag {
  margin-bottom: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}

.project-card h2 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  line-height: 1.3;
}

.project-card p {
  margin-bottom: 14px;
  font-size: 0.93rem;
  color: var(--text-muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  list-style: none;
}

.chips li {
  padding: 3px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-alt);
  font-size: 0.78rem;
  color: var(--text);
}

.project-card .link-more,
.project-card .card-soon {
  margin-top: auto;
}

.card-soon {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .projects-hero {
    padding: 44px 0 32px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* Ancre : évite que la carte soit cachée sous l'en-tête fixe */
.project-card { scroll-margin-top: 90px; }
