.expertises-hub-page,
.crapules-expertise-page {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: clip;
}

.expertises-hub-page,
.crapules-expertise-page {
  overflow: visible;
}

.expertises-hub-page > .e-con-inner,
.crapules-expertise-page > .e-con-inner {
  display: contents;
}

.expertises-breadcrumb {
  width: min(1160px, calc(100% - 96px));
  margin: 0 auto;
  padding-top: 76px;
}

.expertises-breadcrumb .elementor-heading-title {
  line-height: 1.3;
}

.ce-hub-intro {
  position: relative;
  box-sizing: border-box;
  width: min(1160px, calc(100% - 96px));
  min-height: 760px;
  margin: 0 auto;
  padding: 0 0 40px;
  color: var(--ce-text);
  isolation: isolate;
}

.ce-hub-intro::before {
  position: absolute;
  z-index: -1;
  top: -36px;
  right: calc(50% - 50vw);
  bottom: auto;
  left: calc(50% - 50vw);
  height: 101.25vw;
  background-image: var(--ce-pattern);
  background-position: center 30px;
  background-repeat: no-repeat;
  background-size: 150vw auto;
  content: "";
  pointer-events: none;
}

.ce-hub-intro__title {
  max-width: 1070px;
  margin: 0;
  color: var(--ce-title);
  font-size: 80px;
  line-height: 1.075;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ce-hub-intro__title span {
  display: block;
}

.ce-hub-intro__title em {
  color: var(--ce-highlight);
  font-style: normal;
}

.ce-hub-intro__copy {
  width: min(620px, 100%);
  margin: 48px 0 0;
  color: var(--ce-text);
  font-size: 25px;
  line-height: 1.08;
  letter-spacing: 0;
}

.ce-hub-intro__section-title {
  width: min(650px, 100%);
  margin: 104px 0 0;
  color: var(--ce-title);
  font-size: 72px;
  line-height: .98;
  letter-spacing: 0;
}

.ce-directory {
  width: min(1160px, calc(100% - 96px));
  margin: 0 auto 100px;
  color: var(--ce-text);
}

.ce-directory__filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  margin-bottom: 124px;
}

.ce-directory__filter {
  appearance: none;
  margin: 0;
  min-height: 38px;
  padding: 7px 16px;
  border-width: 1px;
  border-style: solid;
  border-color: var(--ce-filter-border);
  background-color: var(--ce-filter-bg);
  color: var(--ce-text);
  cursor: pointer;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.ce-directory__filter:hover,
.ce-directory__filter:focus-visible {
  border-color: var(--ce-filter-hover-border) !important;
  background-color: var(--ce-filter-hover-bg) !important;
  color: var(--ce-filter-hover-text) !important;
  transform: translateY(-2px);
}

.ce-directory__filter.is-active {
  border-color: var(--ce-filter-active-border);
  background-color: var(--ce-filter-active-bg);
  color: var(--ce-active);
}

.ce-directory__filter:focus-visible {
  outline-width: 2px;
  outline-style: solid;
  outline-offset: 3px;
}

.ce-directory__group {
  margin-bottom: 112px;
}

.ce-directory__group[hidden] {
  display: none;
}

.ce-directory__group-title {
  margin: 0 0 40px 12px;
  color: var(--ce-category);
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ce-directory__grid,
.ce-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 38px 28px;
}

.ce-card {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  border-radius: 25px;
  color: var(--ce-card-title);
  text-decoration: none;
  transform: translateZ(0);
}

.ce-card:hover,
.ce-card:focus-visible {
  color: var(--ce-card-title);
  text-decoration: none;
}

.ce-card:focus-visible {
  outline: 2px solid var(--ce-active, var(--ce-title));
  outline-offset: 4px;
}

.ce-card__chrome {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  background: var(--ce-chrome);
  padding-left: 14px;
}

.ce-card__chrome i {
  display: block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ce-dot-one);
}

.ce-card__chrome i + i {
  background: var(--ce-dot-two);
}

.ce-card__visual {
  position: relative;
  display: block;
  aspect-ratio: 365 / 233;
  overflow: hidden;
}

.ce-card__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms cubic-bezier(.2,.7,.2,1);
}

.ce-card:hover .ce-card__visual img,
.ce-card:focus-visible .ce-card__visual img {
  transform: scale(1.035);
}

.ce-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 34%, var(--ce-card-overlay));
}

.ce-card__title {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  color: var(--ce-card-title);
  font-size: 25px;
  line-height: 1.02;
  letter-spacing: 0;
  text-transform: uppercase;
}

