/* MEDIA QUERIES */

@media not all and (min-width: 1536px) {
  :root {
    --wp--custom--wrapper--px: 80px !important;
    --wp--custom--wrapper--gap: 80px !important;
    --wp--preset--font-size--60: 52px !important;
    --wp--preset--font-size--44: 40px !important;
  }
}

@media not all and (min-width: 1280px) {
  .sub-menu-container.active,
  .sub-menu-training-container.active {
    grid-template-rows: 1fr !important;
  }

  .sub-menu-container {
    position: relative !important;
  }

  .btn-contact {
    position: relative !important;
    z-index: 1 !important;
  }
}

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

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

@media not all and (min-width: 640px) {
  .nav-mobile .btn-contact {
    display: block !important;
  }

  .nav-mobile {
    min-height: calc(100svh - var(--top-header) - 20px) !important;
  }
}

@media not all and (min-width: 391px) {
	h1 {
		hyphens:auto !important;
	}
}

/* GENERAL */

html {
  scroll-padding-top: calc(var(--top-header) + 32px);
}

p:empty {
  display: none;
}

:root {
  --black: var(--wp--preset--color--custom-black);
  --white: var(--wp--preset--color--custom-white);
  --green-title: var(--wp--preset--color--custom-green-title);
  --green-logo: var(--wp--preset--color--custom-green-logo);
  --light-gray: var(--wp--preset--color--custom-light-gray);
  --dark-gray: var(--wp--preset--color--custom-dark-gray);
  --px: var(--wp--custom--wrapper--px);
  --gap: var(--wp--custom--wrapper--gap);
  --top-header: 88px
}

/* HEADER */

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

html[data-scroll="0"] .div-header {
  --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-604 .div-header {
  --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 {
  fill: var(--green-logo);
  transition: fill 0.3s ease-out;
}

.logo-header:hover {
  fill: var(--black);
}

.ul-destkop > li > a {
  width: max-content;
} 

.menu-item:not(.btn-contact) a,
.title-category-training {
  display: block;
  font-family: var(--wp--preset--font-family--maven-pro);
  font-size: var(--wp--preset--font-size--p);
  color: var(--black);
  text-transform: uppercase;
  font-weight: 700;
  line-height: 100% !important;
  padding: 14px 8px;
  background: transparent;
  transition: background 0.3s ease-out;
}

.menu-item:not(.btn-contact) a:hover,
.current-menu-item:not(.btn-contact) a,
.title-category-training:hover {
  background: var(--green-logo);
}

.btn-contact a{
  position: relative;
  overflow: hidden;
  display: block;
  font-family: "Inter";
  font-size: var(--wp--preset--font-size--p);
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 360px;
  color: #fff;
  line-height: normal;
  background: transparent;
  transition: background 0.3s ease-out;
}

.btn-contact a::before{
  position: absolute;
  z-index: -1;
  content: "";
  inset: 0;
  width: 100%;
  height: 100%;
  background: conic-gradient(from 269deg at 50% 50%, #89BF46 0deg, #5D822F 360deg);
  transform: rotate(0);
  transform-origin: left;
  transition: all 0.3s ease-out;
}

.btn-contact:hover a {
  background: #5D822F;
}

.menu-item-has-children {
  position: relative;
}

.menu-item-has-children .sub-menu-container,
.category-training .sub-menu-training-container {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s ease-out 0.2s;
}

.menu-item-has-children .sub-menu-container {
  position: absolute;
  left: 0;
  min-width: 100%;
}

.nav-desktop .menu-item-has-children:hover .sub-menu-container,
.nav-desktop .category-training.active .sub-menu-training-container {
  grid-template-rows: 1fr;
}

.sub-menu {
  min-width: 100%;
  background: #C0B9BA;
}

.sub-menu-container .sub-menu{
  max-height: calc(100dvh - var(--top-header));
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--black) transparent;
}

.sub-menu .menu-item a {
  min-width: max-content;
  width: 100%;
}

.menu-item-has-children > a:first-child,
.title-category-training {
  display: flex;
  gap: 16px;
  align-items: center;
}

.link-sub-menu,
.title-category-training {
  cursor: pointer;
}

.nav-mobile .link-sub-menu.active {
  background: var(--green-logo);
}

.link-sub-menu .icon-sub-menu,
.title-category-training .icon-sub-menu {
  stroke : var(--black);
  transform: rotate(0);
  transition : transform 0.3s ease-out;
}

.nav-desktop .link-sub-menu:hover .icon-sub-menu,
.nav-desktop .title-category-training.active .icon-sub-menu,
.nav-mobile .link-sub-menu.active .icon-sub-menu,
.nav-mobile .title-category-training.active .icon-sub-menu {
  transform: rotate(-180deg);
}

.title-category-training,
.sub-menu .menu-item a {
  padding : 16px 20px !important;
}

.sub-menu-training-container a {
  text-transform: initial !important;
  padding: 4px 20px 8px 40px !important;
}

.sub-menu-training-container a:hover {
  background: var(--black) !important;
  color: var(--white) !important;
}


.sub-menu-training-container.active {
  grid-template-rows: 1fr !important;
}

.icon-burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
}

.icon-burger span{
  width: 44px;
  height: 6px;
  border-radius: 360px;
  background: var(--black);
  opacity: 1;
  transform: rotate(0) translateX(0) translateY(0);
  transition: all 0.3s ease-out;
}

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

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

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

.icon-burger:hover span {
  background: var(--green-logo);
}

/* MENU MOBILE */

.menu-mobile {
  position: fixed;
  z-index: 2;
  top: calc(var(--top-header) + 10px);
  right: var(--px);
  max-width: calc(100% - var(--px) * 2);
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease-out;
}

.menu-closed {
  grid-template-rows: 0fr;
}

.menu-opened {
  grid-template-rows: 1fr;
}

.nav-mobile {
  padding: 20px;
  border-radius: 16px;
  background: #DDDADA;
}

.nav-mobile a {
  width: fit-content;
}

.nav-mobile .sub-menu-container{
  min-width: 100% !important;
}

.ul-mobile {
  display: flex;
  flex-direction: column;
  gap: 16px;
    overflow-y: auto;
  max-height: calc(100svh - var(--top-header) - 80px);
  scrollbar-width: thin;
  scrollbar-color: var(--black) transparent;
}

.nav-mobile .link-sub-menu.active,
.nav-mobile .title-category-training.active {
  background: var(--green-logo);
}

.nav-mobile .btn-contact {
  display: none;
}

/* FOOTER */

.link-footer a {
  color: var(--black);
  transition: color 0.3s ease-out;
}

.link-footer a:hover {
  color: var(--green-logo);
}

.netdev-footer {
  width: calc(100% - 40px);
  position: relative;
  left: 20px;
}

/* MISCELLANEOUS */

.link-white a {
  color: var(--white);
  transition: color 0.3s ease-out;
}

.link-white:hover a {
  color: var(--green-logo);
}

.eapps-facebook-feed-extra-small {
  width: 100% !important;
}

.ol-marker img {
  width: 32px !important;
  height: 32px !important;
}

#main-section p a {
  font-weight: 700;
  color: var(--black);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.3s ease-out;
}

