body,
html {
  overflow-x: unset !important;
}

.twb {
  text-wrap: balance;
}

#page {
  /* overflow-y: scroll; */
  overflow-x: hidden;
}


@media (width <= 768px) {
  ::-webkit-scrollbar {
    display: none;
  }
}

.elementor-element .pre-menu .elementor-widget-container {
  background-color: rgb(6 16 36 / 30%);

  border-bottom: 1px solid #434368;
  transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  overflow: hidden;
}
#main-nav-crain{
  position: fixed !important;
  top: 0 !important;
  transform: unset !important;
  -webkit-transform: unset !important;
  -moz-transform: unset !important;
  -ms-transform: unset !important;
  -o-transform: unset !important;
}

.crain-main-menu {
  background-color: rgb(6 16 36 / 30%);
  .main-menu {
    ul:not(.dp-menu) {
      gap: 14px;
      & > li.nav-item {
        background-color: rgb(0 0 0 / 30%);
        border-radius: 99px;
        -webkit-border-radius: 99px;
        -moz-border-radius: 99px;
        -ms-border-radius: 99px;
        -o-border-radius: 99px;

        &.white-item {
          background-color: #356bff;
          a {
            color: white;
          }
          &:hover {
            background-color: white;
            a {
              color: black;
            }
          }
        }

        & > a {
          line-height: 1;
          padding: 12px 16px !important;
          &.active {
            /* color: black !important; */
          }
        }
      }
    }
  }
  .header__others .more-actions .header--search {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: white;
    border-radius: 99px;
    height: 40px;
    width: 40px;
    button.search-icon {
      display: flex;
    }
    .info--search {
      &.visible {
        top: 50px;
        right: 0;
      }
      input {
        color: white;
        &::placeholder {
          color: white;
        }
      }
    }
  }
  .wcf--header-1 .header__inner {
    gap: 20px;
  }
}
body .crain-main-menu .elementor-widget-container .header__inner .header__logo {
  a {
    display: block;
    width: 100%;
    height: 100%;
  }
}
@media (width <= 1024px) {
  .pre-menu {
    display: none;
  }
  .crain-main-menu .header__others .more-actions {
    display: none;
  }
  body
    .crain-main-menu
    .elementor-widget-container
    .header__inner
    .header__logo
    a
    img {
    width: 100px;
    max-width: 10vw;
  }
}
.offcanvas__body {
  height: 80%;
}
.offcanvas__menu-area {
  padding: 0 30px;
  height: 100%;
  display: flex !important;
  align-items: center;
  justify-content: center;
}
.offcanvas__menu-wrapper.mean-container .mean-nav ul li a.nav-link {
  justify-content: center;
}

/* Style par defaut pour les h2 et bouttons */
.thin-title h2 {
  font-family: "pf-grand-gothik-variable", sans-serif !important;
  font-variation-settings: "wdth" 130, "wght" 400, "ital" 0 !important;
  letter-spacing: 6px;
}

.wcf__btn a {
  font-family: "pf-grand-gothik-variable", sans-serif !important;
  font-variation-settings: "wdth" 120, "wght" 200, "ital" 0 !important;
}

/* Pour scroll dans elementor  */
/* .elementor-editor-active #smooth-wrapper {
  overflow: scroll !important;
  overflow-x: hidden !important;
} */

[data-elementor-type="wp-page"] .pin-spacer:first {
  margin-top: -127px;
}

/* Scroll effect - Text appear Home */

.home .hero-scroll {
  transition: unset !important;
  -webkit-transition: unset !important;
  -moz-transition: unset !important;
  -ms-transition: unset !important;
  -o-transition: unset !important;

  .anim-reveal-line {
    display: flex !important;
    column-gap: 12px;
    flex-wrap: wrap;
    width: 70%;
    justify-content: center;
  }

  h1 {
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    font-size: 38px !important;
    z-index: 10;
    position: relative;
    width: 100%;
    font-family: "pf-grand-gothik-variable", sans-serif !important;
    font-variation-settings: "wdth" 50, "wght" 600, "ital" 0 !important;
    letter-spacing: 4px;
    text-wrap: balance;
    line-height: 1;

    .is-visible,
    .scroll-content {
      display: flex;
      justify-content: flex-start;
      flex-direction: column;
      align-items: center;
    }
    .scroll-content {
      padding-bottom: 40px;
    }
    .is-visible span {
      opacity: 1 !important;
    }

    & span {
      font-family: "pf-grand-gothik-variable", sans-serif;
      font-variation-settings: "wdth" 50, "wght" 600, "ital" 0;
      letter-spacing: 3px;
      width: max-content;
    }
  }

  &.home.elementor-widget-container::after {
    content: "";
    pointer-events: none;
    position: absolute;
    width: 200%;
    height: 100%;
    display: block;
    bottom: -3px;
    z-index: 0;
    background: rgb(0, 0, 0);
    background: linear-gradient(
      0deg,
      rgba(2, 2, 2, 1) 0%,
      rgba(2, 2, 2, 0) 30%,
      rgba(2, 2, 2, 0) 100%
    );
  }
}
.hero-scroll.hero-secondaire h1::after {
  display: none;
}

