/* propriétés de base applicables aux mobiles (smartphones)===================*/

/* retour home==============*/
#back-home {
  clear: both;
    background-image: -webkit-linear-gradient(to bottom, #457b3d, #31660e); /*new webkit*/
  background-image:linear-gradient(to bottom, #457b3d, #31660e);
  width: 100%;
  height: 2em;
  display: block;
  text-align:center;  
  border-bottom: 0.1em solid #fff;
  /*===code de secours=*/
  /*background-image: -moz-linear-gradient(to bottom, #457b3d, #31660e);
    background-image: -ms-linear-gradient(to bottom, #457b3d, #31660e);
    background-image: -o-linear-gradient(to bottom, #457b3d, #31660e);*/
  /*background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#457b3d) to(#31660e));*/ /*old webkit*/
  /*
  background-image: #457b3d;
  -pie-background: linear-gradient(to bottom, #457b3d, #31660e);
  behavior: url(../PIE-2.0beta1/PIE.htc);
  z-index:0;
  position:relative;*/
}

#back-home img {
  max-height: 1.6em;
  margin: 0;
  padding: 0;
}

/* FIN retour home==============*/

/*navigation simple VISIBLE=================*/
nav.navigation-megamenu {
  display : none;
}

nav.navigation-simple {
  clear: both;
  margin-left: 0;
  width: 100%;
  display : block;  
}

