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

  html.active {
    overflow-y: hidden;
  }

  .navbar .menu-menu-1-container {
    display: none;
  }

  .rotation-y {
    transform: rotate(180deg) rotateY(182deg) translateY(calc(-100% + 100px)) !important;
  }
}

@media not all and (min-width: 1280px) {
  :root {
    --wp--custom--wrapper--gap: 60px !important;
    --wp--preset--font-size--h-1: 56px !important;
  }

  .rotation-x {
    transform: rotateY(180deg) translateX(calc(-1 * var(--px))) !important;
  }
  /* --- POPUP --- */

  .popup-formulaire {
    width: 600px !important;
    padding: var(--wp--preset--spacing--60) !important;
  }

  .popup-formulaire .title-popup {
    font-size: 36px !important;
  }

  .popup-formulaire .text-popup {
    font-size: 24px !important;
  }
}

@media not all and (min-width: 1024px) {
  :root {
    --wp--custom--wrapper--py: 60px !important;
    --wp--custom--wrapper--px: 40px !important;

    --wp--preset--font-size--h-1: 52px !important;
    --wp--preset--font-size--h-2: 40px !important;
  }

  .rotation-y {
    transform: rotate(180deg) rotateY(180deg)
      translate(-50%, calc(-100% + 100px)) !important;
  }

  .rotation-y-2 {
    transform: rotate(180deg) rotateY(180deg) translateY(100px) !important;
  }

  .netdev-footer .netdev-footer-content {
    flex-direction: row !important;
    justify-content: space-between !important;
  }
  /* --- POPUP --- */

  .popup-formulaire {
    padding: var(--wp--preset--spacing--40) !important;
  }
}

@media not all and (min-width: 768px) {
  :root {
    --wp--custom--wrapper--py: 40px !important;
    --wp--custom--wrapper--px: 20px !important;

    --wp--preset--font-size--h-1: 48px !important;
    --wp--preset--font-size--h-2: 36px !important;
    --wp--preset--font-size--h-3: 20px !important;
    --wp--preset--font-size--callout: 24px !important;
  }

  body .formulaire .wpforms-field-radio ul {
    grid-template-columns: repeat(2, auto) !important;
  }

  .netdev-footer .netdev-footer-content {
    flex-direction: column !important;
    justify-content: center !important;
    gap: 20px;
  }
  /* --- POPUP --- */

  .popup-formulaire {
    width: 500px !important;
  }

  .popup-formulaire .title-popup {
    font-size: 32px !important;
  }

  .popup-formulaire .text-popup {
    font-size: 20px !important;
  }
}

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

    --wp--preset--font-size--h-1: 44px !important;
    --wp--preset--font-size--h-2: 32px !important;
    --wp--preset--font-size--callout: 20px !important;
  }

  .nav-mobile .btn-contact {
    display: flex !important;
  }

  .menu .img-paint-menu {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }

  .menu.active .img-paint-menu {
    opacity: 1;
    pointer-events: all;
  }

  .rotation-y {
    transform: rotate(180deg) rotateY(182deg) translateY(calc(-100% + 100px)) !important;
  }

  .rotation-y-2 {
    transform: rotate(180deg) rotateY(180deg) translateY(50px) !important;
  }

  body .formulaire .wpforms-field-radio ul {
    grid-template-columns: repeat(1, auto) !important;
  }
  /* --- POPUP --- */

  .popup-formulaire {
    width: 90% !important;
    padding: var(--wp--preset--spacing--32) !important;
  }

  .popup-formulaire .title-popup {
    font-size: 28px !important;
  }
}

/* --------------- FIN RESPONSIVE ---------------- */

/* ------------------ VARIABLE ------------------- */

:root {
  --px: var(--wp--custom--wrapper--px);
  --py: var(--wp--custom--wrapper--py);
  --gap: var(--wp--custom--wrapper--gap);
  --img-square: calc((100vw - var(--px) * 2 - var(--gap)) / 2);
  --img-square-2: calc(100vw - var(--px) * 2);
}

/* ------------------ GENERAL -------------------- */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

strong {
  font-weight: 700 !important;
}

.button-filled {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 6px;
  font-size: 18px;
  color: var(--wp--preset--color--primary);
  font-family: var(--wp--preset--font-family--primary);
  font-weight: 400;
  cursor: pointer;
}

.btn-close-menu-svg path,
.btn-menu-svg path,
.btn-close-menu-svg path,
.button-filled .svg-btn svg path {
  transition: fill 0.3s ease-in-out;
}

