/* MEDIA QUERIES */

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

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

@media not all and (min-width: 1024px) {
  :root {
    --wp--custom--wrapper--gap: 60px !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--52: 28px !important;
    --wp--preset--font-size--44: 24px !important;
    --wp--preset--font-size--40: 28px !important;
  }

  .menu-mobile.menu-opened {
    height: calc(100svh - 94px - 14px) !important;
  }

  .menu-mobile .nav-ul {
    flex-direction: column !important;
    align-items: start !important;
    justify-content: flex-start !important;
    gap: 40px !important;
    height: 100% !important;
    overflow-y: scroll;
    scrollbar-width: thin;
    scrollbar-color: var(--black) var(--white);
  }

  .div-collapse-menu-mobile,
  .div-collapse-menu-mobile > div {
    height: 100% !important;
  }

  .nav-mobile {
    height: 100% !important;
  }

  .div-collapse {
    position: relative !important;
    top: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  .sub-menu {
    padding-bottom: 0 !important;
    padding-left: calc(var(--px) + 40px) !important;
    gap: 40px !important;
  }
}

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

  .menu-mobile .btn-contact {
    display: block !important;
  }

  .img-card-hover {
    opacity: 1 !important;
  }

  .slide-content {
    justify-content: start !important;
  }
}

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

/* GENERAL */

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

p:empty {
  display: none;
}

:root {
  --black: var(--wp--preset--color--custom-black);
  --white: var(--wp--preset--color--custom-white);
  --red: var(--wp--preset--color--custom-red);
  --grey: var(--wp--preset--color--custom-grey);
  --black-footer: var(--wp--preset--color--custom-black-footer);
  --red-btn: #cb0404;
  --px: var(--wp--custom--wrapper--px);
  --gap: var(--wp--custom--wrapper--gap);
}

.font-righteous {
  font-family: var(--wp--preset--font-family--righteous);
}

.font-montserrat {
  font-family: var(--wp--preset--font-family--montserrat);
}

/* HEADER */

.div-header {
  box-shadow: 0 4px 4px 0 rgba(20, 19, 19, 0.1);
  min-height: 104px;
}

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

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

.menu-item:not(.btn-contact) a,
.nav-mobile .btn-contact {
  position: relative;
  font-family: var(--wp--preset--font-family--poppins);
  font-size: var(--wp--preset--font-size--20);
  font-weight: 600;
  line-height: normal;
  padding-left: 15px;
  color: var(--black);
  transition: color 0.3s ease-out;
}

.menu-item:not(.btn-contact) a:hover,
.nav-mobile .btn-contact:hover,
.current-menu-item:not(.btn-contact) a,
.nav-mobile .current-menu-item a {
  color: var(--red) !important;
}

.menu-item:not(.btn-contact) a::before,
.nav-mobile .btn-contact a::before {
  position: absolute;
  content: "";
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 9px;
  height: 9px;
  border-radius: 100%;
  background: var(--red);
}

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

.menu-item-has-children > a {
  position: relative;
  padding-right: 18px;
  cursor: pointer;
}

.menu-item-has-children > a::after {
  position: absolute;
  content: "";
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(0);
  width: 11px;
  height: 7px;
  background-image: url(/wp-content/uploads/2025/11/arrow-menu.svg);
  background-repeat: no-repeat;
  transition: transform 0.3s ease-out;
}

.menu-item-has-children.active > a::after {
  transform: translateY(-50%) rotate(-180deg);
}

.div-collapse {
  position: absolute;
  display: grid;
  grid-template-rows: 0fr;
  left: -40px;
  top: 62px;
  border-radius: 0 0 36px 36px;
  width: max-content;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 4px 4px 0 rgba(20, 19, 19, 0.1);
  transition: grid-template-rows 0.3s ease-out;
}

.div-padding-collapse {
  min-height: 0;
}

.sub-menu {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px;
  width: calc(100% + 80px);
}

.menu-item-has-children.active .div-collapse {
  grid-template-rows: 1fr;
}

.nav-desktop .first-menu-item,
.nav-desktop .btn-contact {
  margin-left: auto;
}

/* MENU MOBILE */

.menu-mobile {
  position: fixed;
  display: grid;
  grid-template-rows: 0fr;
  z-index: 2;
  top: 108px;
  right: 0;
  width: 100vw;
  transition: all 0.3s ease-out;
}

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

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

.div-collapse-menu-mobile {
  min-height: 0;
  width: 100%;
}

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

.menu-mobile .div-collapse {
  top: 50px;
}

/* FOOTER */

footer {
	position: relative;
	z-index: 1;
}

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

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

.link-footer svg {
  fill: var(--red);
  transition: fill 0.3s ease-out;
}

.link-footer:hover svg {
  fill: var(--white);
}

.link-footer p,
.link-footer-p {
  position: relative;
  color: var(--white);
}

