/* MEDIA QUERIES */

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

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

@media not all and (min-width: 1025px) {
	.img-modale {
		object-fit: contain !important;
	}
}

@media not all and (min-width: 769px) {
  :root {
    --wp--preset--font-size--64: 48px !important;
    --wp--preset--font-size--54: 36px !important;
    --wp--preset--font-size--50: 40px !important;
    --wp--preset--font-size--40: 32px !important;
    --wp--preset--font-size--38: 34px !important;
    --wp--preset--font-size--32: 24px !important;
    --wp--preset--font-size--24: 20px !important;
  }
}

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

@media not all and (min-width: 391px) {
  :root {
    --wp--preset--font-size--64: 30px !important;
    --wp--preset--font-size--54: 28px !important;
    --wp--preset--font-size--50: 30px !important;
    --wp--preset--font-size--40: 24px !important;
    --wp--preset--font-size--38: 30px !important;
    --wp--preset--font-size--32: 20px !important;
  }

  .icon-burger .bubble-custom-btn {
    display: none !important;
  }
}

/* GENERAL */

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

p:empty {
  display: none;
}

:root {
  --color-black: var(--wp--preset--color--custom-black);
  --color-white: var(--wp--preset--color--custom-white);
  --color-grey: rgba(0, 0, 0, 0.3);
  --custom-padding: var(--wp--custom--wrapper--padding);
  --custom-gap: var(--wp--custom--wrapper--gap);
}

/* HEADER */

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

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

html:not([data-scroll="0"]) .div-header {
  background: var(--color-white);
  -webkit-box-shadow: 0px 5px 15px 5px rgba(0, 0, 0, 0.1);
  box-shadow: 0px 5px 15px 5px rgba(0, 0, 0, 0.1);
}

.logo-header {
  background: var(--color-white);
  transition: background 0.3s ease-out;
}

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

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

.logo-header:hover svg {
  fill: var(--color-white);
}

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

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

.menu-item a {
  transition: color 0.3s ease-out;
}

.nav-desktop .menu-item:not(.menu-item-24) a {
  position: relative;
  font-family: Roboto;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-desktop .menu-item:not(.menu-item:last-child) a::before {
  position: absolute;
  content: '';
  bottom: -30px;
  left: 0;
  width: 0%;
  height: 100%;
  background-repeat: no-repeat;
  transition: width 0.25s ease-out;
}

html[data-scroll="0"] .nav-desktop .menu-item:not(.menu-item:last-child) a::before {
  background-image: url(/wp-content/uploads/2025/08/line-menu-item.svg);
}

html:not([data-scroll="0"]) .nav-desktop .menu-item:not(.menu-item:last-child) a::before {
  background-image: url(/wp-content/uploads/2025/08/line-menu-item-1.svg);
}

.nav-desktop .menu-item:not(.menu-item:last-child) a:hover::before,
.nav-desktop .current-menu-item:not(.menu-item:last-child) a::before {
  width: 100%;
}

html[data-scroll="0"] .nav-desktop .menu-item:not(.menu-item:last-child) a {
  color: var(--color-white);
}

html:not([data-scroll="0"]) .nav-desktop .menu-item:not(.menu-item:last-child) a,
body.page-id-356 .nav-desktop .menu-item:not(.menu-item:last-child) a,
body.error404 .nav-desktop .menu-item:not(.menu-item:last-child) a {
  color: var(--color-black);
}

/* CUSTOM BTN */

.custom-btn,
.nav-desktop .menu-item-24 a {
  display: flex;
  padding-right: 10px;
  font-family: Inter;
  text-transform: uppercase;
  font-weight: 600;
  text-align: center;
}

.icon-burger {
  align-items: stretch;
}

.btn-part-text {
  font-size: 16px !important;
  color: var(--color-white);
  padding: 20px 40px;
  background: var(--color-black);
}

.bubble-custom-btn {
  transform: translateX(10px);
  display: flex;
  height: auto;
  justify-content: center;
  align-items: center;
  width: 64px;
  background: var(--color-white);
  border: solid 1px var(--color-black);
  transition: transform 0.3s ease-out, background 0.3s ease-out;
}

.bubble-custom-btn svg {
  fill: var(--color-black);
  transition: fill 0.3s ease-out;
}

.custom-btn:hover .bubble-custom-btn,
.nav-desktop .menu-item-24 a:hover .bubble-custom-btn {
  transform: translateX(0);
  background: var(--color-black);
}

.custom-btn:hover .bubble-custom-btn svg,
.nav-desktop .menu-item-24 a:hover .bubble-custom-btn svg {
  fill: var(--color-white);
}

.btn-section .bubble-custom-btn svg {
  transform: rotate(90deg);
}

.filter-gallery {
  padding: 20px 40px;
  font-weight: 600;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0);
  border: solid 1px var(--color-black);
  transition: background 0.3s ease-out;
}

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

.filter-gallery:hover,
.filter-gallery.active {
  background: var(--color-black);
}

.filter-gallery:hover p,
.filter-gallery.active p {
  color: var(--color-white);
}

/* MENU MOBILE */

.menu-mobile {
  position: fixed;
  z-index: 2;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100dvh;
  transform: translateX(100%);
  background: var(--color-white);
  transition: transform 0.4s ease-out;
}

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

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

.nav-mobile .menu-item a {
  color: var(--color-black);
  font-family: Roboto;
  font-size: 48px;
  font-weight: 700;
  text-transform: uppercase;
  transition: color 0.3s ease-out;
}

.nav-mobile .menu-item a:hover,
.nav-mobile .current-menu-item a {
  color: rgba(0, 0, 0, 0.4);
}

/* BG GRID */

.bg-grid {
  position: relative;
}

.bg-grid::after,
.menu-mobile::after {
  position: absolute;
  z-index: 1;
  content: '';
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 1px, transparent 1px);
  background-size: 100px 100px;
  background-repeat: repeat;
}

/* FOOTER */

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

.logo-footer:hover {
  background: var(--color-black);
}

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

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

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

.logo-footer:hover .fill-w {
  fill: var(--color-black);
}

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

.link-footer:hover svg {
  fill: rgba(0, 0, 0, 0.4);
}

.link-footer p {
  font-size: var(--wp--preset--font-size--24);
  line-height: 34px;
  color: var(--color-black);
  transition: color 0.3s ease-out;
}

.link-footer:hover p {
  color: rgba(0, 0, 0, 0.4);
}

/* HERO */

.conteneur-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

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

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

.img-hero-filter::after {
  position: absolute;
  content: '';
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
}

/* 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(--color-white);
  transition: stroke 0.3s ease-out;
}

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

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

.next-prev-gallery:hover svg {
  stroke: var(--color-white);
}

/* CONTACT */

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

.link-contact:hover svg {
  fill: rgba(255, 255, 255, 0.6);
}

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

.link-contact:hover p {
  color: rgba(255, 255, 255, 0.6);
}

/* MENTIONS LEGALES */

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

.netdev-mentions-legales a {
  position: relative;
  font-weight: 600;
}

.netdev-mentions-legales a::after {
  position: absolute;
  content: '';
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--color-black);
  transition: width 0.3s ease-out;
}

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

/* FEED INSTA */

.wp-block-elfsight-instagram-feed {
	width: 100% !important;
	background: var(--color-white) !important;
}