.button-filled:hover .svg-btn svg path {
  fill: var(--wp--preset--color--primary);
}

.button-outlined {
  border-radius: 6px;
  font-size: var(--wp--preset--font-size--lien);
  color: var(--wp--preset--color--primary);
  font-family: var(--wp--preset--font-family--primary);
  font-weight: 400;
  cursor: pointer;
  padding: 2px 6px;
  width: fit-content;
  transition: background 0.3s ease-in-out;
}

.button-outlined:hover {
  background: var(--wp--preset--color--secondary);
}

.item-next-session line {
  transition:
    transform 0.3s ease-in-out,
    stroke 0.3s ease-in-out;
  transform-origin: top;
}

.item-next-session circle {
  transition:
    transform 0.3s ease-in-out,
    fill 0.3s ease-in-out;
}

.next-session:hover .item-next-session circle {
  transform: translateY(26px);
}

.next-session:hover .item-next-session line {
  transform: scaleY(1.3);
}

.next-session:hover .item-next-session line {
  stroke: var(--wp--preset--color--light);
}
.next-session:hover .item-next-session circle {
  fill: var(--wp--preset--color--light);
}

.block-decoration-dark::before,
.block-decoration::before,
.block-decoration::after {
  content: "";
  position: absolute;
  left: 0;
  height: 38px;
  width: 100%;
  background-image: url(/wp-content/uploads/2026/06/paint3.svg);
  background-repeat: repeat;
  background-size: contain;
}

.block-decoration::before {
  top: 0;
  transform: translateY(-85%) rotate(180deg);
}

.block-decoration::after {
  bottom: 0;
  transform: translateY(85%);
}

.block-decoration-dark::before {
  background-image: url(/wp-content/uploads/2026/06/paint1.svg);
  top: 0;
  transform: translateY(-85%);
}

.rotation-y {
  transform: rotate(180deg) rotateY(180deg);
}

.rotation-y-2 {
  transform: rotate(180deg) rotateY(180deg) translateY(200px);
}

.list-perso li::marker {
  color: var(--wp--preset--color--secondary);
}

.gg-filter {
  position: relative;
}

.gg-filter::after {
  content: "";
  background-image: url("/wp-content/uploads/2026/06/paint15.svg");
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 10px);
  width: 125px;
  height: 11px;
  display: block;
  background-size: contain;
  background-repeat: no-repeat;
  transition: background 0.3s ease-in-out;
}

.gg-filter.active::after,
.gg-filter:hover::after {
  background-image: url("/wp-content/uploads/2026/06/paint16.svg");
}

/* ----------------- PLAYER VIDEO ----------------- */

.video-hero {
  position: absolute;
  aspect-ratio: 21/9;
  left: 50% !important;
  top: 50% !important;
  transform: translatex(-50%) translateY(-50%) !important;
  width: auto !important;
  height: auto !important;
  min-width: 116% !important;
  min-height: 100% !important;
}

.filtre-video::after {
  position: absolute;
  content: "";
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--wp--preset--gradient--filter-video);
  pointer-events: none;
}

/* ---------------- swiper text --------------- */

.swiper-texte-responsive .swiper-texte {
  animation: none;
}

.swiper-texte-desktop .swiper-texte {
  animation: 20s linear infinite swiper-text;
}

.swiper-texte p {
  white-space: nowrap !important;
}

@keyframes swiper-text {
  from {
    transform: translateX(0%);
  }

  to {
    transform: translateX(-100%);
  }
}

/* ---------------- COLLAPSE --------------- */

.collapse-container {
  display: grid !important;
  overflow: hidden;
  transition:
    grid-template-rows 0.4s ease-out,
    transform 0.4s ease-out,
    margin 0.3s ease-in-out;
}

.card-service .collapse-hover,
.collapse-closed {
  grid-template-rows: 0fr;
}

.card-service:hover .collapse-hover,
.collapse-opened {
  grid-template-rows: 1fr;
}

.expandable-collapse {
  min-height: 0;
}

.card-service .overlay-card {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.card-service:hover .overlay-card {
  opacity: 1;
}
/* ---------------- HEADER --------------- */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: background 0.3s ease-in-out;
}

html[data-scroll]:not([data-scroll="0"]) .navbar {
  background-color: var(--wp--preset--color--light);
}

.menu p:empty,
.navbar p:empty {
  display: none;
}

