/* ═══════════════════════════════════════
   PROJETS PAGE — Search Engine Style
   ═══════════════════════════════════════ */

/* ─── Hero ─── */
.projets-hero {
  padding: 180px 0 60px;
  position: relative;
}

.projets-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 100px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 24px 0 20px;
}

.projets-title em {
  font-style: italic;
  color: rgba(255,255,255,0.5);
}

.projets-sub {
  font-size: 16px;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  max-width: 600px;
  line-height: 1.7;
}

/* ─── Search Bar ─── */
.projets-search {
  padding: 0 0 40px;
  position: sticky;
  top: 80px;
  z-index: 100;
  background: var(--black);
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 28px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  transition: border-color 0.3s ease;
}

.search-bar:focus-within {
  border-color: var(--border-hover);
}

.search-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: rgba(255,255,255,0.3);
}

.search-bar input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
}

.search-bar input::placeholder {
  color: rgba(255,255,255,0.25);
}

.search-count {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  flex-shrink: 0;
}

/* ─── Filter Chips ─── */
.filter-bar-projets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.filter-chip {
  padding: 8px 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1px solid var(--border);
  background: transparent;
  color: rgba(255,255,255,0.5);
  cursor: none;
  transition: all 0.3s ease;
}

.filter-chip:hover {
  border-color: var(--border-hover);
  color: var(--white);
}

.filter-chip.active {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

/* ─── Grid ─── */
.projets-grid-section {
  padding: 0 0 120px;
}

.projets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.projet-card {
  position: relative;
  cursor: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.projet-card.hidden {
  display: none;
}

.projet-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--gray-900);
}

.projet-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.projet-card:hover .projet-thumb img {
  transform: scale(1.05);
}

.projet-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.projet-card:hover .projet-overlay {
  opacity: 1;
}

.projet-play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--white);
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.05);
}

.projet-info {
  padding: 16px 0;
}

.projet-cat {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 6px;
  display: block;
}

.projet-info h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ─── Empty State ─── */
.projets-empty {
  text-align: center;
  padding: 120px 0;
}

.projets-empty p {
  font-size: 18px;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .projets-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .projets-hero {
    padding: 120px 0 32px;
  }

  .projets-title {
    font-size: clamp(32px, 9vw, 48px);
  }

  .projets-sub {
    font-size: 14px;
    max-width: 100%;
  }

  .projets-search {
    top: 70px;
    padding: 0 0 24px;
  }

  .search-bar {
    padding: 12px 16px;
    gap: 10px;
  }

  .search-bar input {
    font-size: 14px;
  }

  .search-count {
    display: none;
  }

  .filter-bar-projets {
    gap: 6px;
    margin-top: 12px;
  }

  .filter-chip {
    padding: 6px 14px;
    font-size: 10px;
    letter-spacing: 1px;
  }

  .projets-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .projet-info h3 {
    font-size: 16px;
  }
}