@media (max-width: 767px) {
  /* :is(.e-con,.e-con>.e-con-inner)>.elementor-background-video-container.elementor-hidden-phone {
      display: block !important;
  } */

  .home .hero-scroll {
    .anim-reveal-line {
      width: 100%;
    }
    h1 {
      font-size: 26px !important;

      span {
        font-variation-settings: "wdth" 25, "wght" 600, "ital" 0;
        letter-spacing: 1px;
      }
    }
  }
}

/* Liste a propos Home */
@media (width <= 880px) {
  .apropos {
    background-image: unset !important;
    &::after {
      pointer-events: none;
      content: "";
      background-image: url(../images/object.svg);
      background-repeat: no-repeat;
      background-position: -20% 0vh;
      background-size: 50%;
      position: absolute;
      display: block;
      z-index: -1;
      width: 100%;
      height: 200vh;
      bottom: -30vh;
      left: 0;
      rotate: 180deg;
    }
  }
}

@media (width <= 568px) {
  .apropos {
    &::after {
      pointer-events: none;
      background-position: -100% 0vh;
      background-size: 75%;
    }
  }
}
.apropos-list {
  p {
    padding-left: 2ch;
    display: flex;
    align-items: baseline;
    position: relative;
    padding-bottom: 4px;

    &::before {
      pointer-events: none;
      content: "";
      background-color: #356bff;
      width: 12px;
      height: 12px;
      inset: 12px 0 0 0;
      position: absolute;
      display: block;
    }
  }
}

/* Counter Home */
body .wcf-btn-underline::after {
  pointer-events: none;
  width: calc(100% - 54px);
  bottom: 8px;
}

body .wcf--counter .title {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  span {
    font-size: 16px;
    font-weight: 200;
    letter-spacing: 1px;
  }
}

body .wcf--counter .count {
  display: flex;
  align-items: center;
  justify-content: center;

  span.wcf--counter-number-suffix {
    align-self: flex-end;
  }
}

/* Decoration lines bleue, et vagues en Background Home*/
.blue-line {
  position: relative;
}
.blue-line::before {
  pointer-events: none;
  content: "";
  width: 40px;
  height: 3px;
  background-color: #356bff;
  position: absolute;
  bottom: -15px;
  display: block;
  left: 50%;
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  -moz-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  -o-transform: translateX(-50%);
}

.blue-line.--left::before {
  pointer-events: none;
  left: 0;
  transform: unset;
  -webkit-transform: unset;
  -moz-transform: unset;
  -ms-transform: unset;
  -o-transform: unset;
}

.chiffres-cle-vague::after {
  pointer-events: none;
  content: "";
  background-image: url(../images/vague_sous_cle.png);
  background-repeat: no-repeat;
  background-position: 100% 0vh;
  background-size: 150%;
  position: absolute;
  display: block;
  z-index: -1;
  width: 100%;
  height: 200vh;
  bottom: -100vh;
  left: 0;
}

/* Style des cards savoir faire Home */
body .savoir-card {
  transition: all 0.3s ease;
  align-items: flex-end;
  min-height: 320px;

  overflow: hidden;

  /* .elementor-widget-wcf--text {
    height: 0;
    overflow: hidden;
    transition: height 0.5s ease-in-out;
    -webkit-transition: height 0.5s ease-in-out;
    -moz-transition: height 0.5s ease-in-out;
    -ms-transition: height 0.5s ease-in-out;
    -o-transition: height 0.5s ease-in-out;
  }
  .elementor-widget-wcf--button {
    height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s ease-in-out;
    -webkit-transition: all 0.5s ease-in-out;
    -moz-transition: all 0.5s ease-in-out;
    -ms-transition: all 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
    margin-top: auto;
  } */

  .icon {
    margin-bottom: auto;
  }

  &:hover {
    background-color: #356bff;
    transition: all 0.3s ease;

    .icon svg path {
      fill: white;
      transition: all 0.3s ease;
    }

    .icon.--line svg path {
      fill: unset;
      stroke: white;
      transition: all 0.3s ease;
    }

    /* .elementor-widget-wcf--text {
      height: calc-size(auto);
    }
    .elementor-widget-wcf--button {
      opacity: 1;
      transition-delay: 0.3s;
      height: calc-size(auto);
    } */
  }
}
body .savoir-card .wcf-btn-underline::after {
  pointer-events: none;
  width: 100%;
  bottom: 0;
}
.savoir-faire-blur::after {
  content: "";
  pointer-events: none;

  background: radial-gradient(
    134.41% 134.41% at 29.45% 60.25%,
    rgba(176, 222, 255, 0.2) 8.38%,
    rgba(0, 38, 112, 0.2) 46.91%
  );
  mix-blend-mode: hard-light;
  filter: blur(265px);
  position: absolute;
  display: block;
  z-index: -1;
  width: 100%;
  height: 100vh;
  bottom: 0;
  left: 0;
}