.navbar li a {
  font-family: var(--wp--preset--font-family--primary);
  font-size: 18px;
  color: var(--wp--preset--color--light);
  font-weight: 400;
}

.page-id-50 .btn-menu p,
.page-id-50 .navbar .button-filled,
html[data-scroll]:not([data-scroll="0"]) .navbar .button-filled,
.page-id-50 .navbar li a,
html[data-scroll]:not([data-scroll="0"]) .navbar li a {
  color: var(--wp--preset--color--primary) !important;
}

.menu-item {
  border-radius: 6px;
  padding: 2px 6px;
  width: fit-content;
  transition: background 0.3s ease-in-out;
}
.menu-item a {
  font-size: var(--wp--preset--font-size--lien);
  cursor: pointer;
  transition: color 0.3s ease-in-out;
}

.expertises {
  padding-right: 30px;
}

.expertises::after {
  content: "";
  background-image: url("/wp-content/uploads/2026/06/arrow2.svg");
  width: 15px;
  height: 10px;
  display: block;
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  right: 0;
  top: 0;
  transform: translate(-5px, 10px);
  transition: background 0.3s ease-in-out;
}

html[data-scroll]:not([data-scroll="0"]) .expertises::after,
.page-id-50 .expertises::after,
.expertises:has(.current_page_item)::after,
.expertises:hover::after {
  background-image: url("/wp-content/uploads/2026/06/arrow3.svg");
}

.expertises:has(.current_page_item),
.current_page_item,
.menu-item:hover {
  background-color: var(--wp--preset--color--secondary);
}

html[data-scroll]:not([data-scroll="0"]) .btn-menu p,
.expertises:has(.current_page_item) a,
.current_page_item a,
.menu-item:hover a {
  color: var(--wp--preset--color--primary) !important;
}

.navbar .button-filled {
  color: var(--wp--preset--color--light);
}

.btn-menu:hover .btn-menu-svg path,
.navbar .button-filled:hover .svg-btn svg path {
  fill: var(--wp--preset--color--light);
}

.btn-close-menu:hover .btn-menu-svg path,
html[data-scroll]:not([data-scroll="0"]) .btn-menu:hover .btn-menu-svg path,
html[data-scroll]:not([data-scroll="0"])
  .navbar
  .button-filled:hover
  .svg-btn
  svg
  path {
  fill: var(--wp--preset--color--primary);
}

.menu-menu-1-container ul {
  display: flex;
  align-items: center;
  gap: 10px;
}

html[data-scroll]:not([data-scroll="0"]) .logo-nav-light-2,
html[data-scroll]:not([data-scroll="0"]) .logo-nav-light,
.page-id-50 .logo-nav-light,
.logo-nav-dark {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: opacity 0.3s ease-in-out;
}

.page-id-34 .logo-nav-light-2,
.page-id-36 .logo-nav-light-2,
.page-id-38 .logo-nav-light-2,
.page-id-40 .logo-nav-light-2 {
  display: block;
}

.page-id-34 .logo-nav-light,
.page-id-36 .logo-nav-light,
.page-id-38 .logo-nav-light,
.page-id-40 .logo-nav-light {
  display: none;
}

.logo-nav-light-2,
.logo-nav-light,
.page-id-50 .logo-nav-dark,
html[data-scroll]:not([data-scroll="0"]) .logo-nav-dark {
  opacity: 1;
  pointer-events: all;
}

/* ---------------- MENU RESPONSIVE --------------- */

.menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100svh;
  width: 100%;
  transform: translateY(-100%);
  z-index: 100;
  transition: transform 0.3s ease-in-out;
}

.menu.active {
  transform: translateY(0%);
}

.menu ul {
  gap: 20px;
}

.menu .collapse-opened {
  margin-top: 20px;
}

.menu .expertises {
  padding: unset;
  background: transparent !important;
}

.menu .expertises::after {
  transform: translate(-55px, 8px);
}

.menu .expertises::after {
  background-image: url("/wp-content/uploads/2026/06/arrow3.svg");
}

.menu .expertises > a:first-child {
  border-radius: 6px;
  padding: 4px 33px 6px 4px;
  width: fit-content;
  transition: background 0.3s ease-in-out;
}

.menu .expertises:has(.current_page_item) > a:first-child,
.menu .expertises:hover > a:first-child {
  background-color: var(--wp--preset--color--secondary);
}

.menu .menu-menu-1-container ul {
  flex-direction: column;
  align-items: start;
  position: unset;
  transform: unset;
}

