@font-face {
  font-family: "Prad";
  src: url("../fonts/Prad-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
:root {
  --cp-grey: #4b4c53;
  --cp-white: #fffef7;
  --cp-gold: #dbad55;
  --cp-font-prad: 'Prad', sans-serif;
  --cp-font-open: 'Open Sans', sans-serif;
  --cp-font-body: 'Be Vietnam Pro', sans-serif;
  --cp-icon-contrast: var(--cp-grey);
}

.cp-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 56px;
  font-family: var(--cp-font-open);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}
@media (hover: hover) {
  .cp-button:hover {
    box-shadow: rgba(0, 0, 0, 0.15) 0 0 0 1000px inset;
  }
}
.cp-button--m {
  height: 40px;
  font-size: 14px;
}
.cp-button.cp-button--dark {
  background-color: var(--cp-white);
  color: var(--cp-grey);
}
.cp-button.cp-button--light {
  background-color: var(--cp-grey);
  color: var(--cp-white);
}
@media (max-width: 640px) {
  .cp-button {
    font-size: 14px;
    height: 40px;
  }
}

:is(body.post-type-archive-projet, body.single-projet) {
  background-color: var(--cp-grey);
}
:is(body.post-type-archive-projet, body.single-projet) #page-container,
:is(body.post-type-archive-projet, body.single-projet) #et-main-area {
  background-color: var(--cp-grey);
}

html.cp-locked,
html.cp-locked body {
  overflow: hidden;
}

.cp-main {
  background-color: var(--cp-grey);
  color: var(--cp-white);
  font-family: var(--cp-font-body);
  font-size: 16px;
  line-height: normal;
  -webkit-font-smoothing: antialiased;
}

.cp-modal {
  font-family: var(--cp-font-body);
  font-size: 16px;
  line-height: normal;
}

:is(.cp-projects, .cp-grid, .cp-modal, .cp-single) :where(*, *::before, *::after) {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:is(.cp-projects, .cp-grid, .cp-modal, .cp-single) :where(h1, h2, h3, h4, legend, label, p, a, span, button, strong, em) {
  color: inherit;
}

:is(.cp-projects, .cp-grid, .cp-modal, .cp-single) :where(ul) {
  list-style: none;
}
:is(.cp-projects, .cp-grid, .cp-modal, .cp-single) :where(img) {
  max-width: 100%;
}
:is(.cp-projects, .cp-grid, .cp-modal, .cp-single) :where(button) {
  font: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: inherit;
}
:is(.cp-projects, .cp-grid, .cp-modal, .cp-single) :where(fieldset) {
  border: 0;
  min-width: 0;
}
:is(.cp-projects, .cp-grid, .cp-modal, .cp-single) :where(h1, h2, h3, legend) {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}
:is(.cp-projects, .cp-grid, .cp-modal, .cp-single) :where([hidden]) {
  display: none !important;
}

:is(body.post-type-archive-projet, body.single-projet) #main-header,
:is(body.post-type-archive-projet, body.single-projet) #main-header.et-fixed-header {
  background-color: var(--cp-grey) !important;
  box-shadow: none !important;
}
:is(body.post-type-archive-projet, body.single-projet) #main-header #top-menu > li > a,
:is(body.post-type-archive-projet, body.single-projet) #main-header.et-fixed-header #top-menu > li > a {
  color: var(--cp-white) !important;
}
:is(body.post-type-archive-projet, body.single-projet) #main-header #et-top-navigation .mobile_menu_bar::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' fill='none'%3E%3Cpath fill='%23FFFEF7' d='M15.5 7h9v6h-9zM15.5 17h9v6h-9zM15.5 27h9v6h-9z'/%3E%3C/svg%3E");
}

