/* ── PORTFOLIO ARCHITECTURE ── */
.portfolio-hero {
  padding: 160px 48px 48px;
  max-width: 900px;
}
.hero-tag {
  font-family: var(--mono);
  color: var(--orange);
  font-size: 12px;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.hero-h1 {
  font-family: var(--display);
  font-size: clamp(48px, 6vw, 80px);
  line-height: 0.9;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.6;
}

.portfolio-grid-section {
  padding: 0 48px 120px;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

/* ── DISPOSITION DES CARTES ── */
.portfolio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}
.portfolio-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 92, 0, 0.3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.featured-project {
  grid-column: span 2;
  background: linear-gradient(145deg, var(--surface) 0%, #151515 100%);
  border-color: rgba(255, 92, 0, 0.15);
}

/* Conteneurs internes fixes pour éviter les décalages */
.card-body-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* Icônes */
.project-icon {
  margin: 16px 0 20px;
  width: 48px;
  height: 48px;
  background: rgba(255, 92, 0, 0.05);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Badges */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.project-badge {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  padding: 4px 10px;
  letter-spacing: 0.5px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.project-badge.success { background: rgba(12, 206, 107, 0.08); color: #0cce6b; }
.project-badge.warning { background: rgba(255, 140, 66, 0.08); color: #ff8c42; }

.project-time-record, .project-delivery, .project-meta-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.project-title {
  font-family: var(--display);
  font-size: 30px;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  color: var(--blanc);
}
.project-desc {
  font-size: 14px;
  color: #a0aec0;
  line-height: 1.6;
  margin-bottom: 24px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.project-tech span {
  font-family: var(--mono);
  font-size: 11px;
  background: var(--surface2);
  color: var(--muted);
  padding: 3px 8px;
  border-radius: 3px;
}

.project-link {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--orange);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}
.project-link:hover {
  color: var(--orange2);
  transform: translateX(3px);
}

/* ── PROGRESSION & WORK IN PROGRESS ── */
.wip-status-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.wip-status-bar {
  flex-grow: 1;
  height: 4px;
  background: var(--surface2);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.wip-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--orange2));
  border-radius: 2px;
  position: relative;
}
/* Animation Shimmer sur la barre de progression en cours */
.wip-progress::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: barShimmer 1.8s infinite linear;
}
@keyframes barShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.wip-percentage {
  font-family: var(--mono);
  font-size: 11px;
  color: #ff8c42;
}

/* Point pulsant du badge En Cours */
.pulse-dot {
  width: 6px;
  height: 6px;
  background: #ff8c42;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 140, 66, 0.7);
  animation: badgePulse 1.6s infinite cubic-bezier(0.66, 0, 0, 1);
}
@keyframes badgePulse {
  to { box-shadow: 0 0 0 8px rgba(255, 140, 66, 0); }
}

/* ── ANIMATIONS DES ICONES SVG (WIP) ── */

/* 1. Rouages en rotation */
.anim-gear svg {
  animation: gearSpin 8s infinite linear;
}
@keyframes gearSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 2. Lignes de code en mouvement vertical */
.anim-code svg path {
  animation: codeMove 2s infinite ease-in-out;
}
@keyframes codeMove {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(-1px); opacity: 0.7; }
}

/* 3. Pulsation radar / Panier transactionnel */
.anim-pulse svg {
  animation: iconPulse 2s infinite ease-in-out;
}
@keyframes iconPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0px rgba(255,92,0,0)); }
  50% { transform: scale(1.05); filter: drop-shadow(0 0 4px rgba(255,92,0,0.3)); }
}

/* ── RESPONSIVE MESH ── */
@media (max-width: 900px) {
  .portfolio-hero { padding: 120px 24px 32px; }
  .portfolio-grid-section { padding: 0 24px 80px; }
  .featured-project { grid-column: span 1; }
  .portfolio-grid { grid-template-columns: 1fr; }
}