body.ng-work-page {
  overflow-x: hidden;
}

body.ng-work-page,
body.ng-work-page * {
  cursor: url('../images/cursor%20icons/Cursor.png') 1 1, auto;
}

body.ng-work-page img,
body.ng-work-page video {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}

body.ng-work-page a,
body.ng-work-page button,
body.ng-work-page [role="button"],
body.ng-work-page input,
body.ng-work-page select,
body.ng-work-page textarea,
body.ng-work-page .ng-ps-control,
body.ng-work-page .ng-ps-tab {
  cursor: url('../images/cursor%20icons/Cursor%20survol.png') 1 1, pointer;
}

#work-page-template {
  min-height: calc(100vh - 120px);
  padding: 10px 10px 12px;
  background: #0042be url('../images/windowsXPBG.jpeg') center center / cover no-repeat;
  color: #0b2f5c;
  font-family: Tahoma, Verdana, sans-serif;
}

#work-page-template * {
  box-sizing: border-box;
}

.ng-ps-window {
  width: 100%;
  height: calc(100vh - 150px);
  border: 1px solid #003091;
  border-radius: 3px 3px 0 0;
  background: #ece9d8;
  display: grid;
  grid-template-rows: 24px 24px 26px 1fr 20px;
  overflow: hidden;
}

.ng-ps-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 0 6px;
  border-bottom: 1px solid #17428c;
  background: linear-gradient(180deg, #2188ff 0%, #0f6de4 45%, #0452c8 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 11px;
  line-height: 1;
}