.cp-strip {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (max-width: 800px) {
  .cp-strip {
    display: none;
  }
}
.cp-strip__item {
  display: block;
  width: 20px;
  height: 14px;
}
.cp-strip__item span {
  width: 100%;
  height: 100%;
  border: 1px solid var(--cp-gold);
  background-color: var(--cp-grey);
  color: var(--cp-white);
  font-family: var(--cp-font-prad);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding-bottom: 0.236em;
  transition: all 0.3s ease;
}
.cp-strip__item.is-active span {
  background-color: var(--cp-gold);
  color: var(--cp-grey);
  transform: translateX(-10px);
}
@media (hover: hover) {
  .cp-strip__item:hover span {
    background-color: var(--cp-gold);
    color: var(--cp-grey);
    transform: translateX(-10px);
  }
}

.cp-single {
  position: relative;
  width: 100%;
  padding: 40px 120px;
  background-color: var(--cp-grey);
  color: var(--cp-white);
}
@media (max-width: 1280px) {
  .cp-single {
    padding: 40px 80px;
  }
}
@media (max-width: 1024px) {
  .cp-single {
    padding: 40px 20px;
  }
}
@media (max-width: 640px) {
  .cp-single {
    padding: 8px 16px 40px;
  }
}
.cp-single__block {
  max-width: 1920px;
  width: 100%;
  height: calc(100vh - 155px);
  min-height: calc(100vh - 155px);
  margin: 0 auto;
}
.cp-single__block.is-expanded {
  height: auto;
}
@media (max-width: 1024px) {
  .cp-single__block {
    height: auto;
  }
  .cp-single__block .cp-strip {
    display: none;
  }
}
@media (max-width: 640px) {
  .cp-single__block {
    min-height: calc(100vh - 122px);
  }
}
.cp-single__content {
  display: flex;
  gap: 20px;
  height: 100%;
  min-height: 0;
}
@media (max-width: 1024px) {
  .cp-single__content {
    flex-direction: column;
    gap: 40px;
  }
}
@media (max-width: 640px) {
  .cp-single__content {
    gap: 24px;
  }
}
.cp-single__info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex-shrink: 0;
  max-width: 350px;
  min-width: min-content;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.cp-single__info::-webkit-scrollbar {
  width: 6px;
}
.cp-single__info::-webkit-scrollbar-thumb {
  background: #b7b7b5;
  border-radius: 3px;
}
@media (max-width: 1920px) {
  .cp-single__info {
    max-width: 260px;
  }
}
@media (max-width: 1280px) {
  .cp-single__info {
    max-width: 176px;
  }
}
@media (max-width: 1024px) {
  .cp-single__info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 100%;
    height: auto;
    min-height: auto;
    overflow-y: visible;
  }
}
@media (max-width: 640px) {
  .cp-single__info {
    display: block;
  }
}
.cp-single__intro {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (max-width: 1024px) {
  .cp-single__intro {
    gap: 16px;
  }
}
.cp-single__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 1280px) {
  .cp-single__header {
    gap: 8px;
  }
}
@media (max-width: 1024px) {
  .cp-single__header {
    gap: 16px;
  }
}
@media (max-width: 640px) {
  .cp-single__header {
    margin-bottom: 8px;
  }
}
.cp-single__numero {
  flex-shrink: 0;
  width: 60px;
  height: 42px;
  background-color: var(--cp-gold);
  color: var(--cp-grey);
  font-family: var(--cp-font-prad);
  font-size: 43px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding-bottom: 0.236em;
}
.cp-single__icons {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cp-single__icons svg {
  display: block;
  width: 40px;
  height: 40px;
}
@media (max-width: 1280px) {
  .cp-single__icons {
    gap: 0;
  }
}
@media (max-width: 1024px) {
  .cp-single__icons {
    gap: 8px;
  }
}
.cp-single__title {
  color: var(--cp-white);
  font-family: var(--cp-font-prad);
  font-size: 40px;
  font-weight: 400;
  line-height: 48px;
  text-transform: uppercase;
}
@media (max-width: 1280px) {
  .cp-single__title {
    font-size: 30px;
    line-height: 100%;
  }
}
@media (max-width: 1024px) {
  .cp-single__title {
    font-size: 40px;
  }
}
@media (max-width: 640px) {
  .cp-single__title {
    font-size: 36px;
  }
}
.cp-single__country {
  margin-top: 12px;
  font-size: 18px;
  font-weight: 300;
  line-height: 24px;
  text-transform: uppercase;
}
.cp-single__country > span + span {
  margin-left: 8px;
  font-size: 14px;
  line-height: 20px;
  text-transform: none;
}
@media (max-width: 1280px) {
  .cp-single__country {
    font-size: 16px;
  }
  .cp-single__country > span + span {
    font-size: 12px;
  }
}
@media (max-width: 1024px) {
  .cp-single__country {
    margin-top: 8px;
    font-size: 15px;
  }
}
@media (max-width: 640px) {
  .cp-single__country {
    margin-top: 4px;
    font-size: 16px;
  }
}
.cp-single__excerpt {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}
@media (max-width: 1280px) {
  .cp-single__excerpt {
    font-size: 14px;
    line-height: 20px;
  }
}
@media (max-width: 1024px) {
  .cp-single__excerpt {
    font-size: 16px;
    line-height: 24px;
  }
}
.cp-single__tags {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 300;
  line-height: 20px;
}
@media (max-width: 1280px) {
  .cp-single__tags {
    font-size: 12px;
    line-height: 18px;
  }
}
@media (max-width: 1024px) {
  .cp-single__tags {
    font-size: 14px;
    line-height: 20px;
  }
}
.cp-single__right {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  min-width: 0;
}
@media (max-width: 1024px) {
  .cp-single__right {
    height: 100%;
    gap: 24px;
  }
}
.cp-single__images {
  display: flex;
  gap: 20px;
  height: 100%;
  min-height: 0;
  max-height: 816px;
}
@media (max-width: 1280px) {
  .cp-single__images {
    max-height: 542px;
  }
}
@media (max-width: 1024px) {
  .cp-single__images {
    flex-direction: column;
    height: auto !important;
    max-height: none;
  }
}
.cp-single__main {
  width: 100%;
  min-width: 0;
  height: 100%;
}
.cp-single__main > .cp-caption {
  display: none;
  margin: 0 0 8px;
}
@media (max-width: 1024px) {
  .cp-single__main > .cp-caption {
    display: grid;
  }
}
.cp-single__below {
  display: flex;
  flex-direction: column;
  gap: 48px;
  width: calc(100% - 370px);
}
@media (max-width: 1920px) {
  .cp-single__below {
    width: calc(100% - 280px);
  }
}
@media (max-width: 1280px) {
  .cp-single__below {
    width: calc(100% - 190px);
  }
}
@media (max-width: 1024px) {
  .cp-single__below {
    display: none;
  }
}
@media (max-width: 640px) {
  .cp-single__below {
    display: flex;
    gap: 24px;
    width: 100%;
  }
  .cp-single__below > .cp-caption {
    display: none;
  }
}
.cp-single__images:not(:has(.cp-thumbs)) + .cp-single__below {
  width: 100%;
}
.cp-single__desc {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: 48px;
}
@media (max-width: 1024px) {
  .cp-single__desc {
    margin-top: 0;
  }
}
.cp-single__desc-text {
  font-size: 18px;
  font-weight: 300;
  line-height: 26px;
  opacity: 0.7;
}
.cp-single__desc-text p + p {
  margin-top: 26px;
}
.cp-single__block:not(.is-expanded) .cp-single__desc-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 640px) {
  .cp-single__desc-text {
    font-size: 16px;
    line-height: 24px;
  }
}
.cp-single__block--text .cp-single__desc {
  margin-top: 0;
}
.cp-single__block--text .cp-single__desc-text {
  display: block !important;
  overflow: visible !important;
}
.cp-single__more {
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 26px;
}
@media (max-width: 640px) {
  .cp-single__more {
    font-size: 16px;
    line-height: 24px;
  }
}

