/* @import url('http://example.com/example_style.css'); */

/***********************************************/
/* CSS @imports must be at the top of the file */
/* Add them above this section                 */
/***********************************************/

/*****************************************/
/* Start your style declarations here    */
/*****************************************/
@font-face {
  font-display: swap;
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300 900;
  src: url("https://524521.fs1.hubspotusercontent-na1.net/hubfs/524521/ADIMEO/Font/Montserrat-VF.woff2") format("woff2");
}

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.section-header-navigation {
	background: transparent;
	height: 80px;
	left: 0;
	position: fixed;
	right: 0;
	top: 0;
	z-index: 15;
  border-bottom: 1px solid transparent;
}


.section-header-navigation .menu-inner {
	align-items: center;
	display: flex;
	height: 100%;
	justify-content: space-between;
	position: relative;
	transition: all .3s;
	width: 100%;
}
.section-header-navigation .menu-inner .navigation-logo {
	align-items: center;
	bottom: 0;
	display: flex;
	height: 35px;
  position: static;
	justify-content: space-between;
	margin: auto;
  left: 0;
	max-width: 139px;
	text-decoration: none;
	transform: none;
	width: 100%;
}

.section-header-navigation .navigation-logo img {
  height: 35px;
}

.section-header-navigation .container {
  height: 100%;
}

.section-header-navigation nav > ul {
  display: flex;
  gap: 15px;
  padding: 0;
}

.section-header-navigation .submenu {
  position: absolute;
  @media screen and (max-width: 1300px) {
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    position: fixed;
    overflow-y: auto;
  }
}

#Adimeo--mainNav .cta-inner .adimeo-contact::before {
  display: none;
}

.main-nav li {
  list-style: none;
  margin: 0 15px;
}

.main-nav li.menu-depth-1 > a {
  text-transform: uppercase;
  color: #343434;
}

.main-nav li a {
  color: #fff;
  font-size: 16px;
  text-decoration: none;
  font-weight: 700;
}

.section-header-navigation .menu-inner .mobile-menu-button {
  display: none;
  &:focus-visible {
    outline: 1px solid currentColor;
  }
}

.menu-depth-3 > a {
  font-variation-settings: "wght" 500;
  transition: all ease-in-out;
}

.menu-depth-3 > a:hover,
.menu-depth-3 > a:focus-visible {
  font-weight: 700;
  font-variation-settings: "wght" 700;
}

.submenu {
  display: none;
}

body.js-submenu-open,
body.js-mobile-menu-open {
  overflow-y: hidden;
}

.menu-depth-1.open > .submenu,
.menu-depth-2.open > .submenu {
  display: block;
}

.items-menu .cta-inner a {
  display: none;
}

.submenu--inner::after {
  content: "";
  display: block;
  height: 70px;
	position: sticky;
	bottom: 0;
  pointer-events: none;
  background: transparent;
  transition: opacity 250ms ease-in-out;
  margin-top: -70px;
}


/* Animation */
@keyframes bounce {
  0%, 100% {
    transform: translate(-50%, 0);
    opacity: 0.7;
  }
  50% {
    transform: translate(-50%, 5px);
    opacity: 1;
  }
}

.mobile-menu-button--close {
  background: transparent;
  appearance: none;
  border: none;
  color: #fff;
  svg {
    pointer-events: none;
  }
  &:focus-visible {
    outline-color: currentColor;
  }
}

body.js-header-scrolled .section-header-navigation {
  background-color: #1D2434;
  .navigation-logo img:first-of-type {
    display: none;
  }
  .navigation-logo img:last-of-type {
    display: block;
  }
  .main-nav li.menu-depth-1 > a {
    color: #FFF;
  }
}

