/*  ============= RESETS / CORRECTIONS ============== */
html {
  /* smooth scroll */
  scroll-behavior: smooth;
  transition: 0.5s;
  /* prevent horizontal scroll on mobile */
  overflow-x: hidden;
  max-width: 100vw;
}
* {
  max-width: 100vw;
}
h1, .h1, h2, .h2, h3, .h3 {
  margin-top: 0;
}
.columns .textandimage h1 {
  word-wrap: normal;
}
.h2variant3 {
  margin-bottom: 0;
}

/* sticky correction */
.sticky + .replacer {
  height: 60px !important;
}

/*  ============= MENU ============== */
  .naventures-header-container {
    -webkit-box-shadow: 0px 8px 15px 0px rgba(0,0,0,0.45);
    -moz-box-shadow: 0px 8px 15px 0px rgba(0,0,0,0.45);
    box-shadow: 0px 8px 15px 0px rgba(0,0,0,0.45);
    position: relative;
    width: 100%;
    background-color: #ffffff;
    z-index: 1000;
  }
  .naventures-header a {
    text-decoration: none;
    color: #565656;
    font-family: "Gilroy-Regular",Arial,sans-serif;
    font-size: 18px !important;
    letter-spacing: 2px;
    padding-left: 10px;
  }
  .naventures-header a:hover{
    font-weight: bold;
  }
  @media (max-width: 768px) {
    .naventures-header-container svg {
      max-width: calc(100% - 10px);
      max-height: 60px;
      width: 300px;
    }
  }
  
/*  ============= MOBILE MENU ============== */
  .mobile-menu-container {
    top: 10px;
    width: 100%;
  }
  @media (min-width:992px) {
    .mobile-menu-container {
      display: none;
    }
  }
  .mobile-menu-container .menu-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
    max-width: 100vw;
  }
  .mobile-menu-container .toggler {
    opacity: 0;
  }
  .mobile-menu-container .toggler,
  .mobile-menu-container .hamburger {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    cursor: pointer;
    width: 80px;
    height: 60px;
  }
  .mobile-menu-container .hamburger {
    z-index: 1;
    padding:1rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .mobile-menu-container .hamburger > div {
    position: relative;
    flex: none;
    width: 50%;
    height: 4px;
    background: #00314d;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    border-radius: 2px;
  }
  /*to make 2 lines 10px above from mid hamburger line*/
  .mobile-menu-container .hamburger > div::after,
  .mobile-menu-container .hamburger > div::before {
    content: '';
    position: absolute;
    z-index: 1;
    top: -10px;
    width: 100%;
    height: 4px;
    background: inherit;
    border-radius: 2px;
  }
  /*to shift pseudo after div line 10px below from mid hamburger line*/
  .mobile-menu-container .hamburger > div::after{
    top: 10px;
  }
  .mobile-menu-container .menu-wrap .toggler:checked + .hamburger > div {
    transform: rotate(135deg);
  }
  /* Turns Lines Into X */
  .mobile-menu-container .menu-wrap .toggler:checked + .hamburger > div:before,
  .mobile-menu-container .menu-wrap .toggler:checked + .hamburger > div:after {
    top: 0;
    transform: rotate(90deg);
  }

  /* Rotate On Hover When Checked */
  .mobile-menu-container .menu-wrap .toggler:checked:hover + .hamburger > div {
    transform: rotate(225deg);
  }
  .mobile-menu-container .menu-wrap .toggler:checked ~ #nav {
    opacity:1;
    visibility: visible;
    height: calc(100vh - 60px);
  }
  .mobile-menu-container #nav {
    padding:1% 3% 1% 0 ;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: flex-end;
    opacity:0;
    transition: all 400ms ease;
    background-color: rgba(0, 0, 0, 0.9);
    margin-top: 65px;
    visibility: hidden;
    height: 0;
  }
  .mobile-menu-container .menu-wrap .toggler:checked ~ #nav > .h3variant3 {
    margin-right: 10px;
  }
  .mobile-menu-container #nav > .h3variant3 {
    width: 100%;
    margin: 10px;
    cursor: pointer;
    color: #fff;
    text-align: right;
    transition: all 0.4s ease;
    margin-right: -220px;
    letter-spacing: 2px;
  }
  .mobile-menu-container #nav>.h3variant3:hover{
    color: #E41C23;
    text-decoration: none;
  }

/*  ============= COMMON CLASSES ============== */