.ng-ps-title-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ng-ps-app-icon {
  width: 14px;
  height: 14px;
  border: 1px solid #0d4eb7;
  border-radius: 2px;
  background: linear-gradient(180deg, #f2f8ff, #80b3ff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0845a4;
  font-size: 7px;
  font-weight: 700;
}

.ng-ps-window-controls {
  display: flex;
  height: 100%;
}

.ng-ps-control {
  width: 22px;
  border-left: 1px solid rgba(16, 69, 147, 0.75);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(180deg, #63aaff, #1f72eb);
}

.ng-ps-close {
  color: #fff;
  background: linear-gradient(180deg, #ff8a8a, #d91e1e);
}

.ng-ps-menu {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 5px;
  border-bottom: 1px solid #b8b39f;
  background: #ece9d8;
}

.ng-ps-btn {
  border: 0;
  background: transparent;
  color: #1a1a1a;
  font-size: 11px;
  font-weight: 400;
  border-radius: 0;
  padding: 3px 6px;
  cursor: pointer;
  line-height: 1;
}

.ng-ps-btn:hover {
  background: #316ac5;
  color: #fff;
}

.ng-ps-btn:active {
  background: #2b5da9;
  color: #fff;
}

.ng-ps-options {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 5px;
  border-bottom: 1px solid #b5b099;
  background: linear-gradient(180deg, #f2efe2, #ddd8c2);
  font-size: 10px;
  color: #3d3b34;
}

.ng-ps-options-label {
  padding: 0 2px;
}

.ng-ps-options-input {
  display: inline-flex;
  align-items: center;
  min-width: 40px;
  height: 15px;
  border: 1px solid #a6a187;
  background: #f7f6ef;
  padding: 0 4px;
  color: #565244;
}

.ng-ps-options-input.ng-wide {
  min-width: 66px;
}

.ng-ps-layout {
  display: grid;
  grid-template-columns: 44px 1fr 205px;
  min-height: 0;
}

.ng-ps-toolbar {
  border-right: 1px solid #a8a28a;
  background: #ece9d8;
  padding: 5px 3px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ng-ps-tool-grid {
  display: grid;
  grid-template-columns: repeat(2, 18px);
  gap: 3px;
  justify-content: center;
}

.ng-ps-tool {
  width: 18px;
  height: 18px;
  border: 1px solid #9a957f;
  background: #f3f1e6;
  padding: 1px;
  line-height: 0;
  cursor: pointer;
}

.ng-ps-tool-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: auto;
}

.ng-ps-tool:hover {
  border-color: #356dbc;
  background: #ffffff;
}

.ng-ps-swatches {
  position: relative;
  width: 30px;
  height: 28px;
  margin: 8px auto 2px;
}

.ng-ps-swatch {
  position: absolute;
  width: 17px;
  height: 17px;
  border: 1px solid #6f6a57;
}

.ng-ps-swatch-fg {
  background: #000;
  top: 0;
  left: 0;
  z-index: 2;
}

.ng-ps-swatch-bg {
  background: #fff;
  right: 0;
  bottom: 0;
}

.ng-ps-canvas-area {
  padding: 0;
  background: #808080;
  min-width: 0;
  min-height: 0;
}

.ng-ps-canvas-scroll {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  background: #808080;
  scrollbar-color: #2f67b0 #dce8f7;
  scrollbar-width: thin;
}

.ng-ps-canvas-scroll::-webkit-scrollbar {
  width: 12px;
}

.ng-ps-canvas-scroll::-webkit-scrollbar-track {
  background: #dce8f7;
}

.ng-ps-canvas-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #8fb9e9, #3e7cc8);
  border: 1px solid #2f67b0;
}

.ng-ps-doc-window {
  width: min(92%, 980px);
  margin: 16px auto;
  border: 1px solid #2a66b3;
  background: #d8d8d8;
}

.ng-ps-doc-title {
  height: 19px;
  display: flex;
  align-items: center;
  padding: 0 6px;
  font-size: 10px;
  color: #fff;
  background: linear-gradient(180deg, #4da1ff, #0f68df 52%, #0b57c4);
  border-bottom: 1px solid #10428f;
}

.ng-ps-doc-body {
  padding: 10px;
}

.ng-ps-artboard {
  width: 100%;
  min-height: 1600px;
  margin: 0;
  background: #ffffff;
  border: 1px solid #9a9a9a;
  position: relative;
  overflow: hidden;
}

.ng-ps-artboard::before {
  content: '';
  position: absolute;
  inset: -60%;
  background: url('../images/PNGpattern.jpeg') center top / auto 420px repeat;
  transform: rotate(90deg);
  transform-origin: center;
  opacity: 0.32;
  pointer-events: none;
}

.ng-work-artboard-content {
  position: relative;
  z-index: 1;
  padding: 24px 42px 50px;
}

.ng-work-title-image {
  display: block;
  margin: 0 auto 16px;
  width: min(680px, 92%);
  height: auto;
}

.ng-work-section {
  border: 1px dashed #6f86a8;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: 420px;
}

.ng-work-section::before {
  content: '';
  position: absolute;
  inset: -4px;
  pointer-events: none;
  background:
    linear-gradient(#9fc3f0, #9fc3f0) left top / 7px 7px no-repeat,
    linear-gradient(#9fc3f0, #9fc3f0) right top / 7px 7px no-repeat,
    linear-gradient(#9fc3f0, #9fc3f0) left bottom / 7px 7px no-repeat,
    linear-gradient(#9fc3f0, #9fc3f0) right bottom / 7px 7px no-repeat;
}

.ng-work-section-title {
  margin: 0;
  padding: 7px 10px;
  border-bottom: 1px dashed #6f86a8;
  background: transparent;
  font-size: 12px;
  color: #264f86;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ng-work-team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
}

.ng-work-member-card {
  border: 1px dashed #7a95b9;
  background: rgba(255, 255, 255, 0.06);
  padding: 8px;
  text-align: center;
  color: #244d7f;
}

.ng-image-stack {
  display: block;
  position: relative;
  overflow: hidden;
}

.ng-image-main,
.ng-image-hover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ng-image-hover {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.45s ease;
  will-change: opacity;
}

.ng-image-main {
  position: relative;
  z-index: 1;
}

.ng-work-member-card img {
  border: 1px solid #888;
  margin-bottom: 0;
  cursor: pointer !important;
}

.ng-work-member-card .ng-image-stack {
  aspect-ratio: 4 / 5;
  margin-bottom: 6px;
}

.ng-work-member-card:hover .ng-image-hover,
.ng-work-member-card:focus-visible .ng-image-hover,
.ng-work-project-card:hover .ng-image-hover,
.ng-work-project-card:focus-visible .ng-image-hover {
  opacity: 1;
}

.ng-work-project-card:hover .ng-image-main,
.ng-work-project-card:focus-visible .ng-image-main {
  opacity: 1;
}

.ng-work-member-card span {
  display: block;
  font-size: 11px;
  margin-bottom: 2px;
}

.ng-work-member-card small {
  display: block;
  font-size: 10px;
  color: #315b8d;
}

.ng-work-partner-card {
  padding: 12px;
}

.ng-work-partner-role {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 10px;
  text-transform: uppercase;
  color: #225487;
  border: 1px solid #8db1da;
  background: #e7f1fe;
  padding: 3px 6px;
}

.ng-work-partner-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px dashed #7a95b9;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 10px;
  text-decoration: none;
  color: #264f86;
}

.ng-work-partner-favicon {
  width: 16px;
  height: 16px;
}

.ng-work-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 0;
}

.ng-work-project-card {
  border: 0;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.ng-work-project-card img {
  transition: opacity 0.5s ease;
}

.ng-work-project-card .ng-image-stack {
  aspect-ratio: 16 / 10;
}

.ng-work-project-card .ng-image-main,
.ng-work-project-card .ng-image-hover {
  transition: opacity 0.45s ease;
}

.ng-work-project-card .ng-image-main {
  z-index: 1;
}

.ng-work-project-card .ng-image-hover {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.ng-work-project-card::before,
.ng-member-work-item::before {
  content: none;
}

.ng-work-project-card::after,
.ng-member-work-item::after {
  content: none;
}

.ng-project-hover-meta {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  text-align: left;
  padding: 12px;
  color: #ffffff;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.ng-work-project-card:hover .ng-project-hover-meta,
.ng-member-work-item:hover .ng-project-hover-meta,
.ng-work-project-card:focus-visible .ng-project-hover-meta,
.ng-member-work-item:focus-visible .ng-project-hover-meta {
  opacity: 1;
}

.ng-project-hover-meta h3,
.ng-project-hover-meta p {
  margin: 0;
}

.ng-project-hover-meta h3 {
  font-size: 14px;
  margin-bottom: 4px;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.7);
}

.ng-project-hover-meta p {
  font-size: 11px;
  max-width: 90%;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.65);
}

.ng-member-overlay {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 100000;
}

.ng-member-overlay.is-open {
  display: block;
}

.ng-member-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 23, 71, 0.62);
}

.ng-member-overlay-window {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(94vw, calc(92vh * 16 / 9));
  height: min(92vh, calc(94vw * 9 / 16));
  transform: translate(-50%, -50%);
  border: 1px solid #003091;
  background: #ece9d8;
  display: grid;
  grid-template-rows: 24px 1fr;
}

.ng-member-overlay-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 0 8px;
  border-bottom: 1px solid #17428c;
  background: linear-gradient(180deg, #2188ff 0%, #0f6de4 45%, #0452c8 100%);
  color: #fff;
}

.ng-project-overlay-title-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ng-project-titlebar-back {
  width: 18px;
  height: 18px;
  border: 1px solid #b89811;
  background: linear-gradient(180deg, #ffe98d, #ffc91b);
  color: #5f4500;
  font-size: 13px;
  line-height: 1;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ng-project-titlebar-back.is-hidden {
  display: none;
}

.ng-member-overlay-titlebar h3 {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
}

.ng-member-overlay-close {
  width: 24px;
  height: 100%;
  border: 0;
  border-left: 1px solid rgba(16, 69, 147, 0.75);
  color: #fff;
  background: linear-gradient(180deg, #ff8a8a, #d91e1e);
  font-size: 11px;
}

.ng-member-overlay-content {
  padding: 12px;
  background: #808080;
  overflow: auto;
}

.ng-member-overlay-content.is-rich {
  padding: 0;
}

.ng-member-sheet {
  min-height: 100%;
  border: 1px solid #9a9a9a;
  background: #fff;
  padding: 18px;
}

.ng-member-sheet h4 {
  margin: 0 0 12px;
  font-size: 18px;
  color: #2f2f2f;
}

.ng-member-sheet.is-rich {
  border: 0;
  padding: 0;
}

.ng-member-sheet.is-cv-only {
  min-height: auto;
  background: #fff;
}

.ng-member-intro-image {
  width: 100%;
  display: block;
}

.ng-member-intro-video {
  width: 100%;
  display: block;
  background: #fff;
}

.ng-alpha-motion-video {
  background: #fff;
}

.ng-member-sheet-body {
  padding: 18px;
}

.ng-member-work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.ng-member-work-item {
  border: 0;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.ng-member-work-item .ng-image-stack {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.ng-member-work-item .ng-image-main,
.ng-member-work-item .ng-image-hover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ng-member-work-item .ng-image-main {
  position: relative;
  z-index: 1;
}

.ng-member-work-item .ng-image-hover {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.ng-member-work-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
  transition: opacity 0.5s ease;
}

.ng-member-work-item:hover .ng-image-hover,
.ng-member-work-item:focus-visible .ng-image-hover {
  opacity: 1;
}

.ng-project-overlay {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 100010;
}

.ng-project-overlay.is-open {
  display: block;
}

.ng-project-overlay-content {
  background: #ffffff;
  padding: 0;
  overflow-y: auto;
}

.ng-project-overlay-content.is-alchimie {
  padding: 0;
}

.ng-project-sheet {
  min-height: 100%;
  background: #ffffff;
  padding: 16px;
}

.ng-project-sheet.ng-project-sheet-alchimie {
  padding: 0;
  min-height: auto;
}

.ng-project-sheet.ng-project-sheet-alchimie img {
  margin: 0;
}

.ng-project-sheet.ng-project-sheet-fullbleed {
  padding: 0;
  min-height: auto;
}

.ng-project-full-stack img {
  width: 100%;
  display: block;
  margin: 0;
}

.ng-project-full-stack video {
  width: 100%;
  display: block;
  margin: 0;
  background: #fff;
}

.ng-reveal-item {
  opacity: 0;
  transform: translateY(56px);
  transition: opacity 0.5s ease, transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ng-reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ng-project-spaced-stack {
  display: grid;
  gap: 96px;
  padding: 56px 0;
}

.ng-project-sheet .ng-project-spaced-stack img {
  width: min(56%, 700px);
  display: block;
  margin: 0 auto;
}

.ng-bloom-carousel {
  overflow-x: auto;
  overflow-y: hidden;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  height: clamp(300px, 44vh, 520px);
  padding: 0;
  cursor: grab;
  scrollbar-width: none;
  touch-action: pan-y;
}

.ng-bloom-carousel::-webkit-scrollbar {
  display: none;
}

.ng-bloom-track {
  width: max-content;
  height: 100%;
  display: flex;
  gap: 0;
}

.ng-bloom-item {
  flex: 0 0 auto;
  width: auto;
  height: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.ng-bloom-item img,
.ng-bloom-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ng-bloom-carousel.is-dragging {
  cursor: grabbing;
}

.ng-project-back-btn {
  border: 0;
  background: transparent;
  color: #205a99;
  font-size: 30px;
  line-height: 1;
  padding: 0;
  margin: 0 0 10px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.ng-project-back-btn:hover {
  transform: scale(1.14);
  opacity: 0.88;
}

.ng-project-sheet img {
  width: 100%;
  height: auto;
  display: block;
}

.ng-project-showreel {
  width: 100%;
  height: auto;
  display: block;
}

.ng-project-description {
  margin: 10px 0 0;
  color: #111;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.45;
}

.ng-ps-panel {
  border-left: 1px solid #a8a28a;
  background: #ece9d8;
  padding: 3px 3px 0;
  display: grid;
  grid-template-rows: 120px 1fr;
  gap: 4px;
}

.ng-ps-panel-block {
  border: 1px solid #2a66b3;
  background: #f5f2e7;
}

.ng-ps-panel-head {
  min-height: 18px;
  padding: 0 3px;
  border-bottom: 1px solid #8ca3bf;
  background: linear-gradient(180deg, #f0ecd8, #d8d2bc);
  color: #2c2c2c;
  font-size: 10px;
  font-weight: 400;
  text-transform: none;
  display: flex;
  align-items: end;
  gap: 2px;
}

.ng-ps-tab {
  display: inline-flex;
  align-items: center;
  height: 15px;
  padding: 0 4px;
  border: 1px solid transparent;
}

.ng-ps-tab.is-active {
  border-color: #8ca3bf #8ca3bf #f5f2e7;
  background: #f5f2e7;
}

.ng-ps-layers {
  border-width: 1px;
}

.ng-ps-layer-list {
  list-style: none;
  margin: 0;
  padding: 4px;
  display: grid;
  gap: 2px;
}

.ng-ps-layer-item {
  display: grid;
  grid-template-columns: 10px 1fr 62px;
  align-items: center;
  gap: 4px;
  padding: 3px 4px;
  border: 1px solid #d4ceb9;
  background: #f8f6ec;
  font-size: 10px;
  color: #353535;
}

.ng-ps-layer-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ng-ps-layer-digits {
  justify-self: end;
  width: 56px;
  overflow: hidden;
  font-size: 9px;
  line-height: 1;
  color: #2f73c9;
  letter-spacing: 0.08em;
  white-space: nowrap;
  font-family: 'Courier New', monospace;
  text-align: right;
}

.ng-ps-eye {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid #7d96b8;
  background: #dcecff;
}

.ng-ps-status {
  border: 1px solid #a8c3e5;
  background: #f5f5f5;
  color: #225c94;
  font-size: 10px;
  padding: 4px 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ng-ps-color-block {
  min-height: 120px;
}

.ng-ps-color-picker {
  padding: 4px;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 6px;
  align-items: center;
}

.ng-ps-color-preview-wrap {
  position: relative;
  width: 34px;
  height: 30px;
}

.ng-ps-color-preview {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid #7c94b7;
}

.ng-ps-color-fg {
  top: 0;
  left: 0;
  z-index: 2;
  background: #000000;
}

.ng-ps-color-bg {
  top: 8px;
  left: 12px;
  background: #ffffff;
}

.ng-ps-color-sliders {
  display: grid;
  gap: 4px;
}

.ng-ps-color-line {
  display: block;
  width: 100%;
  height: 6px;
  border: 1px solid #7ea5d5;
}

.ng-ps-color-line.ng-r {
  background: linear-gradient(90deg, #fff0f0, #ff2a2a);
}

.ng-ps-color-line.ng-g {
  background: linear-gradient(90deg, #f3fff1, #24cc3d);
}

.ng-ps-color-line.ng-b {
  background: linear-gradient(90deg, #eff5ff, #247dff);
}

.ng-ps-statusbar {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 4px;
  padding: 0 4px;
  border-top: 1px solid #99927b;
  background: #ece9d8;
  font-size: 10px;
  color: #3b3932;
}

.ng-ps-statusbar span {
  border: 1px solid #bbb59f;
  background: #f4f1e2;
  padding: 1px 4px;
  min-height: 14px;
  display: inline-flex;
  align-items: center;
}

@media (max-width: 1000px) {
  #work-page-template {
    padding: 8px;
    min-height: calc(100vh - 96px);
  }

  .ng-ps-window {
    height: calc(100vh - 118px);
    grid-template-rows: 24px 24px 24px 1fr 18px;
  }

  .ng-ps-layout {
    grid-template-columns: 36px 1fr 152px;
  }

  .ng-ps-doc-window {
    width: 96%;
  }

  .ng-ps-artboard {
    min-height: 1200px;
  }

  .ng-ps-tab {
    padding: 0 2px;
    font-size: 9px;
  }

  .ng-work-artboard-content {
    padding: 16px 14px 28px;
  }

  .ng-work-team-grid,
  .ng-work-project-grid,
  .ng-member-work-grid {
    grid-template-columns: 1fr;
  }
}
