/* === HERO PORTFOLIO === */
.hero-portfolio {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 0 9rem;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* === PATTERN DE FOND === */
.hero-portfolio__pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.1;
  pointer-events: none;
}

.hero-portfolio__pattern--dots {
  background-image: radial-gradient(circle, white 1px, transparent 1px);
  background-size: 30px 30px;
}

.hero-portfolio__pattern--grid {
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.1) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
}

.hero-portfolio__pattern--waves {
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='20' viewBox='0 0 100 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21.184 20c.357-.13.72-.264 1.088-.402l1.768-.661C33.64 15.347 39.647 14 50 14c10.271 0 15.362 1.222 24.629 4.928.955.383 1.869.74 2.75 1.072h6.225c-2.51-.73-5.139-1.691-8.233-2.928C65.888 13.278 60.562 12 50 12c-10.626 0-16.855 1.397-26.66 5.063l-1.767.662c-2.475.923-4.66 1.674-6.724 2.275h6.335zm0-20C13.258 2.892 8.077 4 0 4V2c5.744 0 9.951-.574 14.85-2h6.334zM77.38 0C85.239 2.966 90.502 4 100 4V2c-6.842 0-11.386-.542-16.396-2h-6.225zM0 14c8.44 0 13.718-1.21 22.272-4.402l1.768-.661C33.64 5.347 39.647 4 50 4c10.271 0 15.362 1.222 24.629 4.928C84.112 12.722 89.438 14 100 14v-2c-10.271 0-15.362-1.222-24.629-4.928C65.888 3.278 60.562 2 50 2 39.374 2 33.145 3.397 23.34 7.063l-1.767.662C13.223 10.84 8.163 12 0 12v2z' fill='white' fill-opacity='0.1'/%3E%3C/svg%3E");
  background-size: 100px 20px;
}

.hero-portfolio__pattern--circuit {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='white' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* === CONTAINER === */
.hero-portfolio__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.hero-portfolio__content {
  grid-template-columns: 1fr;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* === TEXTE === */
.hero-portfolio__text {
  animation: slideInLeft 0.8s ease-out;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-portfolio__subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
}

.hero-portfolio__subtitle::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 50px;
  height: 2px;
  background: rgba(255, 255, 255, 0.6);
}

.hero-portfolio__title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: white;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-portfolio__title-highlight {
  background: linear-gradient(45deg, #fff, #f0f8ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero-portfolio__description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2rem;
}

.hero-portfolio__description p {
  margin: 0 0 1rem 0;
}

.hero-portfolio__description p:last-child {
  margin-bottom: 0;
}

/* === SPÉCIALITÉS === */
.hero-portfolio__specialities {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-portfolio__speciality {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  white-space: nowrap;
  color: white;
}

.hero-portfolio__speciality:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.4);
}

/* === BOUTONS === */
.hero-portfolio__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  animation: fadeInUp 0.8s ease-out 0.5s both;
}

.hero-portfolio__btn {
  padding: 1rem 2.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.hero-portfolio__btn.btn--primary {
  background: white;
  color: #667eea;
  border-color: white;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.hero-portfolio__btn.btn--primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.hero-portfolio__btn.btn--primary:hover::before {
  left: 100%;
}

.hero-portfolio__btn.btn--primary:hover {
  background: transparent;
  color: white;
  border-color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.hero-portfolio__btn.btn--secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.hero-portfolio__btn.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* === STATISTIQUES === */
.hero-portfolio__stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  animation: fadeInUp 0.8s ease-out 0.7s both;
}

.hero-portfolio__stat {
  text-align: center;
}

.hero-portfolio__stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  display: block;
  margin-bottom: 0.25rem;
}

.hero-portfolio__stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* === VISUEL === */
.hero-portfolio__visual {
  animation: slideInRight 0.8s ease-out 0.2s both;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-portfolio__showcase {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.hero-portfolio__main-project {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero-portfolio__project-preview {
  width: 100%;
  height: 250px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-portfolio__project-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.hero-portfolio__project-placeholder {
  color: rgba(255, 255, 255, 0.6);
  font-size: 3rem;
}

.hero-portfolio__project-info h3 {
  color: white;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.hero-portfolio__project-info p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin: 0;
}

/* === SCROLL INDICATOR === */
.hero-portfolio__scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 45%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeInUp 1s ease-out 1s both;
  z-index: 5;
}

.scroll-mouse {
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 15px;
  position: relative;
}

.scroll-wheel {
  width: 3px;
  height: 8px;
  background: white;
  border-radius: 10px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 1.5s infinite;
}

.hero-portfolio__scroll-text {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* === ANIMATIONS === */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollWheel {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 15px);
  }
}

/* === RESPONSIVE === */
@media (max-width: 968px) {
  .hero-portfolio__content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-portfolio__visual {
    order: -1;
  }

  .hero-portfolio__subtitle::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .hero-portfolio__stats {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero-portfolio {
    padding: 5rem 0 10rem;
  }

  .hero-portfolio__container {
    padding: 0 1.5rem;
  }

  .hero-portfolio__stats {
    gap: 1.5rem;
  }

  .hero-portfolio__btn {
    padding: 0.875rem 2rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .hero-portfolio__buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-portfolio__btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    margin: 0 auto;
  }

  .hero-portfolio__stats {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-portfolio__specialities {
    justify-content: center;
  }
}

/* === ACCESSIBILITÉ === */
@media (prefers-reduced-motion: reduce) {
  .hero-portfolio__text,
  .hero-portfolio__visual,
  .hero-portfolio__specialities,
  .hero-portfolio__buttons,
  .hero-portfolio__stats,
  .hero-portfolio__scroll-indicator {
    animation: none;
  }

  .scroll-wheel {
    animation: none;
  }
}

/* === PORTFOLIO FULL GRID SECTION === */
.portfolio-full-section {
  padding: clamp(2rem, 6vw, 4rem) 0 clamp(4rem, 8vw, 6rem);
  background: linear-gradient(135deg, #fafafa 0%, #ffffff 50%, #f8fafc 100%);
  position: relative;
}

.portfolio-full__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

/* === HEADER === */
.portfolio-full__header {
  text-align: center;
  margin-bottom: clamp(2rem, 6vw, 4rem);
  max-width: 600px;
  margin-inline: auto;
}

.portfolio-full__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6366f1;
  background: rgba(99, 102, 241, 0.06);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  border: 1px solid rgba(99, 102, 241, 0.1);
  margin-bottom: 2rem;
}

.portfolio-full__title {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.1;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.02em;
}

.portfolio-full__title em {
  font-style: normal;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === FILTRES === */
.portfolio-full__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #e2e8f0;
  background: white;
  color: #64748b;
  border-radius: 25px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.filter-btn:hover,
.filter-btn.active {
  background: #6366f1;
  color: white;
  border-color: #6366f1;
  transform: translateY(-1px);
}

/* === GRID === */
.portfolio-full__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 350px), 1fr));
  gap: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 4rem;
}

/* === CARDS === */
.portfolio-full__card {
  background: white;
  border: 1px solid #f1f5f9;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeInUp 0.6s ease-out var(--delay, 0s) both;
}

.portfolio-full__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--project-color, #6366f1);
}

.portfolio-full__image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.image-link {
  display: block;
  width: 100%;
  height: 100%;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-full__card:hover .project-image {
  transform: scale(1.05);
}

.project-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  color: #64748b;
}

.placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

/* === STATUS === */
.project-status {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.375rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-completed {
  background: rgba(16, 185, 129, 0.9);
  color: white;
}

.status-ongoing {
  background: rgba(245, 158, 11, 0.9);
  color: white;
}

.status-concept {
  background: rgba(139, 92, 246, 0.9);
  color: white;
}

/* === OVERLAY === */
.portfolio-full__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.4) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  backdrop-filter: blur(2px);
}

