@charset "UTF-8";

/*!
 * ConvergenWeb - info@convergenceweb.ch
 * menuhide.css 
 * Copyright (c) 2021 ConvergenceWeb
 */

//* -------------------------------- 

Primary style

-------------------------------- */
*, *::after, *::before {
  box-sizing: border-box;
}

/* -------------------------------- 

1. Auto-Hiding Navigation - Simple

-------------------------------- */
.cd-auto-hide-header {
  position: fixed;
  z-index: 9999;
  width: 100vw;
  height: 12vh;/* hauteur d */
  background-color: rgba(0, 0, 0, 0.85);
  /* Force Hardware Acceleration */
  -webkit-transform: translateZ(0);
          transform: translateZ(0);
  will-change: transform;
  -webkit-transition: -webkit-transform .5s;
  transition: -webkit-transform .5s;
  transition: transform .5s;
  transition: transform .5s, -webkit-transform .5s;
  display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
}
.cd-auto-hide-header::after {
  clear: both;
  content: "";
  display: block;
}
.cd-auto-hide-header.is-hidden {
  -webkit-transform: translateY(-100%);
      -ms-transform: translateY(-100%);
          transform: translateY(-100%);
}


.cd-auto-hide-header .logo {
    height: 80%;
    width: 20vw;
    padding-left: 2vw;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    align-content: center;
}
.cd-auto-hide-header .logo a, .cd-auto-hide-header .logo img {
  width: auto;
  height: 90%;
}


.cd-auto-hide-header .nav-trigger span {
  /* vertically align inside parent element */
  height:100%;
  width:14vw;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: center;
    align-items: center;
    justify-content: center;

}

.cd-auto-hide-header .nav-trigger em::before, .cd-auto-hide-header .nav-trigger em::after {
  position: absolute;
  content: '';
  left: 0;
  -webkit-transition: -webkit-transform .2s;
  transition: -webkit-transform .2s;
  transition: transform .2s;
  transition: transform .2s, -webkit-transform .2s;
}
  /*  ICON barre du haut */
.nav-trigger em::before {
  position: absolute;
  height: 0.3vh;
  width: 4vw;
  background-color: #f11d1d;
  -webkit-transform: translateY(-6px);
      -ms-transform: translateY(-6px);
          transform: translateY(-6px);
   display:flex;
}

/*  ICON barre du milieu */
.nav-trigger em {
   position: absolute;
   height: 0.3vh;
   width: 4vw;
   background-color: #f11d1d;
  -webkit-transition: background-color .2s;
  transition: background-color .2s;
   display:flex;
}

/* ICON barre du bas */
.nav-trigger em::after {
  position: absolute;
  height: 0.3vh;
  width: 4vw;
  background-color: #f11d1d;
  -webkit-transform: translateY(6px);
      -ms-transform: translateY(6px);
          transform: translateY(6px);
   display:flex;
}

/* ICON barre du milieu quand menu ouvert */
.cd-auto-hide-header.nav-open .nav-trigger em {
  background-color: rgba(255, 255, 255, 0);
}

 /* rotation barre du haut ouverture menu */
.cd-auto-hide-header.nav-open .nav-trigger em::before {
  -webkit-transform: rotate(-45deg);
      -ms-transform: rotate(-45deg);
          transform: rotate(-45deg);
}

 /* rotation barre du bas ouverture menu */
.cd-auto-hide-header.nav-open .nav-trigger em::after {
  -webkit-transform: rotate(45deg);
      -ms-transform: rotate(45deg);
          transform: rotate(45deg);
}

.cd-primary-nav {
    height: 8vh;
	width:inherit;
	display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
}
.cd-primary-nav > ul {
  width: 100%;
  box-shadow: none;
  margin-bottom:0;
  padding-right:5vw;
  display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
}
.cd-primary-nav > ul a {
  /* target primary-nav links */

  font-family:'Dongle', sans-serif;
  font-size:2.5vh;
  font-weight: 300;
  color: #fff;
  text-decoration: none;
}

.cd-primary-nav > ul p {
  /* target primary-nav links */
  display: block;
  height: 50px;
  line-height: 50px;
  padding-left: 5%;
  font-family:'Dongle', sans-serif;
  font-weight: 100;
  color: #ececed;
  font-size: 1vw;
  text-decoration: none;
  border-top: 1px solid #ececed;
}