.expertises-formations-section {
  position: relative;
  min-height: 505px;
  overflow: hidden;
  padding: 0 !important;
}

.expertises-formations-section > .e-con-inner {
  display: contents;
}

.expertises-formations-pattern {
  position: absolute !important;
  left: -46px;
  bottom: -92px;
  width: min(760px, 62vw) !important;
  max-width: none !important;
  aspect-ratio: 685.464 / 594;
  opacity: 1;
  pointer-events: none;
}

.expertises-formations-pattern .elementor-widget-container,
.expertises-formations-pattern img {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
}

.expertises-formations-content {
  position: relative;
  z-index: 2;
  display: grid !important;
  grid-template-columns: minmax(0, 600px) minmax(320px, 390px);
  gap: 80px !important;
  align-content: center;
  align-items: start;
  justify-content: space-between;
  width: min(1070px, calc(100% - 80px));
  min-height: 505px;
  margin: 0 auto;
  padding: 72px 0 58px !important;
}

.expertises-formations-copy {
  width: 100%;
  max-width: 390px;
}

.expertises-formations-button {
  width: 100% !important;
  max-width: 100%;
}

.expertises-formations-button .elementor-button {
  width: 100%;
  justify-content: center;
}

.ce-detail-hero {
  box-sizing: border-box;
  width: min(1174px, calc(100% - 106px));
  margin: 0 auto;
  padding: 74px 0 72px;
  color: var(--ce-text);
}

.ce-detail-hero__breadcrumb {
  margin: 0 0 46px;
  color: var(--ce-text);
  font-size: 18px;
}

.ce-detail-hero__breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.ce-detail-hero__title {
  width: min(850px, 100%);
  margin: 0;
  color: var(--ce-title);
  font-size: 80px;
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ce-detail-hero__title span,
.ce-detail-hero__title em {
  display: block;
}

.ce-detail-hero__title em {
  color: var(--ce-highlight);
  font-style: normal;
}

.ce-detail-hero__intro {
  width: min(760px, 100%);
  margin: 48px 0 0;
  color: var(--ce-text);
  font-size: 25px;
  line-height: 1.12;
}

.ce-outline-button {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  margin-top: 54px;
  border: 1px solid var(--ce-button);
  border-radius: 5px;
  color: var(--ce-button);
  font-size: 18px;
  line-height: 1;
  padding: 12px 30px;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease;
}

.ce-outline-button:hover,
.ce-outline-button:focus-visible {
  border-color: var(--ce-button-hover-border);
  background: var(--ce-button-hover-bg);
  color: var(--ce-button-hover-text);
  text-decoration: none;
  transform: translateY(-2px);
}

.ce-arrow {
  display: inline-block;
  flex: 0 0 16px;
  width: 16px;
  height: 17px;
  background-color: currentColor;
  -webkit-mask-image: url("/wp-content/uploads/crapules-expertises/visuals/arrow.svg");
  mask-image: url("/wp-content/uploads/crapules-expertises/visuals/arrow.svg");
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.ce-arrow--down {
  transform: rotate(90deg);
}

.ce-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 86px;
  align-items: start;
  width: min(1160px, calc(100% - 96px));
  margin: 0 auto;
  color: var(--ce-text);
}

.ce-story__image {
  position: sticky;
  top: 110px;
  align-self: start;
  width: 100%;
  aspect-ratio: .95;
  overflow: hidden;
}

.ce-story__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ce-story__content {
  padding: 62px 0;
}

.ce-story__heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 30px;
  border-bottom: 1px solid var(--ce-line);
  color: var(--ce-title);
  font-size: 22px;
  line-height: 1.2;
  padding-bottom: 6px;
  text-transform: uppercase;
}

.ce-story__body,
.ce-story__panel {
  color: var(--ce-text);
  font-size: 17px;
  line-height: 1.18;
}

.ce-story__body p:first-child,
.ce-story__panel p:first-child {
  margin-top: 0;
}

.ce-story__accordions {
  margin-top: 0;
}

.ce-story__heading--toggle {
  display: block;
  margin: 0;
  border: 0;
  padding: 0;
}

.ce-story__item + .ce-story__item {
  margin-top: 18px;
}

.ce-story__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--ce-line);
  border-radius: 0;
  background: transparent;
  color: var(--ce-title);
  cursor: pointer;
  font-size: 22px;
  line-height: 1.2;
  padding: 8px 0;
  text-align: left;
  text-transform: uppercase;
}

