/* MEDIA QUERIES */

@media not all and (min-width: 1512px) {
    :root {
    --wp--custom--wrapper--px: 80px !important;
    --wp--custom--wrapper--gap: 80px !important;
  }
}

@media not all and (min-width: 1280px) {
  :root {
    --wp--preset--font-size--48: 40px !important;
  }
}

@media not all and (min-width: 1024px) {
  :root {
    --wp--custom--wrapper--px: 40px !important;
    --wp--custom--wrapper--gap: 60px !important;
    --wp--preset--font-size--44: 36px !important;
    --wp--preset--font-size--32: 24px !important;
    --wp--preset--font-size--menu-item: 32px !important;
  }
  .btn-devis-nav {
    display: flex !important;
  }
}

@media not all and (min-width: 768px) {
  :root {
    --wp--custom--wrapper--px: 20px !important;
    --wp--custom--wrapper--gap: 40px !important;
    --wp--preset--font-size--44: 24px !important;
  }
}

@media not all and (min-width: 640px) {
  :root {
    --wp--preset--font-size--48: 36px !important;
    --wp--preset--font-size--44: 32px !important;
    --wp--preset--font-size--32: 20px !important;
    --wp--preset--font-size--menu-item: 28px !important;
  }
}

@media not all and (min-width: 391px) {
}

/* GENERAL */

html {
  scroll-behavior: smooth;
}

p:empty {
  display: none;
}

:root {
  --black: var(--wp--preset--color--custom-black);
  --white: var(--wp--preset--color--custom-white);
  --dark-blue: var(--wp--preset--color--custom-dark-blue);
  --blue: var(--wp--preset--color--custom-blue);
  --light-blue: var(--wp--preset--color--custom-light-blue);
  --blue-border: var(--wp--preset--color--custom-blue-border);
  --green: var(--wp--preset--color--custom-green);
  --px: var(--wp--custom--wrapper--px);
  --gap: var(--wp--custom--wrapper--gap);
}

strong {
  font-weight: 700 !important;
}

.max-width {
  max-width: calc(1352px + var(--px));
}

.font-zain {
  font-family: var(--wp--preset--font-family--zain) !important;
}

/* HEADER */

.div-header {
  transition: all 0.3s ease-out;
}

html[data-scroll="0"] .div-header {
  background: transparent;
  --webkit-box-shadow: 0px 4px 12px rgba(0, 0, 0, 0);
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0);
}

html:not([data-scroll="0"]) .div-header,
html[data-scroll="0"] body.error404 .div-header,
html[data-scroll="0"] body.page-id-544 .div-header {
  background: var(--white);
  --webkit-box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.05);
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.05);
}

.logo-header,
.img-link {
  transform: scale(1);
  transition: transform 0.3s ease-out;
}

.logo-header:hover,
.img-link:hover {
  transform: scale(0.95);
}

.text-burger {
  position: relative;
  display: flex;
  justify-content: flex-start;
  overflow: hidden;
  height: 23px;
  width: 56px;
}

.icon-burger .text-burger-wrapper {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  left: 0;
  top: 0;
  width: max-content;
  height: 200%;
  transform: translateY(0%);
  transition: transform 0.4s ease-out;
}

.icon-burger.active .text-burger-wrapper {
  transform: translateY(-50%);
}

.text-burger span {
  height: 100%;
}

.lines-burger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 14px;
}

.icon-burger .lines-burger span {
  transform: rotate(0) translateX(0) translateY(0);
  opacity: 1;
  transition: all 0.3s ease-out;
}

.icon-burger.active .lines-burger span:nth-child(1) {
  transform: rotate(45deg) translateX(4px) translateY(4px);
}

.icon-burger.active .lines-burger span:nth-child(2) {
  opacity: 0;
} 

.icon-burger.active .lines-burger span:nth-child(3) {
  transform: rotate(-45deg) translateX(4.5px) translateY(-4px);
}

/* MENU MOBILE */

.menu-mobile {
  position: fixed;
  z-index: -1;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100dvh;
  padding-top: 126px;
  padding-left: 40px;
  display: flex;
  gap: 40px !important;
  transform: translateX(100%);
  transition: height 0.3s ease-out, transform 0.4s ease-out;
}

.menu-closed {
  transform: translateX(100%);
}

.menu-opened {
  transform: translateX(0%);
}

