/* ============================================================
   projets.css - Page Projets
   ============================================================ */

/* ---- Hero ---- */
.projets-hero {
  padding: 6rem 1.5rem 3rem;
  text-align: center;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-color);
}

.projets-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--text-main);
  margin-bottom: 1rem;
}

.projets-hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---- Grille ---- */
.projets-section {
  padding: 5rem 1.5rem;
  background: var(--bg-main);
}

.projets-section .container {
  max-width: 1100px;
  margin: 0 auto;
}

.projets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

/* ---- Carte projet ---- */
.projet-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.projet-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.4);
}

/* Illustration */
.projet-illustration {
  height: 180px;
  background: linear-gradient(
    135deg,
    hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.15),
    hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.05)
  );
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--primary);
  position: relative;
  overflow: hidden;
}

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

/* Contenu */
.projet-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.75rem;
}

.projet-content h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--text-main);
  margin: 0;
}

.projet-content h2::after {
  display: none;
}

.projet-content p {
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

/* Tags technos */
.projet-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.projet-tag {
  background: hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.1);
  color: var(--primary);
  border: 1px solid hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.3);
  border-radius: 100px;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ---- Section vide (WIP) ---- */
.projets-wip {
  padding: 10rem 1.5rem;
  background: var(--bg-soft);
  text-align: center;
  flex: 1;
}

.projets-wip-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.projets-wip h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.projets-wip h2::after {
  margin: 0.5rem auto 0;
}

.projets-wip p {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .projets-grid {
    grid-template-columns: 1fr;
  }

  .projets-hero {
    padding: 5rem 1.25rem 2.5rem;
  }
}