.ce-story__toggle > :first-child {
  min-width: 0;
  white-space: normal;
}

.ce-story__toggle > .ce-arrow {
  transition: transform 220ms ease;
}

.ce-story__toggle[aria-expanded="true"] > .ce-arrow {
  transform: rotate(0deg);
}

.ce-story .ce-story__toggle:hover,
.ce-story .ce-story__toggle:focus,
.ce-story .ce-story__toggle:focus-visible {
  background: transparent;
  color: var(--ce-title);
}

.ce-story__panel {
  box-sizing: border-box;
  padding: 20px 0 8px;
}

.ce-story__panel.is-animating {
  overflow: hidden;
  will-change: height, opacity, transform;
}

.ce-story__panel h3 {
  margin: 28px 0 10px;
  font-size: 16px;
  line-height: 1.2;
}

.ce-story__panel h3:first-child {
  margin-top: 0;
}

.ce-story__panel ul {
  margin: 18px 0;
  padding-left: 22px;
}

.ce-related {
  width: min(1160px, calc(100% - 96px));
  margin: 0 auto;
  padding: 116px 0 74px;
}

.ce-projects {
  box-sizing: border-box;
  width: auto;
  margin: 0 0 0 max(48px, calc((100vw - 1160px) / 2));
  padding: 116px 0 74px;
  overflow: visible;
}

/* The contextual projects widget deliberately uses the shared home carousel. */
.ce-projects-shared {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 116px 0 74px;
  overflow: visible;
}

.ce-projects-shared__title {
  width: min(1174px, calc(100vw - 96px));
  margin: 0 auto;
  color: var(--ce-title);
  font-size: 72px;
  line-height: 1;
  letter-spacing: 0;
}

.ce-projects__title,
.ce-related__title {
  margin: 0 0 54px;
  color: var(--ce-title);
  font-size: 72px;
  line-height: 1;
  letter-spacing: 0;
}

.ce-projects__track {
  display: grid;
  grid-auto-columns: min(560px, 78vw);
  grid-auto-flow: column;
  gap: 34px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 0 max(48px, calc((100vw - 1160px) / 2)) 18px 0;
  scroll-snap-type: inline mandatory;
  scrollbar-width: thin;
}

.ce-project-card {
  position: relative;
  display: block;
  aspect-ratio: 1.43;
  overflow: hidden;
  border-radius: 25px;
  color: var(--ce-card-title);
  scroll-snap-align: start;
  text-decoration: none;
}

.ce-project-card img,
.ce-project-card video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ce-project-card__overlay {
  position: absolute;
  inset: 0;
  background: var(--ce-card-overlay);
}

.ce-project-card__content {
  position: absolute;
  right: 48px;
  bottom: 40px;
  left: 48px;
}

.ce-project-card__title {
  display: block;
  color: var(--ce-card-title);
  font-size: 32px;
  line-height: 1.05;
  text-transform: uppercase;
}

.ce-project-card__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 14px;
  margin-top: 22px;
}

.ce-project-card__tags span {
  flex: 0 1 auto;
  max-width: 100%;
  overflow: visible;
  border-radius: 999px;
  background: var(--ce-tag-bg);
  color: var(--ce-tag-text);
  font-size: 14px;
  line-height: 1.1;
  padding: 8px 14px;
  text-align: center;
  text-overflow: clip;
  overflow-wrap: anywhere;
  white-space: normal;
}