.link-footer p::after,
.link-footer-p::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 1px;
  bottom: 0;
  left: 0;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

.link-footer:hover p::after,
.link-footer-p:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.netdev-footer {
  background-color: var(--black-footer) !important;
}

.netdev-footer span {
  font-weight: 700;
  color: var(--white);
}

/* CUSTOM BTN */

.custom-btn-1,
.custom-btn-2,
.nav-desktop .btn-contact a {
  padding: 12px 24px;
  border-radius: 360px;
  font-family: var(--wp--preset--font-family--poppins);
  font-size: var(--wp--preset--font-size--p);
  font-weight: 600;
  line-height: normal;
  transition: all 0.3s ease-out;
}

.custom-btn-1,
.nav-desktop .btn-contact a {
  color: var(--black);
  background: var(--red);
}

.custom-btn-1:hover,
.nav-desktop .btn-contact a:hover {
  color: var(--white);
  background: var(--red-btn);
}

.custom-btn-2 {
  color: var(--white);
  background: var(--black);
}

.custom-btn-2:hover {
  background-color: var(--red-btn);
}

.btn-first-section {
  padding: 12px;
  border: solid 1px var(--red);
  border-radius: 100%;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease-out;
}

.btn-first-section:hover {
  background: rgba(249, 0, 0, 0.4);
}

/* CALLOUTS */

.callout-1 {
  font-family: Righteous !important;
  font-size: var(--wp--preset--font-size--20) !important;
}

/* MISCELANEOUS */

h2,
h3 {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.img-link {
  transform: scale(0.95);
  transition: transform 0.3s ease-out;
}

.img-link:hover {
  transform: scale(1);
}

.line-title {
  background: var(--red);
  padding-inline: 20px;
  border-radius: 360px;
  width: fit-content;
}

mark.has-custom-white-color {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

mark[style="background-color:#500000"] {
  color: var(--white);
  padding-inline: 20px;
  border-radius: 360px;
  width: fit-content;
}

.ol-marker img {
  width: 66px;
}

.title-underline {
  text-decoration: underline;
  text-decoration-thickness: 6px;
  text-decoration-color: var(--red);
  text-underline-offset: 8px;
}

.title-underline-white {
  text-decoration: underline;
  text-decoration-thickness: 6px;
  text-decoration-color: var(--white);
  text-underline-offset: 8px;
}

.list-element {
  position: relative;
}

.list-element::before {
  position: absolute;
  content: "";
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 9px;
  height: 9px;
  border-radius: 100%;
  background: var(--black);
}

/* HERO */

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

.video-hero {
  width: auto !important;
  pointer-events: none !important;
}

.img-hero {
  z-index: 1;
  width: 100% !important;
}

.video-hero {
  z-index: 2;
}

.icon-sound {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  right: 30px;
  bottom: 50px;
  padding: 10px;
  width: 54px;
  height: 54px;
  border: solid 1px;
  border-color: var(--white);
  border-radius: 100%;
  background: rgba(0, 0, 0, 0);
  cursor: pointer;
  transition: background 0.3s ease-out;
  align-self: flex-end;
}

.icon-sound svg {
  fill: var(--white);
  stroke: var(--white);
  transition: fill 0.3s ease-out, stroke 0.3s ease-out;
}

.icon-sound:hover {
  background: var(--white);
}

.icon-sound:hover svg {
  fill: var(--black);
  stroke: var(--black);
}

/* CARD EXPERT */

.grid-cards {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--white) var(--red);
}

.link-card-expert {
  flex: 1 1 0%;
  min-width: 247px;
}

.card-expert {
  width: 100%;
  height: 100%;
}

.img-card {
  position: relative;
  z-index: 1;
}

.img-card-hover {
  position: absolute;
  z-index: 2;
  content: "";
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 19, 19, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

.card-expert:hover .img-card-hover {
  opacity: 1;
}

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

.card-expert:hover .title-card {
  color: var(--black);
}

/* SLIDER HISTORICAL */

.icon-slider-historical {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 100%;
  background: var(--white);
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.1));
}

.icon-slider-historical {
  position: relative;
}

.icon-slider-historical.class-line {
  width: calc(100% * var(--max-posts));
  left: 200%;
  top: 18px;
  height: 1px;
  background: var(--black);
}

.icon-slider-historical::after {
  position: absolute;
  content: "";
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  z-index: 2;
  width: 24px;
  height: 24px;
  border-radius: 100%;
  background: var(--red);
}

.icon-slider-historical::before {
  position: absolute;
  content: "";
  z-index: 1;
  left: 50%;
  top: 50%;
  transform: translateY(-50%) translateX(-50%);
  width: 32px;
  height: 32px;
  border-radius: 100%;
  background: var(--white);
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.1));
}

.icon-slider-historical.class-line::after,
.icon-slider-historical.class-line::before {
  left: 0% !important;
  top: 50% !important;
}