.menu .collapse-final {
  padding: unset;
  background-color: unset;
}
.menu .collapse-final .menu-item a {
  color: var(--wp--preset--color--primary) !important;
}

.navbar .nav-mobile {
  display: flex !important;
  width: 100%;
  pointer-events: none;
  overflow-y: auto;
  height: 100%;
}

.navbar.active .nav-mobile {
  pointer-events: all;
}

.navbar .nav-mobile ul {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 60px;
  align-items: start;
  justify-content: center;
  height: fit-content;
  min-height: calc(100% - 100px);
}

.navbar .nav-mobile a {
  font-weight: 600;
  font-size: 28px;
}

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

/* ---------------- NAVBAR COLLAPSE --------------- */
.expertises {
  position: relative;
  cursor: pointer;
}

.sub-menu {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, 40px);
  display: grid !important;
  width: max-content;
  overflow: hidden;
  transition:
    grid-template-rows 0.4s ease-out,
    transform 0.4s ease-out,
    margin 0.3s ease-in-out;
}

.menu .sub-menu {
  left: 0;
  transform: translate(40px);
}

.collapse-final {
  padding: 40px;
  background-color: var(--wp--preset--color--primary);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.navbar .expertises:hover .collapse-final .menu-item a,
.navbar .collapse-final .menu-item a {
  color: var(--wp--preset--color--light) !important;
}

.expertises:hover .collapse-final .current_page_item a,
.expertises .collapse-final .current_page_item a,
.expertises .collapse-final .menu-item:hover a {
  color: var(--wp--preset--color--primary) !important;
}

.nav-mobile .list-collapse:has(.collapse-opened) {
  width: 100%;
}

.nav-mobile .list-collapse a {
  justify-content: start;
}

.nav-mobile .list-collapse .sub-menu a {
  font-size: 24px;
  line-height: normal;
}

.nav-mobile .submenu-collapse {
  position: relative !important;
  transform: unset !important;
  width: 100% !important;
}

.nav-mobile .assainissement:has(.collapse-opened),
.nav-mobile .services:has(.collapse-opened) {
  border: none !important;
}

/* ---------------- FORMULAIRE --------------- */

.formulaire .wpforms-container {
  margin: unset !important;
}

.formulaire .wpforms-field-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: var(--wp--preset--spacing--16);
  width: 100%;
}

.formulaire .wpforms-field {
  padding: unset;
  width: 100%;
}

.formulaire .wpforms-field input,
.formulaire .wpforms-field textarea,
.formulaire .wpforms-field-select select,
.formulaire .wpforms-field input::placeholder,
.formulaire .wpforms-field-required input::before,
.formulaire .wpforms-field-required input::after,
.formulaire .wpforms-field-required input,
.formulaire .wpforms-field .wpforms-uploader {
  background-color: transparent !important;
  border-color: var(--wp--preset--color--dark) !important;
  color: var(--wp--preset--color--dark) !important;
}

.formulaire
  .wpforms-field-radio
  .wpforms-field-required
  .wpforms-selected
  input::after {
  background-color: var(--wp--preset--color--dark) !important;
}

.formulaire .wpforms-field .wpforms-uploader,
.formulaire .wpforms-field-select select,
.formulaire .wpforms-field input,
.formulaire .wpforms-field textarea {
  max-width: 100%;
  border-radius: 0px !important;
}

.formulaire .wpforms-field textarea {
  height: 115px !important;
}

.formulaire .wpforms-field-required input::before,
.formulaire .wpforms-field-required input::after,
.formulaire .wpforms-field-required input {
  border-radius: 0 !important;
}

.formulaire .wpforms-field-label,
.formulaire .wpforms-field-label-inline {
  margin-bottom: 6px !important;
  font-family: var(--wp--preset--font-family--secondary);
  font-weight: 400;
  color: var(--wp--preset--color--dark) !important;
  word-break: auto-phrase;
}

.formulaire .wpforms-field-large {
  padding: 10px var(--wp--preset--spacing--16);
}

.formulaire .wpforms-required-label {
  display: none;
}

.formulaire .wpforms-submit-container {
  margin-top: var(--wp--preset--spacing--16) !important;
}

.formulaire .wpforms-field-checkbox .choice-1 input {
  align-self: center;
}

div.wpforms-container-full select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--wp--preset--color--dark) 50%),
    linear-gradient(135deg, var(--wp--preset--color--dark) 50%, transparent 50%);
}