#main-section p a:hover {
  color: var(--green-logo);
}

/* TRAINING */

.content-description-training ul {
  list-style: disc;
  padding-left: 20px;
}

.content-description-training ul li {
  padding-left: 10px;
}

.content-description-training a {
  font-weight: 700;
  color: var(--black);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.3s ease-out;
}

.content-description-training a:hover {
  color: var(--green-logo);
}

/* CONTACT */

.link-contact a {
  color: var(--white);
  transition: color 0.3s ease-out;
}

.link-contact a:hover {
  color: var(--green-logo);
}

.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--) !important;
  color: var(--black) !important;
  margin: 0 !important;
  font-weight: 400 !important;
  line-height: normal !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 {
  position: relative !important;
  overflow: hidden !important;
  display: block !important;
  font-family: "Inter" !important;
  font-size: var(--wp--preset--font-size--p) !important;
  font-weight: 700 !important;
  border-radius: 360px !important;
  padding: 12px 24px !important;
  color: #fff !important;
  background: transparent !important;
  transition: all 0.3s ease-out !important;
}

.btn-envoi-form::before {
  position: absolute !important;
  z-index: -1 !important;
  content: "" !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  transition: all 0.3s ease-out !important;
}

.btn-envoi-form::before {
    background: conic-gradient(from 269deg at 50% 50%, #89BF46 0deg, #5D822F 360deg) !important;
    transform: rotate(0) !important;
    transform-origin: left !important;
}

.btn-envoi-form:hover {
  background: #5D822F !important;
}

/* MENTIONS LEGALES */

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

.netdev-mentions-legales h2 {
  padding-top: 40px;
  padding-bottom: 20px;
}

.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(--green-logo) ;
}