.ul-mobile {
  max-height: calc(100svh - 186px);
  overflow-y: auto;
  overflow-x: hidden;
  width: calc(100% + 44px);
  padding-bottom: 20px;
  padding-right: 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--blue-border) transparent;
}

.menu-item {
  position: relative;
}

.menu-item:not(.btn-devis-nav) a {
  display: block;
  font-family: var(--wp--preset--font-family--zain);
  font-weight: 700;
  font-size: var(--wp--preset--font-size--menu-item);
  line-height: 100% !important;
  color: var(--black);
  transform: translateX(0);
  transition: all 0.3s ease-out 0.15s;
}

.menu-item:not(.btn-devis-nav):hover a,
.current-menu-item:not(.btn-devis-nav) a {
  color: var(--blue-border);
  transform: translateX(44px);
  transition: all 0.3s ease-out;
}

.arrow-menu-item {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.3s ease-out 0.15s;
}

.menu-item:not(.btn-devis-nav):hover .arrow-menu-item,
.current-menu-item:not(.btn-devis-nav) .arrow-menu-item {
  opacity: 1;
} 

.btn-devis-nav {
    display: none;
  }

/* FOOTER */

.logo-footer {
  fill: var(--white);
  transition: fill 0.3s ease-out;
}

.logo-footer:hover {
  fill: var(--light-blue);
}

.link-footer svg {
  fill: var(--white);
  transition: fill 0.3s ease-out;
}
.link-footer:hover svg {
  fill: var(--light-blue);
}

.link-footer span,
.link-footer-tel {
  font-family: var(--wp--preset--font-family--manrope);
  font-size: 16px;
  line-height: 137% !important;
  color: var(--white);
  transition: color 0.3s ease-out;
}

.link-footer:hover span,
.link-footer-tel:hover {
  color: var(--light-blue);
} 

/* MISCLEANEOUS */

.border-gradient {
  position: relative;
  overflow: hidden;
}

.border-gradient::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--wp--preset--gradient--custom-blue-gradient);
  z-index: 1;
}

.wp-block-acf-gallery-generator {
  width: 100%;
}

/* BEAF */

.bafg-twentytwenty-wrapper {
  width: 100% !important;
  border-radius: 18px !important;
  overflow: hidden !important;
}

.bafg-slider-info-wraper {
  display: none !important;
}

.bafg-twentytwenty-container img {
  height: auto !important;
  object-fit: cover !important;
  aspect-ratio: 276/365 !important;
  max-height: 550px !important;
}

/* CONTACT */

.wpforms-container {
  width: 100% !important;
  margin: 0 !important;
}

.wpforms-field-medium {
  max-width: 100% !important;
}

.wpforms-required-label {
  display: none !important;
}

.wpforms-field-container label,
.wpforms-field-container legend, 
.wpforms-field-container input,
.wpforms-field textarea,
.modern-title {
  font-size: var(--wp--preset--font-size--p) !important;
  font-family: var(--wp--preset--font-family--manrope) !important;
  color: var(--black) !important;
  margin: 0 !important;
  font-weight: 400 !important;
  line-height: 137% !important;
}

.wpforms-field-container label:not(.wpforms-field-label-inline),
legend {
  padding-bottom: 6px !important;
}

.wpforms-container .wpforms-field {
  padding-bottom: 16px !important;
  padding-top: 0 !important;
}

.wpforms-submit::after {
  border: none !important;
  position: inherit !important;
}

.depth-1 {
  align-items: center !important;
}

.btn-envoi-form {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 12px 24px !important;
  border-radius: 360px !important;
  border: solid 1px !important;
  font-family: var(--wp--preset--font-family--zain) !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  background: #0E98CC !important;
  color: #FEFEFE !important;
  border-color: #0E98CC !important;
  transition: all 0.3s ease !important;
}

.btn-envoi-form:hover {
  background: #0B7BA6;
  border-color: #0B7BA6;
}

/* MENTIONS LEGALES */

.netdev-mentions-legales {
  width: 100%;
}

.netdev-mentions-legales h2 {
  padding-top: 40px;
  padding-bottom: 20px;
  color: var(--blue-border)
}

.netdev-mentions-legales a {
  font-weight: 700;
  color: var(--black);
  word-break: break-all;
  transition: color 0.3s ease-out;
}

.netdev-mentions-legales a:hover {
  color: var(--blue-border);
}