.menu-simple {
  font:       normal 1em Arial, sans-serif;
  line-height:   2em;
  background:   #FFF;
  width:       100%;
  height:     auto;
  /*display : block;*/
  margin: 0;
  padding: 0;
  border: none;
  width: 100%;
  background-color: #457b3d;
}
.menu-simple ul {
  list-style:none;
  position: relative;
  padding: 0;
  margin: 0;
}
.menu-simple li {
  float: none;
  text-align: center;
  width:100%;
  font-weight:   bold;
  list-style:none;
}
.menu-simple li a {
  border-bottom: 0.1em solid #fff;
  display:block;
  color: #FFF;
  padding: 0em 0.5em 0em 0.5em;
  background-image:linear-gradient(to bottom, #457b3d, #31660e);
  background-color: #457b3d; /*non-CSS3 browsers will use this*/
    background-image: -webkit-gradient(linear,0 0, 0 100%, from(#457b3d) to(#31660e)); /*old webkit*/
    background-image: -webkit-linear-gradient(to bottom, #457b3d, #31660e); /*new webkit*/
    background-image: -moz-linear-gradient(to bottom, #457b3d, #31660e); /*gecko*/
    background-image: -ms-linear-gradient(to bottom, #457b3d, #31660e); /*IE10 preview*/
    background-image: -o-linear-gradient(to bottom, #457b3d, #31660e); /*opera 11.10+*/
  /*-pie-background: linear-gradient(to bottom, #457b3d, #31660e);
  behavior: url(../PIE-2.0beta1/PIE.htc);
  z-index:0;
  position:relative;*/
text-decoration: none;
  /*border-right: 0.1em solid #fff;*/
}
.menu-simple li a:hover{
  background:#effceb;
  color:#457b3d;
}
.menu-simple li.onglet-bleu {
  float:       none;
}
.menu-simple li.onglet-bleu a {
  background-image: -webkit-gradient(linear,0 0, 0 100%, from(#0066cd) to(#004d9a)); /*old webkit*/
    background-image: -webkit-linear-gradient(to bottom, #0066cd, #004d9a);
  background-image:linear-gradient(to bottom, #0066cd, #004d9a);
  border: none;
  /*background-image: -moz-linear-gradient(to bottom, #0066cd, #004d9a);
    background-image: -ms-linear-gradient(to bottom, #0066cd, #004d9a);
    background-image: -o-linear-gradient(to bottom, #0066cd, #004d9a);*/
  /*
  background-image: #0066cd;
  -pie-background: linear-gradient(to bottom, #0066cd, #004d9a);
  behavior: url(../PIE-2.0beta1/PIE.htc);
  z-index:0;
  position:relative;*/
}

.menu-simple li.onglet-bleu a:hover{
  background:#ebf0f5;
  color:#004d9a;
}
/*FIn navigation simple==========*/
/*Megamenu INVISIBLE=================*/
.mega-menu {
  display:none;
} 


@media only screen and (min-width: 641px)
 {

/* retour home TABLETTE==============*/
#back-home {
  clear: none;
  width: 3%;
  border-right: 0.1em solid #fff;
  height:2.1em;
  float:left;
  line-height:2em;
  vertical-align:middle;
  border-bottom: none;
}

/* FIN retour home TABLETTE==============*/
nav.navigation-simple {
  display : none;
}
nav.navigation-megamenu {
  clear: none;
  display : block;
  float:right;
  width:96.8%;
}

.menu-simple {
  display:none;
}
.mega-menu {
  display:block;
  font:       normal 0.9em Arial, sans-serif;
  line-height:   1.7em;
  background:   #FFF;
  width:       100%;
  height:     2em;
  position:     relative;
  margin:   0;
  padding:   0;
  border:   none;
} 

  
.mega-menu h2 {
  font: normal 2em Arial, sans-serif; 
  padding: 2em 0; 
  margin: 0 0 3em 0;
}

.mega-menu ul {
  list-style:none;
  position: relative;
  padding: 0;
  margin: 0;
}

.mega-menu ul li ul {
  display: none;
}

.sub {
  display: block;
}

.mega-menu .sub ul {
  display: block;
}
/*----------onglets principaux du menu----*/
.mega-menu li img {
  max-height:1.6em;
  margin:     0;
  padding:     0;
}
.mega-menu li ul .close-menu {
  max-height:2em;
  float:right;
  margin:0;
  padding:0;
  margin-bottom:1em;
}
.mega-menu li ul .close-menu a{
  color:#666;
  font-size:0.8em;
}
.mega-menu li ul .close-menu a:hover{
  color:#0066cd;
}

.mega-menu li {
  float:       left;
  margin:     0;
  padding:     0;
  font-size:     1em;
  font-weight:   bold;
  list-style:none;
}
.mega-menu li.onglet-bleu {
  float:       right;
}

.mega-menu li a {
  display: block;
  color: #FFF;
  padding: 0.3em 0.3em 0.3em 0.3em;
  background-image: -webkit-linear-gradient(to bottom, #457b3d, #31660e);
  background-image:linear-gradient(to bottom, #457b3d, #31660e);
  text-decoration: none;
  border-right: 0.1em solid #fff;
  /*    background-image: -moz-linear-gradient(to bottom, #457b3d, #31660e);
    background-image: -ms-linear-gradient(to bottom, #457b3d, #31660e);
    background-image: -o-linear-gradient(to bottom, #457b3d, #31660e);*/
  /*
  background-image: -webkit-gradient(linear,0 0, 0 100%, from(#457b3d) to(#31660e));
  background-image: #457b3d;
  -pie-background: linear-gradient(to bottom, #457b3d, #31660e);
  behavior: url(../PIE-2.0beta1/PIE.htc);
  position:relative;*/
}
.mega-menu li.onglet-bleu a {
  background-image: -webkit-linear-gradient(to bottom, #0066cd, #004d9a);
  background-image:linear-gradient(to bottom, #0066cd, #004d9a);
  border: none;
  border: none;
    /*background-image: -webkit-gradient(linear,0 0, 0 100%, from(#0066cd) to(#004d9a));
    background-image: -moz-linear-gradient(to bottom, #0066cd, #004d9a);
    background-image: -ms-linear-gradient(to bottom, #0066cd, #004d9a);
    background-image: -o-linear-gradient(to bottom, #0066cd, #004d9a);*/
  /*
  background-image: #0066cd;
  -pie-background: linear-gradient(to bottom, #0066ac, #004d9a);
  behavior: url(../PIE-2.0beta1/PIE.htc);
  z-index:0;
  position:relative;*/
}
.mega-menu li a:hover{
  background:#effceb;
  color:#457b3d;
}
.mega-menu li.onglet-bleu a:hover{
  background:#ebf0f5;
  color:#004d9a;
}

.mega-menu li a.sous-menu {
  position: relative;
}
/*=============onglet actif ======*/
.mega-menu li.mega-hover a, .mega-menu li a:hover {
  background:#effceb;
  color:#457b3d;
}
.mega-menu li.mega-hover.onglet-bleu a, .mega-menu li.onglet-bleu a:hover {
  background:#ebf0f5;
  color:#004d9a;
}
/*=======*/

.mega-menu li .conteneur-sous-menu {
  position: absolute;
  background-color: #effceb;
  background-repeat: no-repeat;
  background-position: 100% 100%;
  /*padding-left:     2em;*/
  width: 103.4%;
}

.mega-menu li.onglet-bleu .conteneur-sous-menu {
  background-color:#ebf0f5;
}

.mega-menu li .sub {
  background-repeat: no-repeat;
  background-position: 100% 100%;
}
/*=============bordures du megamenu====*/
.mega-menu li .conteneur-sous-menu.mega .sub {
  border-bottom: 2px solid #457b3d;
  border-left: 2px solid #457b3d;
  border-right: 2px solid #457b3d;
}
.mega-menu li.onglet-bleu .conteneur-sous-menu.mega .sub {
  border-bottom: 2px solid #0066cd;
  border-left: 2px solid #0066cd;
  border-right: 2px solid #0066cd;
}
/*================*/
.mega-menu li .sub .row {
  width: 100%;
  overflow: hidden;
  clear: both;
}

.mega-menu li .sub li {
  float: none;
  /*width: 170px;*/
  width: 23%;
  font-weight: normal;

}
/* Blocs de sous listes - Placement du contenu du sous-menu en colonnes*/
.mega-menu li .sub li.mega-hdr {
  float: left;
  margin-top: 0;
  margin-right: 1em;
  margin-bottom: 1em;
  margin-left: 1em;
  height:auto !important;
}

.mega-menu li .sub li.mega-hdr.last {
  margin-right: 0;
}
/*liens sous-menu*/
.mega-menu li .sub a {
  background: none;
  border: none;
  color: #000;
  display: block;
  float: none;
  text-decoration: none;
  /*line-height:1.2em;*/
}
/*sous-menu 1er niveau*/
.mega-menu li .sub li.mega-hdr a.mega-hdr-a {
  margin-bottom: 0.5em;
  text-transform: uppercase;
  font-weight: bold;
  color: #457b3d;
  line-height: 1.1em;
}
/*survol sous-menu 1er niveau*/
.mega-menu li .sub li.mega-hdr a.mega-hdr-a:hover, .mega-menu li.onglet-bleu .sub li.mega-hdr a.mega-hdr-a:hover {
  color: #333;
}
/*sous-menu 1er niveau onglet bleu*/
.mega-menu li.onglet-bleu .sub li.mega-hdr a.mega-hdr-a {
  margin-bottom: 0.5em;
  color: #004d9a;
}

/*sous-menu 2e niveau*/
.mega-menu .sub li.mega-hdr li a {
  font-weight: normal;
  padding-top: 0.2em;
  padding-right: 0.3em;
  padding-bottom: 0.2em;
  padding-left: 0.3em;
  width:360% !important;
  /*margin-left: 1em;*/
}
/*survol sous-menu 2e niveau*/

.mega-menu .sub li.mega-hdr li a:hover {
  color: #457b3d;
  border-left-width: 0.5em;
  border-left-style: solid;
  border-left-color: #457b3d;
  font-weight:bold;
}

.mega-menu li.onglet-bleu .sub li.mega-hdr li a:hover {
  color:#004d9a;
  border-left-width: 0.5em;
  border-left-style: solid;
  border-left-color: #004d9a;
  font-weight:bold;
}
/*sous-menu 3e niveau*/
.mega-menu .sub li.mega-hdr li ul li a {
  font-weight: normal;
  font-size: 0.8em;
  margin-left: 2em;
}
/*survol sous-menu 3e niveau*/
.mega-menu .sub li.mega-hdr li ul li a:hover {
  color: #333;
  font-weight:bold;
  border-left-color: #333;
  border-left-width: 0.2em;
}

.mega-menu .sub ul li {
  padding-right: 0;
}
/*sous menu simple (1 colonne)*/
.mega-menu li .conteneur-sous-menu.non-mega .sub {
  padding: 2em 2em 2em 0;
  display: none;
}

.mega-menu li .conteneur-sous-menu.non-mega li {
  padding: 0;
  width: 15em;
  margin: 0;
}

.mega-menu li .conteneur-sous-menu.non-mega li a {
  padding-top: 0.4em;
  padding-right: 0.5em;
  padding-bottom: 0.4em;
  padding-left: 0.5em;
}

.mega-menu li .conteneur-sous-menu.non-mega li a:hover {
  color: #457b3d;
  background-color: #FFFFFF;
}
/*fin sous menu simple (1 colonne)*/
}
@media only screen and (min-width: 903px) {
  /* retour home BUREAU==============*/
#back-home {
  height:2em;
}
  /* menu simple BUREAU==============*/
  .menu-simple {
  display:none;
}
  .mega-menu {
  font:       normal 1em Arial, sans-serif;
  line-height:   2em;
}

/*colonnes sous-menu */

.mega-menu li a {
  padding: 0em 0.5em 0em 0.5em;
}
.mega-menu li .sub li.mega-hdr {
  float: left;
  margin-top: 0;
  margin-right: 0.5em;
  margin-bottom: 1em;
  margin-left: 0.5em;
}
/*.mega-menu li .sub li {
  width: 11em;
}*/
/*sous-menu 2e niveau*/
.mega-menu .sub li.mega-hdr li a {
  margin-left: 1em;
}
/*liens sous-menu*/
.mega-menu li .sub a {
  line-height:1.1em;
}
/*sous-menu 3e niveau*/
.mega-menu .sub li.mega-hdr li ul li a {
  margin-left: 3em;
}

.mega-menu li .conteneur-sous-menu.mega .sub {
  padding-top: 2em;
  padding-right: 2em;
  padding-bottom: 1em;
  padding-left: 3em;
}
}