/* Portfolio Page Styles - Ultra-visuel avec patterns hybrides */

/* Hero Portfolio - Identique à About */
.portfolio-hero {
  position: relative;
  height: 75vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.portfolio-hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.portfolio-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

.portfolio-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, rgba(32,32,32,0.3) 50%, rgba(32,32,32,0.7) 100%);
  z-index: 2;
}

.portfolio-hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #ffffff;
}

.portfolio-hero-marker {
  margin-bottom: 2rem;
}

.portfolio-hero-marker span {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  color: #202020;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.portfolio-hero-title {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  margin: 0;
}

/* Filtres - Pills lisibles */
.portfolio-filters {
  padding: 2rem 0;
  margin-top: -1rem;
}

.portfolio-filters-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.portfolio-filter {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.portfolio-filter:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.portfolio-filter.active,
.portfolio-filter[data-active="true"] {
  background: #ffffff;
  color: #202020;
  border-color: #ffffff;
}

/* Container responsive */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
}

/* Grille simple - ZÉRO TROU - tous les éléments identiques */
.portfolio-grid-section {
  padding: 3rem 0;
}

.portfolio-mosaic-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .portfolio-mosaic-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .portfolio-mosaic-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tous les items - même taille carrée */
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  width: 100%;
  aspect-ratio: 1 / 1;
}

/* Carte projet - Composant réutilisable */
.portfolio-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.portfolio-card:hover {
  transform: scale(1.02);
  box-shadow: 0 32px 64px -12px rgba(0, 0, 0, 0.35);
}

.portfolio-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Badge vidéo */
.video-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.video-badge i {
  font-size: 2rem;
  color: #202020;
  margin-left: 5px;
}

.portfolio-card:hover .video-badge {
  transform: translate(-50%, -50%) scale(1.15);
  background: #ffffff;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.portfolio-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(32,32,32,0.7));
  padding: 2rem 1.5rem 1.5rem;
  color: #ffffff;
}

.portfolio-card-number {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(45deg, #c0c0c0, #ffffff, #c0c0c0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 0.5rem;
}

.portfolio-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.portfolio-card-link {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.portfolio-card:hover .portfolio-card-link {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-card-link span {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Lightbox */
.portfolio-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(32, 32, 32, 0.9);
  cursor: pointer;
}

.portfolio-lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 80vh;
  z-index: 10;
}

.portfolio-lightbox-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0.5rem;
}

.portfolio-lightbox-close {
  position: absolute;
  top: -3rem;
  right: 0;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
}

.portfolio-lightbox-prev,
.portfolio-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid #ffffff;
  color: #ffffff;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.portfolio-lightbox-prev {
  left: -4rem;
}

.portfolio-lightbox-next {
  right: -4rem;
}

.portfolio-lightbox-prev:hover,
.portfolio-lightbox-next:hover {
  background: #ffffff;
  color: #202020;
}

/* Focus visible pour accessibilité */
.portfolio-filter:focus-visible,
.portfolio-card:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .portfolio-hero {
    height: 60vh;
  }
  
  .portfolio-hero-title {
    font-size: clamp(2rem, 6vw, 4rem);
  }
  
  .portfolio-feature-grid {
    gap: 1rem;
  }
  
  .portfolio-feature .portfolio-card {
    height: 280px;
  }
  
  .portfolio-fullbleed .portfolio-card {
    height: 240px;
  }
  
  .portfolio-lightbox-prev,
  .portfolio-lightbox-next {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.25rem;
  }
  
  .portfolio-lightbox-prev {
    left: -3rem;
  }
  
  .portfolio-lightbox-next {
    right: -3rem;
  }
}

/* Animations réduites */
@media (prefers-reduced-motion: reduce) {
  .portfolio-card,
  .portfolio-card-link,
  .portfolio-filter {
    transition: none;
    transform: none;
    animation: none;
  }
}
