/**
 * Stylesheet - Portfolio Projets Financés
 * Design Institutionnel & Premium
 */

.inved-projects-wrapper {
  max-width: 1200px;
  margin: 30px auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #0B1220;
}

/* Barre de filtres */
.inved-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 35px;
  justify-content: center;
}

.inved-filter-btn {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 30px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.25s ease;
}

.inved-filter-btn:hover {
  border-color: #1D4ED8;
  color: #1D4ED8;
  transform: translateY(-1px);
}

.inved-filter-btn.active {
  background: #0B1220;
  border-color: #0B1220;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(11, 18, 32, 0.2);
}

/* Grille de cartes */
.inved-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 28px;
}

/* Carte Projet */
.inved-project-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(11, 18, 32, 0.05);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.inved-project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 35px -10px rgba(11, 18, 32, 0.12);
  border-color: #CBD5E1;
}

.inved-card-thumb-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  background: #0B1220;
  overflow: hidden;
}

.inved-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.inved-project-card:hover .inved-card-thumb {
  transform: scale(1.05);
}

.inved-card-badge-sector {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(6px);
  color: #D6B36A;
  border: 1px solid rgba(214, 179, 106, 0.3);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.inved-card-badge-status {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #ECFDF5;
  color: #059669;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

/* Contenu de carte */
.inved-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.inved-card-title {
  font-size: 1.22rem;
  font-weight: 700;
  color: #0B1220;
  margin: 0 0 10px 0;
  line-height: 1.35;
}

.inved-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.inved-card-title a:hover {
  color: #1D4ED8;
}

.inved-card-excerpt {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.55;
  margin: 0 0 20px 0;
  flex-grow: 1;
}

/* Barre de métriques financières */
.inved-card-metrics {
  background: #F8FAFC;
  border: 1px solid #F1F5F9;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.inved-metric-item {
  display: flex;
  flex-direction: column;
}

.inved-metric-lbl {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: #64748B;
  font-weight: 600;
}

.inved-metric-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0B1220;
}

.inved-metric-val.gold {
  color: #B4882F;
}

/* Bouton Découvrir */
.inved-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #F1F5F9;
  color: #0B1220;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.inved-card-btn:hover {
  background: #1D4ED8;
  color: #FFFFFF;
}

/* Fiche détaillée Single Project */
.inved-single-project {
  max-width: 980px;
  margin: 40px auto;
  padding: 0 20px;
  font-family: inherit;
}

.inved-single-header {
  margin-bottom: 30px;
}

.inved-single-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: #0B1220;
  margin: 12px 0;
  line-height: 1.2;
}

.inved-single-key-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 30px 0;
}

.inved-key-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 18px;
  text-align: center;
}

.inved-key-card .val {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1D4ED8;
}

.inved-key-card .lbl {
  font-size: 0.8rem;
  color: #64748B;
  margin-top: 4px;
  font-weight: 600;
}

.inved-single-section {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 25px;
}

.inved-single-section h3 {
  font-size: 1.3rem;
  color: #0B1220;
  margin-top: 0;
  margin-bottom: 14px;
  border-bottom: 2px solid #D6B36A;
  padding-bottom: 8px;
  display: inline-block;
}

@media (max-width: 768px) {
  .inved-projects-grid {
    grid-template-columns: 1fr;
  }
  .inved-single-title {
    font-size: 1.8rem;
  }
}