/* COULEUR PASSAGE SOURIS HOVER */
.cd-primary-nav > ul a:hover, .cd-primary-nav > ul a.active {
  color: #f11d1d;
  text-shadow: 0 0 10px #000;
}

.nav-open .cd-primary-nav ul,
.cd-primary-nav ul:target {
  /* 
  	show primary nav - mobile only 
  	:target is used to show navigation on no-js devices
  */
  height:90vh;
  background-color: rgba(250, 231, 207, 0.9);
  display:flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: space-between;
}

/******************************** Xs-Sm-Md BOOTSTRAP MEDIA QUERIES ********************************/

/* Md Screen portrait */
@media screen and (max-width: 1199px) {

/* CENTRAGE LOGO */
.cd-auto-hide-header .logo {
  position: absolute;
  top: 50%;
  left: 50%;
  bottom: auto;
  -webkit-transform: translate(-50%, -50%);
      -ms-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
}
.cd-primary-nav {
    justify-content: flex-start;
	height: 12vh;
}
/* RÉGLAGE LOGO MENU */
.cd-auto-hide-header .logo a, .cd-auto-hide-header .logo img {
  width: auto;
  height: 6vh;
}
/* RÉGLAGES MENU DÉROULÉ */
.cd-primary-nav > ul {
  position: absolute;
  z-index: 9999;
  top: 12vh;
  left: 0;
  width: 100%;
  display: none;
  height:auto;
  padding-right:0;
}
/* RÉGLAGES FONT MENU DÉROULÉ */
.cd-primary-nav > ul a {
  /* target primary-nav links */
	font-size: 4vh;
    height: 6.8vh;
    line-height: 100%;
    text-align: center;
    text-decoration: none;
    display: flex;
}
.nav-open .cd-primary-nav ul, .cd-primary-nav ul:target {
	height: 88vh;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
}
}




/* Md Screen portrait */
@media screen and (min-width: 768px)and (max-width: 1199px) and (orientation: landscape){
.cd-auto-hide-header {
  height: 12vh;/* hauteur d */
}

.cd-primary-nav {
  height: 12vh;
}
/* RÉGLAGE LOGO MENU */
.cd-auto-hide-header .logo a, .cd-auto-hide-header .logo img {
  display: block;
  width: 15vw;
  height: auto;
}
/* RÉGLAGES MENU DÉROULÉ */
.cd-primary-nav > ul {
  position: absolute;
  z-index: 9999;
  top: 12vh;
  left: 0;
  width: 100%;
  display: none;
  height:90vh;
}
.cd-primary-nav > ul li {
  /* target primary-nav links */
  width:100vw;
  display: flex;
}
.cd-primary-nav > ul a {
  /* target primary-nav links */
  display: flex;
  width:50vw;
  justify-content: center;
  vertical-align: middle;
  align-items: center;
  flex-wrap: nowrap;
  flex-direction: column;
  height: auto;
  line-height: 12vh;
  text-align:center;
  color: #ececed;
  font-size: 3.5vw;
  text-decoration: none;
  border-top: 0px solid #ececed;
  z-index:9999;
  padding-left: 0;
}
  /*  ICON barre du haut */
.nav-trigger em::before {
  height: 0.3vh;
  width: 4vw;
}

/*  ICON barre du milieu */
.nav-trigger em {
   height: 0.3vh;
   width: 4vw;
}

/* ICON barre du bas */
.nav-trigger em::after {
  height: 0.3vh;
  width: 4vw;
}
}