@media (width <= 880px) {
  body .savoir-card h4 {
    margin-top: 24px;
  }
  body .savoir-card .icon {
    position: absolute;
    top: 30px;
    right: 50%;
    transform: translateX(50%);
  }
}

@media (width <= 768px) {
  body .savoir-card.elementor-element {
    .wcf__btn a {
      font-variation-settings: "wdth" 120, "wght" 400, "ital" 0 !important;
    }
    &:nth-child(odd) {
      background-color: #356bff;

      .icon svg path {
        fill: white;
        transition: all 0.3s ease;
      }

      .icon.--line svg path {
        fill: unset;
        stroke: white;
        transition: all 0.3s ease;
      }
    }
    &:nth-child(even) {
      background-color: white;
      border-color: white;
      .elementor-widget-container :is(.wcf__btn a, .wcf--text p, .wcf--title) {
        color: black;
      }
      .elementor-widget-wcf--button
        .elementor-widget-container
        a.wcf-btn-underline:after {
        background-color: black;
        pointer-events: none;
      }
      .icon svg path {
        fill: #356bff;
        transition: all 0.3s ease;
      }

      .icon.--line svg path {
        fill: unset;
        stroke: #356bff;
        transition: all 0.3s ease;
      }
    }
  }
}

/* Style du bouton simWAPS Home*/
#smooth-wrapper .btn-simwaps a {
  & svg {
    transition: all 0.3s ease-in-out;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
  }
}

#smooth-wrapper .btn-simwaps:hover a {
  background-color: white;
  border-color: white;
  transition: all 0.3s ease-in-out;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;

  & svg {
    width: 0px;
    opacity: 0;
    transition: all 0.3s ease-in-out;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
  }
}

.simwaps::after {
  pointer-events: none;
  content: "";
  background-image: url(../images/vague_sous_cle.png);
  background-repeat: no-repeat;
  background-position: 70% -10vh;
  background-size: 150%;
  position: absolute;
  display: block;
  z-index: -1;
  width: 100%;
  height: 200vh;
  bottom: -100vh;
  left: 0;
  rotate: 180deg;
}
.hero-secondaire::after {
  pointer-events: none;
  content: "";
  background-image: url(../images/vague_sous_cle.png);
  background-repeat: no-repeat;
  background-position: 0% 0%;
  background-size: cover;
  position: absolute;
  display: block;
  z-index: -1;
  width: 110%;
  height: 220%;
  bottom: 0;
  left: 0;
  rotate: 180deg;
}
.hero-secondaire.--contact::after {
  pointer-events: none;
  content: "";
  background-image: url(../images/vague_sous_cle.png);
  background-repeat: no-repeat;
  background-position: 0% 20%;
  background-size: cover;
  position: absolute;
  display: block;
  z-index: -1;
  width: 110%;
  height: 100%;
  bottom: 0;
  left: 0;
  rotate: 180deg;
}

@media (width <= 1200px) {
  .simwaps::after {
    pointer-events: none;
    bottom: -60vh;
  }
  .chiffres-cle-vague::after {
    pointer-events: none;
    width: 120%;
  }
}
@media (width <= 768px) {
  .simwaps::after {
    pointer-events: none;
    bottom: -40vh;
    width: 200%;
    background-position: 0% 0vh;
  }
  .chiffres-cle-vague::after {
    pointer-events: none;
    bottom: -140%;
    width: 200%;
  }
}

