/* ===========================
   HERO PORTFOLIO
   =========================== */
.port-hero {
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 4rem 4rem;
  background: var(--anthracite);
  position: relative;
  overflow: hidden;
}

.port-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 60%, rgba(201,169,110,0.06) 0%, transparent 65%);
  pointer-events: none;
}

.port-hero-titre {
  font-family: var(--font-titre);
  font-size: clamp(4rem, 8vw, 8rem);
  font-weight: 300;
  font-style: italic;
  color: var(--blanc);
  line-height: 1;
  margin: 1rem 0;
}

.port-hero-ligne {
  width: 60px;
  height: 0.5px;
  background: var(--or);
  margin: 1.5rem auto;
}

.port-hero-sous {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--gris-texte);
  font-weight: 300;
}

/* ===========================
   FILTRES
   =========================== */
.port-filtres {
  display: flex;
  justify-content: center;
  gap: 0;
  background: var(--noir);
  padding: 2rem 4rem;
  border-bottom: 0.5px solid rgba(201,169,110,0.1);
}

.port-filtre {
  background: none;
  border: none;
  border-bottom: 0.5px solid rgba(255,255,255,0.08);
  padding: 0.75rem 2.5rem;
  font-family: var(--font-texte);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gris-texte);
  cursor: pointer;
  transition: all 0.3s ease;
}

.port-filtre:hover {
  color: var(--or);
  border-bottom-color: rgba(201,169,110,0.3);
}

.port-filtre.actif {
  color: var(--or);
  border-bottom: 0.5px solid var(--or);
}

/* ===========================
   GRILLE
   =========================== */
.port-grille-section {
  padding: 5rem 4rem 8rem;
  background: var(--noir);
  min-height: 60vh;
}

.port-grille {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(201,169,110,0.08);
}

.port-carte {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  text-decoration: none;
  display: block;
  cursor: pointer;
  background: var(--gris-fonce);
}

.port-carte-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.port-carte:hover .port-carte-img {
  transform: scale(1.04);
}

.port-carte-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #1e1e1e, #2a2a2a);
}

.port-carte-placeholder span {
  font-family: var(--font-titre);
  font-style: italic;
  color: rgba(201,169,110,0.2);
  font-size: 0.85rem;
}

.port-carte-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  transition: background 0.4s ease;
}

.port-carte:hover .port-carte-overlay {
  background: rgba(0,0,0,0.6);
}

.port-carte-titre {
  font-family: var(--font-titre);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--blanc);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
  display: block;
}

.port-carte-cat {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--or);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease 0.05s;
  display: block;
  margin-top: 0.25rem;
}

.port-carte:hover .port-carte-titre,
.port-carte:hover .port-carte-cat {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   LOADING
   =========================== */
.port-loading {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 6rem 0;
}

.port-loading-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--or);
  animation: dotPulse 1.2s ease infinite;
}

.port-loading-dot:nth-child(2) { animation-delay: 0.2s; }
.port-loading-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotPulse {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1); }
}

.port-vide {
  text-align: center;
  color: var(--gris-texte);
  font-size: 0.85rem;
  padding: 6rem 0;
  font-weight: 300;
  font-style: italic;
  font-family: var(--font-titre);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
  .port-grille {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .port-hero {
    padding: 7rem 1.5rem 3rem;
  }

  .port-filtres {
    padding: 1.5rem;
    gap: 0;
  }

  .port-filtre {
    padding: 0.75rem 1.5rem;
    font-size: 0.6rem;
  }

  .port-grille-section {
    padding: 3rem 1.5rem 5rem;
  }

  .port-grille {
    grid-template-columns: 1fr 1fr;
  }
}