/* re-usable class to force left align */
@media only screen and (max-width: 767px) {
  .xs-align-center,
  .xs-align-center * {
    text-align: left;  
  }
}

/* Head banner */
@media (min-width: 992px) {
  .naventure-head-ban {
    height: calc(100vh - 80px) !important;
    max-height: 1200px !important;
    background-position: bottom;
    background-color: #000;
  }
  .naventure-head-ban .panelContainerStyle2 {
    padding-top: 30vh;
  } 
}
@media (max-width: 991px) {
  .naventure-head-ban {
    height: calc(100vh - 65px) !important;
    max-height: 1200px !important;
    position: relative;
    background-position: center;
    background-color: #000;
  }
  .naventure-head-ban .col-xs-12.col-sm-12 {
    position: absolute;
    height: 100% !important;
    background-position: center;
  }
  .naventure-head-ban .panelContainerStyle2 {
    padding-top: 10vh;
  }
}
/* Prevent bad behavior on portrait mode */
@media (max-aspect-ratio: 1/1) {
  .naventure-head-ban {
    max-height: 768px !important;
  }
  .naventure-head-ban .panelContainerStyle2 {
    padding-top: 15vh;
  }
}
/* Head title */
.naventure-head-ban .h1variant4 {
  font-size: 50px;
  line-height: 50px;
  word-break: normal;
  margin-bottom: 0px;
  text-align: left;
}
.naventure-head-ban .h1variant4 u {
  color: #fff;
  text-decoration: none;
}
@media (max-width: 991px) {
  .naventure-head-ban .h1variant4 {
    font-size: 45px;
  }
}
@media (max-width: 400px) {
  .naventure-head-ban .h1variant4 {
    font-size: 35px;
    line-height: 40px;
  }
}
/* animation on head title */
@keyframes showTitle {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes colorTitle {
  from {
    color: inherit;
  }
  to {
    color: #EE1D23;
  }
}

/* left vertical border */
.border-left {
  border-left: 2px solid #494949;
  padding-left: 10px;
}
/* only desktop border */
@media (min-width: 768px) {
  .panelContainer.border-sm {
    border-width: 2px;
  }
}

@media (max-width: 767px){
  .border-sm {
    border-width: 0;
  }
  .border-left.border-sm {
    padding-left: 0px;
  }
}


/*  ============= HOME PAGE Specifics ============== */

/* animation zone */
.vh-block {
  position: relative;
  width: 100%;
  height: 100vh;
  max-height: 1200px;
  background-position: center;
  overflow: hidden;
  min-height: 500px;
}
.vh-block:first-child {
  background-image: url(/content/dam/bnc/entreprise/naventures/ban/accueil-banniere1-centre-2000x1125.jpg);
  background-position: top center;
}
.vh-block:nth-child(2) {
  background-image: url(/content/dam/bnc/entreprise/naventures/ban/accueil-banniere3-centre-2000x1125.jpg);
}

.half-block {
  position: absolute;
  width: 50%;
  min-width: 570px;
  max-width: 100%;
  min-height: 250px;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.9);
  transition: 2s;
  padding: 20px 60px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: center;
}
.half-block-1 {
  right: -50%;
}
.half-block-2 {
  left: -50%;
}
.half-block * { 
  color: #00314D;
}
.half-block h2 {
  font-weight: bold;
  color: #E41C23;
}

/*  Animation zone - mobile */
@media (max-width: 768px) {
  .vh-block {
    background-position: top !important;
    background-size: 100% auto !important;
    background-repeat: no-repeat !important;
    height: auto;
    padding-top: 300px;
    border: 0;
  }
  .half-block {
    height: auto;
    min-width: auto;
    width: 100%;
    position: static;
    padding: 20px;
    background-color: #fff;
  }
  .half-block-1 {
    right: -100%;
  }

  .half-block-2 {
    left: -100%;
  }
  .half-block h2 {
    font-size: 20px;
    line-height: 23px;
    padding-right: 0;
  }
}
@media (max-width: 500px) {
  .vh-block {
    background-size: auto 300px !important;
  }
}

