/* ===== Carrousel Portfolio — styles ===== */
.pf-carousel {
  --pf-bg: #0e0e10;
  --pf-panel: #17171a;
  --pf-text: #f4f4f5;
  --pf-muted: #9a9aa2;
  --pf-accent: #ff2d78;
  max-width: 1100px;
  margin: 0 auto;
  font-family: 'Times New Roman', Times, serif;
  color: var(--pf-text);
  background: var(--pf-bg);
  border-radius: var(--pf-radius);
  padding: var(--pf-gap);
  box-sizing: border-box;
}
.pf-carousel * { box-sizing: border-box; }

.pf-stage {
  position: relative;
  background: var(--pf-panel);;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
}

.pf-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.4s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}

.pf-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pf-panel);
}

.pf-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-drag: none;
}

.pf-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: background 0.2s ease, transform 0.15s ease;
  z-index: 2;
}
.pf-arrow:hover { background: rgba(0,0,0,0.7); transform: translateY(-50%) scale(1.06); }
.pf-arrow:active { transform: translateY(-50%) scale(0.94); }
.pf-arrow[disabled] { opacity: 0.25; cursor: default; }
.pf-arrow.pf-prev { left: 14px; }
.pf-arrow.pf-next { right: 14px; }

.pf-counter {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 999px;
  z-index: 2;
  backdrop-filter: blur(4px);
}

.pf-thumbs {
  display: flex;
  gap: 8px;
  margin-top: var(--pf-gap);
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--pf-accent) transparent;
}
.pf-thumbs::-webkit-scrollbar { height: 6px; }
.pf-thumbs::-webkit-scrollbar-thumb { background: #3a3a40; border-radius: 999px; }

.pf-thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  background: var(--pf-panel);
  opacity: 0.55;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.pf-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-thumb:hover { opacity: 0.85; }
.pf-thumb.pf-active { opacity: 1; border-color: var(--pf-accent); }

/* Lightbox (zoom plein écran) */
.pf-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
}
.pf-lightbox.pf-open { display: flex; }
.pf-lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: zoom-out;
}
.pf-lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 640px) {
  .pf-arrow { width: 36px; height: 36px; font-size: 16px; }
  .pf-thumb { width: 48px; height: 36px; }
}