.cp-fiche {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (max-width: 1024px) {
  .cp-fiche {
    gap: 10px;
  }
}
@media (max-width: 640px) {
  .cp-fiche {
    display: none;
    gap: 8px;
  }
}
.cp-fiche--mobile {
  display: none;
}
@media (max-width: 640px) {
  .cp-fiche--mobile {
    display: flex;
  }
}
.cp-fiche__item {
  display: flex;
  flex-direction: column;
}
@media (max-width: 1024px) {
  .cp-fiche__item {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
}
.cp-fiche__label {
  font-size: 12px;
  font-weight: 300;
  line-height: 20px;
  text-transform: uppercase;
  opacity: 0.7;
}
@media (max-width: 1024px) {
  .cp-fiche__label {
    font-size: 10px;
    line-height: 18px;
  }
}
.cp-fiche__value {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}
@media (max-width: 1280px) {
  .cp-fiche__value {
    font-size: 14px;
    line-height: 20px;
  }
}
@media (max-width: 1024px) {
  .cp-fiche__value {
    max-width: 290px;
    text-align: right;
  }
}

.cp-caption {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  flex-shrink: 0;
}
.cp-caption__side {
  visibility: hidden;
  font-size: 12px;
  font-weight: 300;
  line-height: 20px;
  text-transform: uppercase;
  opacity: 0.7;
}
.cp-caption__side:last-child {
  text-align: end;
}
.has-before > .cp-caption__side {
  visibility: visible;
}
@media (max-width: 640px) {
  .cp-caption__side {
    font-size: 8px;
    line-height: 16px;
  }
}
.cp-caption__title {
  font-size: 16px;
  line-height: 24px;
  text-align: center;
}
@media (max-width: 640px) {
  .cp-caption__title {
    font-size: 12px;
    line-height: 16px;
  }
}

.cp-ba {
  --cp-pos: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  container-type: size;
}
.cp-ba.has-before {
  cursor: col-resize;
  touch-action: none;
  user-select: none;
}
@media (max-width: 1024px) {
  .cp-ba {
    height: 738px;
  }
}
@media (max-width: 640px) {
  .cp-ba {
    height: 445px;
  }
}
@media (max-width: 450px) {
  .cp-ba {
    height: 360px;
  }
}
.cp-ba__frame {
  position: relative;
  aspect-ratio: var(--cp-ratio);
  width: min(100cqw, 100cqh * var(--cp-ratio));
}
.cp-ba__frame img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cp-ba__before {
  clip-path: inset(0 calc(100% - var(--cp-pos)) 0 0);
}
.cp-ba__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--cp-pos);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  pointer-events: none;
}
.cp-ba__line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #fff;
}
.cp-ba__handle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 44px;
  height: 24px;
}
.cp-ba__handle svg {
  display: block;
}