/*  ============= PORTFOLIO specifics ============== */
/* Head banner */
.naventure-head-ban.portfolio-naventure-head-ban .panelContainerStyle2 {
  padding-top: 20vh;
}
@media (max-width: 991px) {
  .naventure-head-ban.portfolio-naventure-head-ban .panelContainerStyle2 {
    padding-top: 25vh;
  }
}
.naventure-head-ban.portfolio-naventure-head-ban .plainhtmlcode {
  border-left: solid 3px red;
  overflow: hidden;
}
.naventure-head-ban.portfolio-naventure-head-ban .h1variant4 {
  padding: 0 0 0 30px;
  animation-duration: 2s;
  animation-delay: 2s;
  animation-name: slideTitle;
  animation-iteration-count: 1;
  opacity: 0;
  animation-fill-mode: forwards;
  text-align: left;
}
@keyframes slideTitle {
  0% {
    margin-left: -300px;
    margin-right: 300px;
    opacity: 0;
  }
  /*75% {
    margin-left: -100px;
    opacity: 0;
  }*/
  100% {
    margin-left: 0;
    margin-right: 0;
    opacity: 1;
  }
}
.naventure-head-ban .h1variant4 u {
  animation-duration: 1s;
  animation-delay: 3s;
  animation-name: colorTitle;
  animation-iteration-count: 1;
  animation-fill-mode: forwards; 
}

/* Portoflio companies logos */
.portfolio-companies .textandimage [class*="modal"] {
  min-height: 150px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.portfolio-companies [class*="open-modal"] {
  cursor: pointer;
  margin: 20px 0;
}
.portfolio-companies [class*="modal"] img.image-responsive,
.portfolio-companies .modal-dialog img {
  max-height: 85px;
  max-width: 200px;
  width: auto;
}
.portfolio-companies [class*="open-modal"]:hover a {
  text-decoration: underline;  
}
.portfolio-companies .modal-dialog { 
  z-index: 1050;
  margin: 75px 10px;
}
.portfolio-companies .modal-dialog .modal-footer { 
  margin: 0 8%;
}
@media (min-width: 768px) {
  .portfolio-companies .modal-dialog {
    width: 70vw;
    margin: 65px auto;
  }
}
.portfolio-companies .modal-dialog .modal-body p {
  padding: 15px 5vw;
}
.portfolio-companies .modal-dialog button.close {
  font-size: 35px;
  position: relative;
}
.portfolio-companies .modal-dialog button.close::after {
  content: "";
  position: absolute;
  top: -1px;
  left: -9px;
  border: 2px solid #000;
  height: 35px;
  width: 35px;
  border-radius: 50%;
}

/*  ============= PRESS specifics ============== */
@media (max-aspect-ratio: 1/1) {
  .press-naventure-head-ban .panelContainerStyle2 {
    padding-top: 27vh;
  }
}
/* head banner */
@media(min-width: 992px) and (max-width: 1024px) {
  .press-naventure-head-ban .panelContainerStyle2 {
    padding-top: 22vh;
  }
}
@media(max-width: 991px) {
  .press-naventure-head-ban,
  .press-naventure-head-ban .col-xs-12.col-sm-12 {
    background-position: bottom !important;
  }
}
@media(min-width: 768px) and (max-width: 991px) {

}
@media(max-width:767px) {
  .press-naventure-head-ban .panelContainerStyle2 {
    padding-top: 58vh;
  }
  .press-naventure-head-ban .text p {
    display: none;
  }
}

/* liste presse */
.press-date {
  padding-right: 15px;
}
.press-date .pvariant1 {
  margin-bottom: 0;
}
.press-date .legalnotes1 {
  color: #e41c23;;
}
.press-list > .responsivegrid > .aem-Grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.press-list a.btnRTE6 {
  white-space: normal;
  font-size: 16px;
}

.press-list .responsivegrid.padding_10 {
  padding: 15px 0;
}

/*  ============= TEAM specifics ============== */
.red-separator {
	border-right: solid 3px red;
}
.photo-profile {
	cursor: pointer;
}
.photo-profile img {
	width: 60%;
}

    .modal-dialog .modal-body p {
        padding: 15px 5vw;
    }
    .modal-dialog button.close {
        font-size: 35px;
        position: relative;
    }
    .modal-dialog button.close::after {
        content: "";
        position: absolute;
        top: -1px;
        left: -9px;
        border: 2px solid #000;
        height: 35px;
        width: 35px;
        border-radius: 50%;
    }



@media (max-width: 767px) {
	.fix-ban-xs {
		background-size: cover;
		background-image: url("/content/dam/bnc/entreprise/naventures/ban/ban-haut-team-mobile.jpg");
	}
	.fix-ban-xs .chapeau1 b {
		font-weight: normal;
	}
	.fix-ban-xs:nth-child(2) {
		background-size: cover !important;
		background-image: none !important;
		height: 0;
	}
	.red-separator {
		border-right: none;
	}
} 