.portfolio-full__card:hover .portfolio-full__overlay {
  opacity: 1;
}

.overlay-actions {
  display: flex;
  gap: 0.75rem;
  transform: translateY(20px);
  transition: transform 0.3s ease 0.1s;
}

.portfolio-full__card:hover .overlay-actions {
  transform: translateY(0);
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.95);
  color: #374151;
  text-decoration: none;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
}

.action-view:hover {
  background: var(--project-color, #6366f1);
  color: white;
  transform: translateY(-2px);
}

.action-demo:hover {
  background: #059669;
  color: white;
  transform: translateY(-2px);
}

/* === CONTENU === */
.portfolio-full__content {
  padding: 1.5rem;
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.project-category {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--project-color, #6366f1);
  font-size: 0.875rem;
  font-weight: 500;
}

.project-year {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 500;
}

.project-title {
  margin: 0 0 0.75rem 0;
  line-height: 1.3;
}

.project-title a {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
  transition: color 0.3s ease;
}

.project-title a:hover {
  color: var(--project-color, #6366f1);
}

.project-description {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 1rem 0;
}

.project-technologies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-badge {
  padding: 0.25rem 0.75rem;
  background: color-mix(
    in srgb,
    var(--project-color, #6366f1) 10%,
    transparent
  );
  color: var(--project-color, #6366f1);
  border: 1px solid
    color-mix(in srgb, var(--project-color, #6366f1) 20%, transparent);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* === PAGINATION === */
.portfolio-full__pagination {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.portfolio-full__pagination .page-numbers {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  background: white;
  color: #64748b;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  margin: 0 0.25rem;
}

.portfolio-full__pagination .page-numbers:hover,
.portfolio-full__pagination .page-numbers.current {
  background: #6366f1;
  color: white;
  border-color: #6366f1;
  transform: translateY(-1px);
}

/* === ÉTAT VIDE === */
.portfolio-full__empty {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.portfolio-full__empty h3 {
  font-size: 1.75rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 1rem 0;
}

.portfolio-full__empty p {
  color: #64748b;
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 0 2rem 0;
}

.empty-cta {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.empty-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* === RESPONSIVE === */
@media (max-width: 480px) {
  .hero-portfolio__scroll-indicator {
    left: 30%;
  }
}

@media (max-width: 768px) {
  .portfolio-full__grid {
    grid-template-columns: 1fr;
  }

  .project-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .portfolio-full__overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 60%);
  }

  .overlay-actions {
    transform: translateY(0);
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
  }

  .filter-btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .hero-portfolio__scroll-indicator {
    left: 37%;
  }
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-full__card {
    animation: none;
  }

  .portfolio-full__card:hover {
    transform: none;
  }
}

.portfolio-full__card.filtered-out {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
  transition: all 0.3s ease;
}

.portfolio-full__card:not(.filtered-out) {
  opacity: 1;
  transform: scale(1);
  transition: all 0.3s ease;
}