/* Sm Screen landscape iPhone 11, 12, pro & pro max */
@media screen and (min-width: 812px) and (max-width: 926px) and (-webkit-min-device-pixel-ratio: 2) and (orientation: landscape) {
.cd-auto-hide-header {
  height: 16vh;/* hauteur d */
}

.cd-primary-nav {
  height: 16vh;
}
/* RÉGLAGE LOGO MENU */
.cd-auto-hide-header .logo a, .cd-auto-hide-header .logo img {
  height: 14vh;
}
/* RÉGLAGES MENU DÉROULÉ */
.cd-primary-nav > ul {
  top: 14vh;
  display: none;
  height:86vh !important;
}
.cd-primary-nav > ul li {
  /* target primary-nav links */
  width:100vw;
  display: flex;
}
.cd-primary-nav > ul a {
  /* target primary-nav links */
  display: flex;
  width:50vw;
  justify-content: center;
  vertical-align: middle;
  align-items: center;
  flex-wrap: nowrap;
  flex-direction: column;
  height: auto;
  line-height: 12vh;
  text-align:center;
  color: #ececed;
  font-size: 3.5vw;
  text-decoration: none;
  border-top: 0px solid #ececed;
  z-index:9999;
  padding-left: 0;
}
  /*  ICON barre du haut */
.nav-trigger em::before {
  height: 0.5vh;
  width: 4vw;
}

/*  ICON barre du milieu */
.nav-trigger em {
   height: 0.5vh;
   width: 4vw;
}

/* ICON barre du bas */
.nav-trigger em::after {
  height: 0.5vh;
  width: 4vw;
}
}

/* Md Screen portrait */
@media screen and (min-width: 768px) and (max-width: 1199px) and (orientation: portrait) {
.cd-primary-nav > ul a {
    font-size: 4.5vw;
}
}

/* Xs Screen landscape */
@media screen and (max-width: 767px)and (orientation: landscape){
.cd-auto-hide-header {
  height: 16vh;/* hauteur d */
}

.cd-primary-nav {
  height: 16vh;
}
/* RÉGLAGE LOGO MENU */
.cd-auto-hide-header .logo a, .cd-auto-hide-header .logo img {
  height: 14vh;
}
/* RÉGLAGES MENU DÉROULÉ */
.cd-primary-nav > ul {
  top: 16vh;
  display: none;
  height:84vh !important;
}
/* RÉGLAGES FONT MENU DÉROULÉ */
.cd-primary-nav > ul li {
  /* target primary-nav links */
  width:100vw;
  display: flex;
}
.cd-primary-nav > ul a {
  /* target primary-nav links */
  display: flex;
  width:50vw;
  justify-content: center;
  vertical-align: middle;
  align-items: center;
  flex-wrap: nowrap;
  flex-direction: column;
  height: auto;
  line-height: 12vh;
  text-align:center;
  color: #ececed;
  font-size: 7vh;
  text-decoration: none;
  border-top: 0px solid #ececed;
  z-index:9999;
  padding-left: 0;
}
/*  ICON barre du haut */
.nav-trigger em::before {
  height: 0.3vh;
  width: 4vw;
}

/*  ICON barre du milieu */
.nav-trigger em {
   height: 0.3vh;
   width: 4vw;
}

/* ICON barre du bas */
.nav-trigger em::after {
  height: 0.3vh;
  width: 4vw;
}
}
/* Xs Screen portrait */
@media screen and (max-width: 767px) and (orientation: portrait) {

.cd-auto-hide-header .logo {
    height: 100%;
    width: 20vw;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    align-content: center;
}
.cd-auto-hide-header .logo a, .cd-auto-hide-header .logo img {
    width: auto;
    height: 9vh;
}
.cd-auto-hide-header .nav-trigger span {
    width: 20vw;
}
/*  ICON barre du haut */
.nav-trigger em::before {
  height: 0.3vh;
  width: 7vw;
}

/*  ICON barre du milieu */
.nav-trigger em {
   height: 0.3vh;
   width: 7vw;
}

/* ICON barre du bas */
.nav-trigger em::after {
  height: 0.3vh;
  width: 7vw;
}
}

/******************************** Lg BOOTSTRAP MEDIA QUERIES ********************************/

/* Lg Screen I*/
@media only screen and (min-width: 1200px) {
.cd-auto-hide-header {
  height: 8vh;/* hauteur d */
}
/* SUPPRIME LE MENU MOBILE HAMBURGER */
.cd-auto-hide-header .nav-trigger {
    display: none;
}
.cd-primary-nav > ul::after {
    clear: both;
    content: "";
    display: block;
}
  .cd-primary-nav > ul li {
    max-width: fit-content;
	display: flex;
	flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
	margin:0 1vh;
    
}
.cd-primary-nav > ul li:first-of-type {
    margin-left: 0;
  }
  .cd-primary-nav > ul li:last-of-type {
    margin-right: 0;
  }

  .nav-open .cd-primary-nav ul,
  .cd-primary-nav ul:target {
    display: table-cell;
}	

}