.ce-projects__hint {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin: 22px 0 0;
  color: var(--ce-project-arrow, #FFB9F2);
  font-size: 20px;
  text-align: left;
  text-decoration: none;
}

.ce-projects__hint-arrow {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  background-color: currentColor;
  -webkit-mask: url('/wp-content/uploads/crapules-global/buttons/button-arrow-feu.svg') center / contain no-repeat;
  mask: url('/wp-content/uploads/crapules-global/buttons/button-arrow-feu.svg') center / contain no-repeat;
  transition: transform 260ms cubic-bezier(.2, .7, .2, 1);
}

.ce-projects__hint:hover .ce-projects__hint-arrow,
.ce-projects__hint:focus-visible .ce-projects__hint-arrow {
  transform: translate(4px, 4px) rotate(45deg);
}

.ce-related {
  padding-top: 56px;
  padding-bottom: 122px;
}

.ce-related__grid {
  --ce-active: var(--ce-title);
}

.expertises-formations-button .elementor-button::after {
  display: none !important;
  content: none;
}

@media (max-width: 1024px) {
  .ce-detail-hero {
    width: calc(100% - 96px);
  }
}

@media (max-width: 900px) {
  .expertises-breadcrumb {
    width: calc(100% - 40px);
    padding-top: 36px;
  }

  .ce-hub-intro {
    width: calc(100% - 40px);
    min-height: 0;
    padding: 24px 0 16px;
  }

  .ce-hub-intro::before {
    top: 20px;
    right: calc(50% - 50vw);
    bottom: auto;
    left: calc(50% - 50vw);
    height: max(101.25vw, 830px);
    background-position: center 48px;
    background-size: max(150vw, 1230px) auto;
  }

  .ce-hub-intro__title {
    font-size: clamp(43px, 13vw, 62px);
    line-height: .98;
  }

  .ce-hub-intro__copy {
    width: min(310px, 100%);
    margin-top: 24px;
    font-size: 18px;
    line-height: 1.16;
  }

  .ce-hub-intro__section-title {
    margin-top: 56px;
    font-size: 46px;
  }

  .ce-directory {
    width: calc(100% - 40px);
    margin-top: 18px;
    margin-bottom: 64px;
  }

  .ce-directory__filters {
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 60px;
    padding: 6px 0 10px;
  }

  .ce-directory__filter {
    min-height: 34px;
    padding: 7px 12px;
    white-space: normal;
  }

  .ce-directory__group {
    margin-bottom: 72px;
  }

  .ce-directory__group-title {
    margin: 0 4px 24px;
    font-size: 27px;
  }

  .ce-directory__grid,
  .ce-related__grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .ce-card {
    border-radius: 18px;
  }

  .ce-card__chrome {
    height: 28px;
  }

  .ce-card__title {
    right: 18px;
    bottom: 18px;
    left: 18px;
    font-size: 22px;
  }

  .expertises-formations-section {
    min-height: 520px;
  }

  .expertises-formations-pattern {
    left: -148px;
    bottom: -12px;
    width: 540px !important;
  }

  .expertises-formations-content {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 44px !important;
    width: calc(100% - 40px);
    min-height: 520px;
    padding: 54px 0 42px !important;
  }

  .expertises-formations-copy {
    align-self: flex-end;
    width: min(230px, 70%);
  }

  .ce-detail-hero {
    width: calc(100% - 48px);
    padding: 42px 0 56px;
  }

  .ce-detail-hero__breadcrumb {
    margin-bottom: 34px;
    font-size: 15px;
  }

  .ce-detail-hero__title {
    max-width: 100%;
    font-size: clamp(29px, 10vw, 44px);
    line-height: 1.08;
    overflow-wrap: normal;
    word-break: normal;
  }

  .ce-detail-hero__intro {
    margin-top: 36px;
    font-size: 19px;
  }

  .ce-outline-button {
    margin-top: 38px;
    font-size: 15px;
    padding: 11px 20px;
  }

  .ce-story {
    grid-template-columns: 1fr;
    gap: 0;
    width: calc(100% - 40px);
  }

  .ce-story__image {
    position: relative;
    top: auto;
    min-height: 0;
    aspect-ratio: 1.08;
  }

  .ce-story__content {
    padding: 40px 0 54px;
  }

  .ce-story__heading,
  .ce-story__toggle {
    font-size: 18px;
  }

  .ce-related {
    width: calc(100% - 40px);
    padding: 72px 0 48px;
  }

  .ce-projects {
    width: auto;
    margin-left: 20px;
    padding: 72px 0 48px;
  }

  .ce-projects-shared {
    padding: 72px 0 48px;
  }

  .ce-projects-shared__title {
    width: calc(100vw - 40px);
    font-size: 46px;
  }

  .ce-projects__title,
  .ce-related__title {
    margin-bottom: 34px;
    font-size: 46px;
  }

  .ce-projects__track {
    grid-auto-columns: 88vw;
    gap: 20px;
    padding-right: 20px;
  }

  .ce-project-card__content {
    right: 22px;
    bottom: 24px;
    left: 22px;
  }

  .ce-project-card__title {
    font-size: 25px;
  }

  .ce-project-card__tags {
    gap: 7px;
    margin-top: 14px;
  }

  .ce-project-card__tags span {
    font-size: 11px;
    padding: 7px 8px;
  }

  .ce-projects__hint {
    font-size: 16px;
  }

  .ce-related {
    padding-top: 34px;
    padding-bottom: 80px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ce-card__visual img,
  .ce-outline-button,
  .ce-story__toggle > .ce-arrow {
    transition: none;
  }

  .ce-story__panel {
    scroll-behavior: auto;
  }
}
