/* Test layout: one continuous project list without category tabs. */
.projets.site-wrapper {
  max-width: none;
  width: min(100vw - 16px, 1760px);
  margin-right: 0;
  margin-left: 50%;
  transform: translateX(-50%);
  overflow: visible;
  isolation: isolate;
}

.projets .tabs {
  width: 100%;
  overflow: visible !important;
}

.project-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin: 0 auto 28px;
}

.project-filter-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  color: #e94e50;
  filter: drop-shadow(0 0 10px rgba(233, 78, 80, 0.35));
}

.project-filter-icon svg {
  width: 58px;
  height: 58px;
  fill: currentColor;
}

.project-filter-chip {
  min-width: 0;
  border: 1px solid #e94e50;
  border-radius: 999px;
  padding: 9px 18px;
  background: transparent;
  color: #e94e50;
  font-family: Droid Sans, Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.project-filter-chip.is-active {
  background: #e94e50;
  color: #202238;
  box-shadow: 0 0 18px rgba(233, 78, 80, 0.45);
}

.project-filter-chip:hover,
.project-filter-chip:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(233, 78, 80, 0.35);
  outline: none;
}

.projets .project-card-hidden {
  display: none !important;
}

.projets .tabs-menu,
.projets .w-tab-menu {
  display: none !important;
}

.projets .w-tab-content {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 40px;
  width: 100%;
  overflow: visible !important;
  isolation: isolate;
}

.projets .w-tab-pane,
.projets .w-tab-pane.w--tab-active {
  position: static !important;
  display: contents !important;
  opacity: 1 !important;
  transform: none !important;
}

.projets .w-tab-pane > a {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: none;
  color: inherit;
  text-decoration: none;
  overflow: visible !important;
}

.projets .w-tab-pane > a:hover,
.projets .w-tab-pane > a:focus-visible {
  z-index: 100;
}

.projets .w-tab-pane > link {
  display: none;
}

.projets .div-block-9,
.projets .div-block-11,
.projets .code-embed-5,
.projets .video-container {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  overflow: visible !important;
}

.projets .video-container {
  display: block;
  padding: 0 !important;
}

.projets .custom-video {
  transform: scale(1);
  transform-origin: center center;
  transition: filter 0.35s ease, transform 0.35s ease;
  will-change: filter, transform;
}

.projets .video-card {
  position: relative;
  width: 100% !important;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden !important;
  transform-origin: center center;
  will-change: transform, box-shadow;
  background: #0d0f18;
}

.projets .video-card::after {
  position: absolute;
  right: -1px;
  bottom: -1px;
  left: -1px;
  z-index: 1;
  height: 12px;
  background: #202238;
  border-bottom-right-radius: 8px;
  border-bottom-left-radius: 8px;
  content: "";
  pointer-events: none;
}

.projets .w-tab-pane > a:hover .video-card,
.projets .video-card:hover,
.projets .w-tab-pane > a:focus-visible .video-card {
  z-index: 2;
  transform: translateY(-4px) scale(1.055);
  box-shadow: 0 0 20px rgba(218, 86, 102, 0.8);
}

.projets .video-overlay {
  top: auto !important;
  right: -1px !important;
  bottom: -1px !important;
  left: -1px !important;
  width: auto !important;
  height: auto !important;
  min-height: 82px;
  max-height: 82px;
  padding: 16px 18px 14px !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  overflow: visible;
  opacity: 1 !important;
  text-align: left !important;
  background: linear-gradient(180deg, rgba(32, 34, 56, 0.68), rgba(32, 34, 56, 1)) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.18);
  backdrop-filter: blur(14px) saturate(1.18);
  border-bottom-right-radius: inherit;
  border-bottom-left-radius: inherit;
  border-top: 2px solid rgba(233, 78, 80, 0.7);
  box-shadow: 0 -16px 30px rgba(32, 34, 56, 0.52);
  pointer-events: none !important;
  transition: max-height 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
  z-index: 2;
}

.projets .w-tab-pane > a:hover .video-overlay,
.projets .video-card:hover .video-overlay,
.projets .w-tab-pane > a:focus-visible .video-overlay {
  max-height: 100%;
  opacity: 1 !important;
  background: linear-gradient(180deg, rgba(32, 34, 56, 0.76), rgba(32, 34, 56, 1)) !important;
  box-shadow: 0 -24px 46px rgba(32, 34, 56, 0.64);
}

