/* =============================================
   CARROUSEL 3D DES CRÉATIONS
   ============================================= */
.cf-section {
  padding: 0 24px 120px;
}

.cf-filters {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 0 auto 28px;
  padding: 4px;
  width: max-content;
  max-width: 100%;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 100px;
}

.cf-filter {
  border: 0;
  background: transparent;
  padding: 9px 20px;
  border-radius: 100px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.cf-filter.active {
  background: var(--color-text);
  color: #ffffff;
}

.cf-stage {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  height: clamp(420px, 52vw, 600px);
  background: #0e0e10;
  border-radius: var(--radius-card);
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.cf-track {
  position: absolute;
  inset: 0;
}

.cf-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(220px, 30vw, 380px);
  aspect-ratio: 4 / 5;
  margin-left: calc(clamp(220px, 30vw, 380px) / -2);
  margin-top: calc(clamp(220px, 30vw, 380px) * -0.625);
  padding: 0;
  border: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #222;
  cursor: pointer;
  font-family: var(--font);
  text-align: left;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s ease, opacity 0.4s ease;
  will-change: transform;
}

.cf-card img,
.cf-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.cf-card video {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.cf-card video.is-playing {
  opacity: 1;
}

.cf-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 11px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.92);
  color: #1a1a1f;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cf-card-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 60px 20px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cf-card-caption strong {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.cf-card-caption span {
  font-size: 13px;
  opacity: 0.7;
}

.cf-card.is-center .cf-card-badge,
.cf-card.is-center .cf-card-caption {
  opacity: 1;
}

.cf-card:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 4px;
}

.cf-arrow {
  position: absolute;
  top: 50%;
  z-index: 200;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s ease;
}

.cf-arrow:hover {
  background: rgba(255, 255, 255, 0.28);
}

.cf-arrow:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.cf-arrow.prev { left: 20px; }
.cf-arrow.next { right: 20px; }

.cf-info {
  max-width: 560px;
  margin: 36px auto 0;
  text-align: center;
  min-height: 190px;
}

.cf-tag {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 10px;
}

.cf-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 12px;
}

.cf-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

.cf-video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #000;
}

.cf-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 640px) {
  .cf-stage {
    border-radius: var(--radius-card);
    height: 440px;
  }

  .cf-card {
    width: 230px;
    margin-left: -115px;
    margin-top: -144px;
  }

  .cf-arrow {
    display: none;
  }

  .cf-filter {
    padding: 8px 14px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cf-card {
    transition: opacity 0.2s ease;
  }
}

/* --- En-tête compact + gros bouton « Voir tous les projets » --- */
.cf-hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 120px 24px 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cf-hero-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.cf-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 10px 10px 26px;
  border-radius: 100px;
  background: var(--color-text);
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cf-all-btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--color-text);
  font-size: 18px;
  transition: transform 0.3s ease;
}

.cf-all-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.cf-all-btn:hover .cf-all-btn-arrow {
  transform: translateX(3px);
}

.cf-all-btn:focus-visible,
.cf-stage-all:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 3px;
}

.cf-stage-all {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 300;
  padding: 9px 16px;
  border-radius: 100px;
  background: #ffffff;
  color: #1a1a1f;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.cf-stage-all:hover {
  transform: scale(1.04);
}

.cf-info-btns {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .cf-hero {
    padding-top: 110px;
  }

  .cf-all-btn {
    width: 100%;
    justify-content: space-between;
  }
}