/* Section realisations Home */
body .realisations {
  .elementor-widget-wcf--posts {
    width: 100%;

    article {
      position: relative;

      img {
        min-height: 320px;
        max-height: 320px;
      }

      * {
        font-family: "pf-grand-gothik-variable", sans-serif !important;
      }

      &::after {
        pointer-events: none;
        content: "";
        background: linear-gradient(
          0deg,
          rgba(2, 2, 2, 1) 0%,
          rgba(2, 2, 2, 0.7) 50%,
          rgba(2, 2, 2, 0) 100%
        );
        position: absolute;
        left: 0;
        bottom: 0;
        z-index: 0;
        display: block;
        width: 100%;
        height: 150px;
        pointer-events: none;
        border-bottom-left-radius: 19px;
        border-bottom-right-radius: 19px;
      }

      .thumb {
        border-radius: 20px;
        -webkit-border-radius: 20px;
        -moz-border-radius: 20px;
        -ms-border-radius: 20px;
        -o-border-radius: 20px;
        margin-bottom: 0;
      }
      .wcf-meta {
        margin-bottom: 0;
      }
      .wcf-taxonomy {
        position: absolute;
        top: -36px;
        left: 20px;

        a {
          color: white;
          background-color: transparent;
          font-variation-settings: "wdth" 100, "wght" 200, "ital" 0 !important;
          font-size: 24px;
          line-height: 1.2;
          padding: 0;

          &:hover {
            color: #356bff;
          }
        }
      }
      .title {
        position: absolute;
        bottom: 0px;
        width: calc(100% - 60px);
        z-index: 10;
        font-variation-settings: "wdth" 100, "wght" 300, "ital" 0 !important;
        line-height: 1.2;
      }
    }
  }
}

/* Setup carousel partenaire Home */
body .swiper-free-mode > .swiper-wrapper {
  transition-timing-function: linear;
  gap: 50px;
}

body .home-contact .send-form {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 40px;

  button.wpcf7-form-control {
    padding: 0;
    border: 0;
    position: relative;
    flex-direction: row;
    gap: 12px;
    font-family: "pf-grand-gothik-variable", sans-serif !important;
    font-variation-settings: "wdth" 120, "wght" 350, "ital" 0 !important;
    font-size: 20px;
    overflow: visible;
    height: auto !important;
    text-transform: uppercase;
    fill: black;
    color: black;

    &::before {
      pointer-events: none;
      position: absolute;
      content: "";
      width: 100%;
      height: 1px;
      left: 0;
      bottom: -4px;
      background-color: #1c1d20;
      transition: all 0.3s;
      -webkit-transition: all 0.3s;
      -moz-transition: all 0.3s;
      -ms-transition: all 0.3s;
      -o-transition: all 0.3s;
    }
    &::after {
      pointer-events: none;
      position: absolute;
      display: block;
      right: -50px;
      content: "";
      width: 42px;
      height: 42px;
      background-image: url(../images/blue-circle-arrow.svg);
      background-repeat: no-repeat;
      background-position: center center;
      background-size: contain;
    }
    &:hover {
      &::before {
        pointer-events: none;
        width: 0px;
      }
    }
  }
}

/* FOOTER */
[data-elementor-id="3275"] {
  position: relative;
}
[data-elementor-id="3275"]::before {
  pointer-events: none;
  content: "";
  background-image: url(https://crain.beekom.fr/wp-content/uploads/2024/07/Footer_lines-1.svg);
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: 120%;
  display: block;
  opacity: 0.7;
  z-index: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

[data-elementor-id="3275"]::after {
  pointer-events: none;
  content: "";
  background: radial-gradient(
    134.41% 134.41% at 29.45% 60.25%,
    rgba(176, 222, 255, 0.2) 8.38%,
    rgba(0, 38, 112, 0.2) 46.91%
  );
  mix-blend-mode: hard-light;
  filter: blur(265px);
  position: absolute;
  display: block;
  z-index: -1;
  width: 100%;
  height: 100%;
  bottom: 0;
  left: 50%;
}

@media (width <= 768px) {
  [data-elementor-id="3275"]::before {
    pointer-events: none;
    content: "";
    background-position: 15% 50%;
    background-size: cover;
    opacity: 0.4;
  }
}

.elementor-icon i.icon-wcf-instragram {
  display: none;
}

.elementor-icon .icon-wcf-instragram:before {
  content: "\e91d";
  pointer-events: none;
  opacity: 1;
  color: white;
}

body .elementor-icon:hover,
body .elementor-icon {
  color: white;
}

/* Page secondaire */

/* Contact */
.contact-title h1 {
  font-family: "pf-grand-gothik-variable", sans-serif !important;
  font-variation-settings: "wdth" 50, "wght" 600, "ital" 0 !important;
  letter-spacing: 1.5px;
}

body
  .elementor-widget-icon-box.elementor-mobile-position-top
  .elementor-icon-box-wrapper {
  display: flex;
  gap: 20px;

  .elementor-icon-box-icon {
    margin-bottom: 0;
  }
}

.send-form .wpcf7-spinner {
  display: none;
}

.wpcf7-response-output {
  color: white;
}

@media (width <= 880px) {
  .send-form p {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (width <= 578px) {
  .send-form p button {
    width: 100%;
  }
}

/* BLOG */

.hero-title h1 {
  font-family: "pf-grand-gothik-variable", sans-serif !important;
  font-variation-settings: "wdth" 50, "wght" 600, "ital" 0 !important;
  letter-spacing: 0px;
}

.elementor-widget-wcf--posts .wcf__posts .thumb {
  margin-bottom: 0;
}