.projets .w-tab-pane > a:hover .custom-video,
.projets .video-card:hover .custom-video,
.projets .w-tab-pane > a:focus-visible .custom-video {
  filter: brightness(0.7) !important;
  transform: scale(1.025);
}

.projets .video-title {
  width: 100%;
  margin: 0 0 3px !important;
  color: #e94e50;
  font-size: clamp(18px, 1.55vw, 24px);
  line-height: 1.05;
  letter-spacing: 0;
}

.projets .project-card-date {
  width: 100%;
  margin: 0 0 14px;
  color: #dcdef8;
  font-size: clamp(12px, 0.95vw, 14px);
  font-weight: 700;
  line-height: 1.1;
  text-transform: lowercase;
}

.projets .video-role {
  width: 100%;
  margin-bottom: 8px;
  color: #a1a4c4;
  font-size: clamp(12px, 0.95vw, 14px);
  line-height: 1.15;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.projets .video-desc {
  display: -webkit-box;
  max-width: 100%;
  margin: 0 0 12px;
  overflow: hidden;
  color: #dcdef8;
  font-size: clamp(12px, 0.95vw, 14px);
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease 0.03s, transform 0.25s ease 0.03s;
}

.projets .video-meta {
  width: 100%;
  gap: 8px;
  justify-content: flex-start;
  font-size: clamp(11px, 0.95vw, 13px);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease 0.06s, transform 0.25s ease 0.06s;
}

.projets .w-tab-pane > a:hover .video-role,
.projets .w-tab-pane > a:hover .video-desc,
.projets .w-tab-pane > a:hover .video-meta,
.projets .video-card:hover .video-role,
.projets .video-card:hover .video-desc,
.projets .video-card:hover .video-meta,
.projets .w-tab-pane > a:focus-visible .video-role,
.projets .w-tab-pane > a:focus-visible .video-desc,
.projets .w-tab-pane > a:focus-visible .video-meta {
  opacity: 1;
  transform: translateY(0);
}

.projets .video-icon-bottom-right {
  display: none !important;
}

.projets .video-icon-bottom-left {
  position: absolute !important;
  right: 16px !important;
  top: -47px !important;
  bottom: auto !important;
  left: auto !important;
  z-index: 3;
  width: 94px;
  height: 94px;
  opacity: 0.92;
  pointer-events: none;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
  transform: translateY(0);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.projets .w-tab-pane > a:hover .video-icon-bottom-left,
.projets .video-card:hover .video-icon-bottom-left,
.projets .w-tab-pane > a:focus-visible .video-icon-bottom-left {
  opacity: 1;
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .projets .w-tab-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
}

@media (max-width: 620px) {
  .projets.site-wrapper {
    width: min(100% - 24px, 1180px);
    margin-right: auto;
    margin-left: auto;
    transform: none;
  }

  .projets .w-tab-content {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .projets .video-overlay {
    min-height: 78px;
    max-height: 78px;
    padding: 15px 16px 13px !important;
  }

  .projets .w-tab-pane > a:hover .video-overlay,
  .projets .video-card:hover .video-overlay,
  .projets .w-tab-pane > a:focus-visible .video-overlay {
    max-height: 100%;
  }

  .projets .video-title {
    font-size: 21px;
  }

  .projets .project-card-date {
    font-size: 13px;
  }

  .projets .video-role {
    margin-bottom: 8px;
    font-size: 14px;
  }

  .projets .video-desc {
    font-size: 13px;
  }

  .projets .video-meta {
    gap: 8px;
    font-size: 13px;
  }

  .projets .video-icon-bottom-right {
    display: none !important;
  }

  .projets .video-icon-bottom-left {
    right: 14px !important;
    top: -41px !important;
    bottom: auto !important;
    width: 82px;
    height: 82px;
  }

  .projets .w-tab-pane > a:hover .video-icon-bottom-left,
  .projets .video-card:hover .video-icon-bottom-left,
  .projets .w-tab-pane > a:focus-visible .video-icon-bottom-left {
    transform: translateY(-2px);
  }
}