.formulaire .wpforms-field .wpforms-uploader {
  border-style: solid !important;
  padding: 10px 15px !important;
  align-items: start !important;
  justify-content: center !important;
}

.formulaire .wpforms-field {
  padding: unset;
  width: 100%;
}

.formulaire .wpforms-field-radio fieldset .wpforms-field-label {
  float: left;
  text-wrap: nowrap;
}

.formulaire .wpforms-field-radio ul {
  grid-template-columns: repeat(3, auto) !important;
  width: 100%;
}

.formulaire .dz-message {
  justify-content: flex-start !important;
  align-items: flex-start !important;
  text-align: start !important;
}

.formulaire .dz-message span {
  font-family: var(--wp--preset--font-family--secondary);
  font-weight: 400;
  color: var(--wp--preset--color--dark) !important;
}

.formulaire .dz-message svg {
  display: none;
}

.formulaire .wpforms-submit {
  height: auto !important;
  background-color: transparent !important;
  font-size: 18px !important;
  color: var(--wp--preset--color--primary) !important;
  font-family: var(--wp--preset--font-family--primary) !important;
  font-weight: 400 !important;
  padding: 12px !important;
}

.formulaire .wpforms-submit:hover {
  background: transparent !important;
}

.formulaire .wpforms-submit::after {
  content: "";
  background-image: url("/wp-content/uploads/2026/06/paint15.svg");
  position: absolute;
  bottom: 0 !important;
  left: 50% !important;
  top: unset !important;
  right: unset !important;
  transform: translate(-50%, 10px) !important;
  width: 125px;
  height: 11px;
  display: block;
  background-size: contain;
  background-repeat: no-repeat;
  border: unset !important;
  transition: background 0.3s ease-in-out;
}

.formulaire .wpforms-submit:hover::after {
  background-image: url("/wp-content/uploads/2026/06/paint16.svg");
}

/* ----------- POP UP FORMULAIRE ------------- */

.popup-formulaire {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background: var(--wp--preset--color--dark);
  border-radius: 18px;
  color: var(--wp--preset--color--light);
  padding: 100px;
  gap: 26px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  line-height: 1.2;
  text-align: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  pointer-events: none;
}

.popup-formulaire .title-popup {
  font-family: var(--wp--preset--font-family--primary);
  font-size: var(--wp--preset--font-size--h-2);
  font-weight: 700;
}

.popup-formulaire .text-popup {
  font-family: var(--wp--preset--font-family--secondary);
  font-size: var(--wp--preset--font-size--h-3);
  font-weight: 400;
}

.popup-formulaire .button-popup {
  position: relative;
  padding: 12px;
  color: var(--wp--preset--color--light);
}
.popup-formulaire .button-popup::after {
  content: "";
  background-image: url("/wp-content/uploads/2026/06/paint15.svg");
  position: absolute;
  bottom: 0 !important;
  left: 50% !important;
  top: unset !important;
  right: unset !important;
  transform: translate(-50%, 10px) !important;
  width: 125px;
  height: 11px;
  display: block;
  background-size: contain;
  background-repeat: no-repeat;
  border: unset !important;
  transition: background 0.3s ease-in-out;
}
.popup-formulaire .button-popup:hover::after {
  background-image: url("/wp-content/uploads/2026/06/paint16.svg");
}

.popup-formulaire.active {
  opacity: 1;
  pointer-events: all;
}

.wpforms-confirmation-container-full {
  background: transparent !important;
  border: 1px solid var(--wp--preset--color--secondary) !important;
  border-radius: 6px !important;
  font-family: var(--wp--preset--font-family--secondary);
}

.wpforms-confirmation-container-full p {
  color: var(--wp--preset--color--dark) !important;
}

/* -------------------- FOOTER NETDEV ---------------- */

.netdev-footer {
  background-color: var(--wp--preset--color--dark) !important;
}

.netdev-footer,
.netdev-footer .netdev-footer-content .netdev-footer-text a {
  color: var(--wp--preset--color--light) !important;
}

.netdev-footer .logo,
.netdev-footer .netdev-footer-content .netdev-footer-text a {
  opacity: unset !important;
}

/* ---------------------- MENTIONS LEGALES --------------------- */

.netdev-mentions-legales h2 {
  margin-top: 32px;
  margin-bottom: 20px;
}

.netdev-mentions-legales a {
  text-decoration: underline;
}
