/* ─────────────────────────────────────────────
   PROJETS.CSS — Marketplace projets graphiques
   Font: Arial | Koule: #000000 #CC0000 #FFFFFF
───────────────────────────────────────────── */

.projets-body {
  background: #000000;
  min-height: 100vh;
  font-family: Arial, sans-serif;
}

/* ─── HEADER ─────────────────────────────────── */
.projets-header {
  padding: 64px 24px 48px;
  text-align: center;
  background: #000000;
}

.projets-header-inner {
  max-width: 720px;
  margin: 0 auto;
}

.projets-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 4px 14px;
  border-radius: 50px;
}

.projets-title {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 16px;
  line-height: 1.25;
}

.projets-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 32px;
}

.projets-search {
  display: flex;
  gap: 0;
  max-width: 480px;
  margin: 0 auto;
}

.projets-search input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-right: none;
  border-radius: 10px 0 0 10px;
  padding: 12px 18px;
  color: #FFFFFF;
  font-size: 14px;
  font-family: Arial, sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

.projets-search input:focus {
  border-color: rgba(255,255,255,0.4);
}

.projets-search input::placeholder {
  color: rgba(255,255,255,0.3);
}

.search-btn {
  background: #FFFFFF;
  color: #000000;
  border: none;
  border-radius: 0 10px 10px 0;
  padding: 12px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background 0.2s;
}

.search-btn:hover { background: rgba(255,255,255,0.85); }

.search-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ─── FILTRES ────────────────────────────────── */
.projets-filters-section {
  padding: 0 24px 24px;
  background: #000000;
}

.projets-filters-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.filter-btn {
  background: transparent;
  color: rgba(255,255,255,0.6);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  padding: 8px 18px;
  font-size: 13px;
  font-family: Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: rgba(255,255,255,0.5);
  color: #FFFFFF;
}

.filter-btn.active {
  background: #FFFFFF;
  color: #000000;
  border-color: #FFFFFF;
}

/* ─── GRILLE PROJETS ─────────────────────────── */
.projets-main {
  padding: 32px 24px 80px;
  max-width: 1100px;
  margin: 0 auto;
}

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

/* ─── CARTE PROJET ───────────────────────────── */
.projet-card {
  background: #000000;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.projet-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  border-color: rgba(255,255,255,0.18);
}

/* Thumbnails avec gradients différents par carte */
.pr-card-thumb {
  position: relative;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pr-thumb-1 { background: linear-gradient(135deg, #000000 0%, rgba(255,255,255,0.12) 100%); }
.pr-thumb-2 { background: linear-gradient(135deg, #000000 0%, rgba(255,255,255,0.07) 100%); }
.pr-thumb-3 { background: linear-gradient(135deg, #000000 0%, rgba(255,255,255,0.05) 100%); }
.pr-thumb-4 { background: linear-gradient(135deg, #000000 0%, rgba(255,255,255,0.08) 100%); }
.pr-thumb-5 { background: linear-gradient(135deg, #000000 0%, rgba(255,255,255,0.1) 100%); }
.pr-thumb-6 { background: linear-gradient(135deg, #000000 0%, rgba(255,255,255,0.09) 100%); }

.pr-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.3px;
  backdrop-filter: blur(6px);
}

.pr-thumb-icon {
  color: rgba(255,255,255,0.2);
}

.pr-thumb-icon svg,
.pr-card-thumb i svg {
  width: 48px !important;
  height: 48px !important;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Force icon size dans le thumb */
.pr-card-thumb [data-lucide] {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Body carte */
.pr-card-body {
  padding: 20px;
}

.pr-graphiste {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.pr-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
  flex-shrink: 0;
}

.pr-graphiste-name {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
}

.pr-graphiste-role {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin-left: auto;
}

.pr-title {
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
  line-height: 1.3;
}

.pr-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pr-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.pr-formats {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.pr-format-badge {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.3px;
}

.pr-size {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  margin-left: auto;
}

.pr-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.pr-price {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  flex-shrink: 0;
}

.pr-actions {
  display: flex;
  gap: 6px;
}

.btn-pr-outline {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-pr-outline:hover {
  border-color: rgba(255,255,255,0.6);
  color: #FFFFFF;
}

.btn-pr-buy {
  background: #FFFFFF;
  color: #000000;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
  cursor: pointer;
}

.btn-pr-buy:hover {
  background: rgba(255,255,255,0.85);
}

/* Aucun résultat */
.no-results {
  text-align: center;
  padding: 80px 24px;
  color: rgba(255,255,255,0.35);
}

.no-results svg {
  width: 40px;
  height: 40px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  margin-bottom: 16px;
}

.no-results p {
  font-size: 15px;
}

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

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

  .projets-header {
    padding: 40px 16px 32px;
  }

  .filter-bar {
    gap: 6px;
  }

  .filter-btn {
    font-size: 12px;
    padding: 6px 14px;
  }

  .pr-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .pr-actions {
    width: 100%;
  }

  .btn-pr-outline,
  .btn-pr-buy {
    flex: 1;
    text-align: center;
  }
}