/* GRID EQUIPMENT FLEET */

.div-collapse-machine:has(.title-collapse) {
  border-color: var(--black);
  transition: border-color 0.3s ease-out;
}

.title-collapse p {
  color: var(--black);
  transition: color 0.3s ease-out;
}

.div-collapse-machine .title-collapse svg {
  stroke: var(--black);
  transform: rotate(0);
  transition: all 0.3s ease-out;
}

.div-collapse-machine:has(.title-collapse:hover) {
  border-color: var(--red);
}

.title-collapse:hover p {
  color: var(--red);
}

.title-collapse:hover svg {
  stroke: var(--red);
}

.div-collapse-machine .content-collapse {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.3s ease-out;
}

.div-collapse-machine.active .title-collapse svg {
  transform: rotate(-180deg);
}

.div-collapse-machine.active .content-collapse {
  grid-template-rows: 1fr;
}

/* GALLERY */

@keyframes fadeInProjects {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes fadeUpGallery {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.modale-image {
  transition: height 0.3s ease-out;
}

.container-div-img {
  width: 100%;
  height: calc(100% - 48px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.div-img-modale {
  border-radius: 6px;
  overflow: hidden;
  height: 100%;
}

.img-modale {
  height: 100%;
  object-fit: cover;
}

.img-modale-press {
  height: 100%;
  object-fit: contain;
}

.icon-fermer-modale svg {
  stroke: var(--white);
  transition: stroke 0.3s ease-out;
}

.icon-fermer-modale:hover svg {
  stroke: var(--red);
}

.next-prev-gallery svg {
  stroke: var(--black);
  transition: stroke 0.3s ease-out;
}

.filter-gallery {
  padding: 12px 24px;
  border: solid 1px;
  border-color: var(--black);
  border-radius: 360px;
  background: rgba(0, 0, 0, 0);
  transition: border-color 0.2s ease-out, background 0.3s ease-out;
}

.filter-gallery p {
  font-family: var(--wp--preset--font-family--poppins);
  font-size: var(--wp--preset--font-size--p);
  font-weight: 600 !important;
}

.filter-gallery.active {
  background: var(--red);
  border-color: var(--red);
}

.filter-gallery:hover {
  background: rgba(237, 237, 237, 0.7);
}

.filter-gallery.active {
  pointer-events: none !important;
}

.overlay-loading {
  display: none;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(2px);
}

.overlay-loading.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader {
  width: 60px;
  aspect-ratio: 2;
  --_g: no-repeat radial-gradient(circle closest-side, var(--red) 90%, #0000);
  background: var(--_g) 0% 50%, var(--_g) 50% 50%, var(--_g) 100% 50%;
  background-size: calc(100% / 3) 50%;
  animation: l3 1s infinite linear;
}

@keyframes l3 {
  20% {
    background-position: 0% 0%, 50% 50%, 100% 50%;
  }

  40% {
    background-position: 0% 100%, 50% 0%, 100% 50%;
  }

  60% {
    background-position: 0% 50%, 50% 100%, 100% 0%;
  }

  80% {
    background-position: 0% 50%, 50% 50%, 100% 100%;
  }
}

/* CONTACT */

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

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

.wpforms-field-container label,
legend,
.modern-title {
  font-size: var(--wp--preset--font-size--p) !important;
  font-family: var(--wp--preset--font-family--montserrat) !important;
  margin: 0 !important;
  font-weight: 400 !important;
}

.wpforms-required-label {
  display: none !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;
}

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

.btn-envoi-form {
  padding: 12px 24px !important;
  border-radius: 360px;
  font-family: var(--wp--preset--font-family--poppins) !important;
  font-size: var(--wp--preset--font-size--p) !important;
  font-weight: 600 !important;
  line-height: normal !important;
  color: var(--black) !important;
  background: var(--red) !important;
  transition: all 0.3s ease-out !important;
}

.btn-envoi-form:hover {
  color: var(--white) !important;
  background: var(--red-btn) !important;
}

.modern-title {
  color: var(--black) !important;
}

.wpforms-uploader {
  border-style: solid !important;
  padding: 15px 10px !important;
}

.link-contact svg {
  fill: var(--black);
  transition: fill 0.3s ease-out;
}

.link-contact:hover svg {
  fill: var(--white);
}

.link-contact p,
.link-contact-p {
  position: relative;
  color: var(--black);
  transition: color 0.3s ease-out;
}

.link-contact:hover p {
  color: var(--white);
}

.link-contact p::after,
.link-contact-p::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 1px;
  bottom: 0;
  left: 0;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

.link-contact p::after {
  background: var(--white);
}

.link-contact-p::after {
  background: var(--black);
}

.link-contact:hover p::after,
.link-contact-p:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* MENTIONS LEGALES */

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

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

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

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