/** Megamenu **/
@media screen and (min-width: 1300px) {
  .navigation-logo img:last-of-type {
    display: none;
  }
  .section-header-navigation:hover,
  .section-header-navigation:focus-within,
  body.js-submenu-open .section-header-navigation {
    background-color: #1D2434;
    border-color: #4E4E4E;
    .navigation-logo img:first-of-type {
      display: none;
    }
    .navigation-logo img:last-of-type {
      display: block;
    }
    .main-nav li.menu-depth-1 > a {
      color: #FFF;
    }
  }
  
  .menu-depth-1 > a {
    position: relative;
    &::after {
      content: "";
      left: 0;
      position: absolute;
      width: 100%;
      top: calc(100% + 26px);
      height: 4px;
    }
  }
  
  .menu-depth-1.open > a::after {
    background-color: #DD1C4B;
  }
  
  .submenu-depth-1 {
    position: absolute;
    top: 80px;
    width: 100vw;
    left: 50%;
    margin-left: -50vw;
    background-color: #1D2434;
    z-index: 101;
    height: 435px;
    /*display: none;*/
    & > .innerCenter {
      display: flex;
      position: relative;
    }
    & > .innerCenter > .submenu--sideContent {
      width: 400px;
      padding: 50px 0;
      padding-right: 40px;
      height: 100%;
      flex: 0 0 400px;
    }
    & > .innerCenter > .submenu--rightContent {
      background-color: rgba(99, 141, 237, 0.2);
    }
  }
  .menu-depth-2 > a {
    background-size: 0% 1px;
    transition: background-size 0.3s;
  }
  .menu-depth-2 > a:focus-visible,
  .menu-depth-2 > a:hover,
  .menu-depth-2 > a[aria-expanded="true"] {
    font-weight: 900;
    background-image: linear-gradient(#DD1C4B, #DD1C4B);
    background-position: 0% calc(100%);
    background-repeat: no-repeat;
    background-size: 100% 1px;
    padding-bottom: 5px; 
  }
  .submenu--inner.scrollable::after {
    background: linear-gradient(0deg,rgba(29, 36, 52, 0.5) 0%, rgba(29, 36, 52, 0) 70%);
  }

  .submenu--inner.scrollable::before {
    content: "▼"; /* tu peux mettre "\2193" aussi */
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    color: rgba(255,255,255,255.6);
    animation: bounce 1.5s infinite;
    pointer-events: none;
    z-index: 10;
  }
}
@media screen and (min-width: 1300px) {
  .js-submenu-depth-2-open .submenu--list:has(.menu-depth-2); {
    width: 400px;
  }
  .submenu-depth-1 > .innerCenter::after {
    content: "";
    width: max(calc((100vw - 100%) /2), 30px);
    position: absolute;
    left: 100%;
    height: 100%;
    background-color: rgba(99, 141, 237, 0.2);
    @media (max-width: 1640px) {
      left: calc(100% - 30px);
    }
  }
  .js-submenu-depth-1-open .submenu-depth-1 > .innerCenter::after {
    background-color: #2b3959;
  }
  .js-submenu-depth-2-open .submenu-depth-1 > .innerCenter::after {
    background-color: #32436c;
  }
}

.submenu-depth-1 li.father > a::after {
    background-color: currentColor;
    content: "";
    display: inline-block;
    height: 1em;
    -webkit-mask-image: url(https://524521.fs1.hubspotusercontent-na1.net/hubfs/524521/ADIMEO/svg-icons/arrow-left.svg);
    mask-image: url(https://524521.fs1.hubspotusercontent-na1.net/hubfs/524521/ADIMEO/svg-icons/arrow-left.svg);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    pointer-events: none;
    user-select: none;
    width: 1em;
    vertical-align: middle;
    margin-bottom: 1px;
}

.backSubmenu {
  display: none;
}

.submenu-title {
  font-size: 48px;
  font-weight: 800;
  text-transform: uppercase;
  color: #FEF8F4;
  margin-bottom: 35px;
  margin-top: 0;
  line-height: 1.4;
}

.submenu-title-span {
  display: block;
}

.submenu-depth-2 .submenu-title {
  display: none;
  font-size: 24px;
}

.submenu-description {
  font-weight: 500;
  color: #fff;
  font-size: 16px;
}

.main-nav li a.submenu-link {
  font-weight: 500;
  color: #fff;
  font-size: 16px;
}

.closeSubmenu {
  position: absolute;
	background: transparent;
	border: none;
	z-index: 101;
	top: 10px;
	color: #fff;
  font-size: 14px;*
  padding: 0;
  svg {
    pointer-events: none;
    height: 0.9em;
    width: auto;
    margin-right: 5px;
  }
  &:focus-visible {
    outline: 1px solid currentColor;
  }
}

.submenu--rightContent {
  @media screen and (min-width: 1300px) {
    width: 100%;
    height: 100%;
    flex: 1 1 100%;
    position: relative;
    .submenu--inner {
      height: 100%;
      overflow-y: auto;
    }
    .submenu--list {
      padding: 20px 50px;
    }
  }
  li a {
    color: #FEF8F4;
  }
}

.submenu-depth-2 {
  @media screen and (min-width: 1300px) {
    top: 0;
    height: 100%;
    left: 400px;
    width: calc(100% - 400px);
    .innerCenter {
      padding: 0;
    }
    .submenu--rightContent {
      background-color: #32436c;
    }
    li {
      padding: 10px 5px;
    }
    .menu-item--parent-link {
      padding: 30px 65px;
      margin-left: -50px;
      margin-top: -20px;
      & > p {
        margin: 0;
        color: #fff;
      }
    }
  }
  li a {
    font-weight: 500;
  }
}

.menu-depth-2 {
  padding: 8px 5px;
  margin: 10px 0;
}

.menu-depth-3 {
  margin: 10px 0;
}

@media screen and (max-width: 1366px) {
  header .menu-inner > .cta-inner a {
    font-size: 14px;
  }
}

/** Mobile megamenu **/

@media screen and (max-width: 1300px) {
  .section-header-navigation .menu-inner .mobile-menu-button:not(.mobile-menu-button--close) {
    display: flex;
  }
  body.js-mobile-menu-open .section-header-navigation .menu-inner .mobile-menu-button:not(.mobile-menu-button--close) {
    display: none;
  }
  .navigation-logo img:last-of-type {
    display: none;
  }
  
  header .menu-inner > .cta-inner a {
    font-size: 0;
  }
  
  .mobile-menu-button--close {
    display: none;
  }
  
  .section-header-navigation .menu-inner .mobile-menu-button {
    margin-left: auto;
    margin-right: 20px;
  }
  
  .items-menu .cta-inner a {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 20px;
  }
  
  .menu-item--parent-link {
    display: none;
  }
  
  body.js-submenu-open .section-header-navigation,
  body.js-mobile-menu-open .section-header-navigation,
  .section-header-navigation:hover,
  .section-header-navigation:focus-within {
    background-color: #1D2434;
    .navigation-logo img:first-of-type {
      display: none;
    }
    .navigation-logo img:last-of-type {
      display: block;
    }
    .menu-inner .left.mobile-menu-button {
      color: #fff;
      .hamburger div {
        background-color: #fff;
      }
      .menu-title {
        color: inherit;
      }
    }
  }
  body.js-mobile-menu-open .main-nav {
    display: block;
  }
  
  body.js-mobile-menu-open .mobile-menu-button.mobile-menu-button--close {
    display: block;
  }
  
  .submenu {
    overflow-x: hidden;
  }
  
  .submenu-title {
    font-size: 40px;
    margin-bottom: 16px;
  }
  
  .main-nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: #1D2434;
    overflow-y: auto;
    padding: 20px 30px;
    display: none;
    .items-menu {
      display: block;
    }
    & ul li {
      margin: 44px 0;
    }
    & ul li:first-child,
    & ul li.menu-item--parent-link + li {
      margin-top: 0;
    }
    & ul li:last-child {
      margin-bottom: 0;
    }
    & ul li.father > a {
      display: block;
      position: relative;
      padding-right: 1em;
    }
    & li.menu-depth-1 > a {
      color: #fff;
      font-size: max(2vw, 16px);
    }
    .items-menu > li.father > a::after {
      content: "";
      position: absolute;
      right: 0;
      background-color: currentColor;
      display: inline-block;
      height: 1em;
      margin: auto 0;
      -webkit-mask-image: url(https://524521.fs1.hubspotusercontent-na1.net/hubfs/524521/ADIMEO/svg-icons/arrow-right-main-items.svg);
      mask-image: url(https://524521.fs1.hubspotusercontent-na1.net/hubfs/524521/ADIMEO/svg-icons/arrow-right-main-items.svg);
      -webkit-mask-repeat: no-repeat;
      mask-repeat: no-repeat;
      -webkit-mask-size: contain;
      mask-size: contain;
      width: 0.7em;
      vertical-align: middle;
      margin-bottom: 2px;
      user-select: none;
      pointer-events: none;
    }
    & ul li.menu-depth-2:first-child,
    & ul li.menu-depth-3:first-child {
      margin-top: 0;
    }
    & ul li.menu-depth-2,
    & ul li.menu-depth-3 {
      margin: 22px 0;
    }
  }
  .submenu-depth-1 {
    background-color: #1D2434;
    padding: 44px 0 0;
    z-index :1;
  }
  .submenu-depth-2 {
    background-color: #2b3959;
    padding: 44px 0 0;
    z-index: 2;
    .submenu-title {
      display: block;
      margin-bottom: 0;
    }
    .submenu--rightContent {
      background-color: #32436c;
    }
  }
  .innerCenter {
    display: flex;
    flex-direction: column;
  }
  .closeSubmenu {
    display: none;
  }
  .backSubmenu {
    display: block;
    margin-bottom: 24px;
    appearance: none;
    background: transparent;
    border: none;
    font-size: 16px;
    font-weight: 400;
    color: #fff;
    display: inline-block;
    width: auto;
    align-self: flex-start;
    padding: 0;
    &::before {
      background-color: currentColor;
      content: "";
      display: inline-block;
      height: 1em;
      margin: auto 0;
      -webkit-mask-image: url(https://524521.fs1.hubspotusercontent-na1.net/hubfs/524521/ADIMEO/svg-icons/arrow-right-main-items.svg);
      mask-image: url(https://524521.fs1.hubspotusercontent-na1.net/hubfs/524521/ADIMEO/svg-icons/arrow-right-main-items.svg);
      -webkit-mask-repeat: no-repeat;
      mask-repeat: no-repeat;
      -webkit-mask-size: contain;
      mask-size: contain;
      transform-origin: center;
      width: 0.7em;
      vertical-align: middle;
      margin-bottom: 2px;
      transform: rotateY(180deg);
      margin-right: 8px;
    }
  }
  .submenu--sideContent {
    padding-bottom: 44px;
  }
  .submenu--rightContent {
    margin-left: -30px;
    margin-right: -30px;
    padding: 44px 30px;
    flex: 1;
    background-color: #2b3959;
  }
  .submenu--list {
    padding-left: 0;
    li {
      margin: 0;
    }
  }
  li.menu-depth-2 a {
    font-size: max(1.5vw, 16px);
  }
  li.menu-depth-3 a {
    font-size: max(2vw, 16px);
  }
  
  .submenu-depth-1 li.father > a::after {
    background-color: currentColor;
    content: "";
    display: inline-block;
    height: 0.9em;
    -webkit-mask-image: url(https://524521.fs1.hubspotusercontent-na1.net/hubfs/524521/ADIMEO/svg-icons/arrow-left.svg);
    mask-image: url(https://524521.fs1.hubspotusercontent-na1.net/hubfs/524521/ADIMEO/svg-icons/arrow-left.svg);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    pointer-events: none;
    position: absolute;
    right: 0;
    user-select: none;
    width: 0.9em;
    margin-bottom: 0;
    top: 0.2em;
  }
  .submenu.scrollable::after {
    background: linear-gradient(0deg,rgba(29, 36, 52, 0.5) 0%, rgba(29, 36, 52, 0) 70%);
  }

  .submenu.scrollable::before {
    content: "▼"; /* tu peux mettre "\2193" aussi */
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    color: rgba(255,255,255,255.6);
    animation: bounce 1.5s infinite;
    pointer-events: none;
    z-index: 10;
  }
  .section-header-navigation .innerCenter.container {
    /*height: auto;*/
  }
}