.cp-thumbs {
  position: relative;
  flex-shrink: 0;
  max-width: 350px;
  width: 100%;
  height: 100%;
  max-height: 816px;
  overflow: hidden;
}
@media (max-width: 1920px) {
  .cp-thumbs {
    max-width: 260px;
  }
}
@media (max-width: 1280px) {
  .cp-thumbs {
    max-width: 170px;
  }
}
@media (max-width: 1024px) {
  .cp-thumbs {
    max-width: 100%;
    height: auto;
  }
}
.cp-thumbs__swiper {
  width: 100%;
  height: 100%;
}
.cp-thumbs__swiper .swiper-wrapper {
  height: auto;
}
.cp-thumbs__item {
  display: block;
  height: auto !important;
  cursor: pointer;
}
.cp-thumbs__item img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 258px;
  object-fit: cover;
  opacity: 0.3;
  transition: opacity 0.2s ease;
}
@media (max-width: 1920px) {
  .cp-thumbs__item img {
    max-height: 189px;
  }
}
@media (max-width: 1280px) {
  .cp-thumbs__item img {
    max-height: 120px;
  }
}
@media (max-width: 1024px) {
  .cp-thumbs__item img {
    max-height: 150px;
  }
}
@media (max-width: 640px) {
  .cp-thumbs__item img {
    height: 100%;
    max-height: 100px;
  }
}
.cp-thumbs__item.is-active {
  cursor: default;
}
.cp-thumbs__item.is-active img {
  opacity: 1;
}
@media (max-width: 1024px) {
  .cp-thumbs__item {
    width: 229px !important;
  }
}
@media (max-width: 640px) {
  .cp-thumbs__item {
    width: 137px !important;
  }
}
.cp-thumbs__arrow {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 40px;
  background-color: var(--cp-white);
  color: var(--cp-grey);
  cursor: pointer;
}
.cp-thumbs__arrow--prev {
  top: 0;
  bottom: auto;
}
.cp-thumbs__arrow--prev svg {
  transform: rotate(180deg);
}
@media (max-width: 1024px) {
  .cp-thumbs__arrow {
    top: 0;
    right: 0;
    left: auto;
    width: 40px;
    height: 100%;
  }
  .cp-thumbs__arrow svg {
    transform: rotate(-90deg);
  }
  .cp-thumbs__arrow--prev {
    right: auto;
    left: 0;
  }
  .cp-thumbs__arrow--prev svg {
    transform: rotate(90deg);
  }
}
