a {
    outline: none;
    text-decoration: none;
	color: #005e82;
}

nav#main-menu ul.profil-list li a {
    color: white;
    font-size: 0.8em;
}

ul { margin: 0; padding: 0; }

@media only screen and (max-width: 760px){
    ul { margin-left: 15px; }
}

ul.site-list {
    width:720px;
    overflow:hidden;
    padding-left: 0;
    padding-right: 0;
}

ul.site-list > li {
    float:left;
    width:33.333%;
    display:inline;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding-left: 30px;
    padding-right: 30px;
    border-right: 1px solid #EBEAE7;
}

ul.site-list > li:nth-child(3n) {
    border-right: none;
}

/* SECONDARY MENU */

.rte-2nd-nav {
    //background: transparent url('../images/bg-header-m.png') no-repeat;
    position: relative;
    z-index: 1;
    font-family:Arial, sans-serif;
    color: #999;
    font-size:13px;
    width:940px;
    margin:0 auto;
}

.rte-2nd-nav:hover {
    z-index: 3;
} 

@media only screen and (max-width: 940px){
    .rte-2nd-nav{
        width: 100%;
    }
}

@media only screen and (max-width: 760px){
    .rte-2nd-nav {
		padding:0;
    margin: 0;
		height: auto;
		position: relative;
		float:left;
		z-index:1;
	}
}

.one-third, .two-third {
    float:left;
    display:inline;
}

.one-third {
    width:185px;
}
.two-third {
    width:160px;
}

.link-to-rte-switcher img.rte_vous {
    margin-bottom:-6px;
    width:99px;
    height:auto;
}

@media only screen and (max-width: 760px){
    .link-to-rte-switcher img.rte_vous {
    width: 80px !important;
	}
}

.link-to-mag a {
    padding: 0 !important;
    position: relative;
}

.link-to-mag a img {
    top: 10px;
    position: relative;
	display: none;
}

@media only screen and (max-width: 760px){
    .link-to-mag a img {
    width: 80px !important;
	}
}


li.infos {
}

li.infos > ul > li > a {
    font-size:14px;
    line-height:30px;
    color:#a7a7a7;
}
li.infos > ul > li > a:hover {
    font-weight: bold;
}

li.social {
    border-right:1px solid #e2e0dd;
    border-left:1px solid #e2e0dd;
}
li#rte_search {
    background:#00a7d9;
    position:relative;
    padding-left:15px;
    padding-right: 5px;
    -moz-box-shadow: inset 0px -5px 0px 0px #ffffff;
    -webkit-box-shadow: inset 0px -5px 0px 0px #ffffff;
    -o-box-shadow: inset 0px -5px 0px 0px #ffffff;
    box-shadow: inset 0px -5px 0px 0px #ffffff;
    filter:progid:DXImageTransform.Microsoft.Shadow(color=#ffffff, Direction=90, Strength=0);
}



li#rte_search > a {
    color:white !important;
}
.cbp-tm-show#rte_search .cbp-tm-submenu {
    width: 330px;
    right:0;
    top:50px;
    margin: 0 0 0 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    -webkit-transition: visibility 0s, opacity 0.3s;
    -moz-transition: visibility 0s, opacity 0.3s;
    transition: visibility 0s, opacity 0.3s;
}

#rte_search > .cbp-tm-submenu {
    padding:0;
    border:3px solid #00a7d9;
    width:100%;
    position: absolute;
    display: block;
    visibility: hidden;
    right:0;
    opacity: 0;
    text-align: left;
    pointer-events: none;
    -webkit-transition: visibility 0s, opacity 0s;
    -moz-transition: visibility 0s, opacity 0s;
    transition: visibility 0s, opacity 0s;
    -moz-box-shadow:none;
    -webkit-box-shadow:none;
    -o-box-shadow:none;
    box-shadow:none;
}


.cbp-tm-show#rte_search  > a:after, .cbp-tm-show > a::before {
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}

.cbp-tm-show#rte_search  > a:after {
    border-width:0px;
    margin-left: 0px;
}

.cbp-tm-show#rte_search  > a:before {
    border-width: 0px;
    margin-left: -0px;

}





li.social > ul {
    padding:15px 0 15px 10px;
}
li.social > ul > li > a {
    color:#67cbea;
    line-height:30px;
    margin-right:10px;
}
.domain-rteetvous li.social > ul> li> a {
    color: #E85257;
}
li.social > ul > li {
    display:inline-block;
}
li.social > ul {
    text-align:center;
}

.newsletter .nodisplay {
    display: none;
}

.nav-newsletter {
    margin-top: 20px;
    float: right;
    margin-right: -10px;
    position: relative;
    height: 24px;
}

.nav-newsletter, #box_survol {
  border:1px solid #33b8e1;
  box-shadow: 5px 2px 0 #33b8e1;
  z-index: 7;
  background-color: #fff;
  box-sizing: content-box; /* a maintenir car certaines pages appliquent la valeur border-box par defaut */
}

#box_survol {
  width: 230px;
  padding: 10px;
  right: -1px;
  position: absolute;
}

.nav-newsletter li {
    display: inline-block;
    padding: 0 7px 0 5px;
    margin-right: -1px;
    line-height: 24px;
    font-size: 16px;
}

.nav-newsletter .active, .newsletter:hover {
    background-color: #33b8e1;
    cursor: pointer;
}

.nav-newsletter li .nolink {
    color: #33b8e1;
    font-size:14px;
    border-right: 1px solid #33b8e1;
    padding: 0px 10px 0px 5px;
}

.nav-newsletter .active:before {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 10px 0 10px;
  border-color: #33b8e1 transparent transparent transparent;
  position: absolute;
  bottom: -10px;
  left: 30%;
  margin-left:-10px;
  z-index: 10;
}

.nav-newsletter li a {
    color: #33b8e1;
}

.nav-newsletter .rs_page {
    display: none;
    position: absolute;
    border:1px solid #33b8e1;
    box-shadow: 5px 2px 0 #33b8e1;
    z-index: 8;
    right: -1px;
    width: 220px;
}

.nav-newsletter li:hover .rs_page {
    display: block;
}

.nav-newsletter li .rs_page iframe.twitter-timeline {
    display:block !important; /* pour surcharger la css inline générée par twitter */
}

.nav-newsletter .rs_survol:hover {
    background-color: #33b8e1;
    cursor: pointer;
    color: #fff!important;
}

.nav-newsletter .rs_survol:hover a, .nav-newsletter li:hover .nolink, .nav-newsletter .active .nolink{
    color: #fff!important;
}

.nav-newsletter .facebook:hover::before, .nav-newsletter .twitter:hover::before {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 9px 9px 0 9px;
  border-color: #33b8e1 transparent transparent transparent;
  position: absolute;
  bottom: -9px;
  right: 30%;
  z-index: 10;
}

.nav-newsletter .twitter:hover::before {
  right: 17%;
}

/* Search FORM  */

#searchform {
    padding:0;
    margin:0;
}

#searchform .search-form {
  margin-bottom: 0;
}
#searchform fieldset {
    border:none;
    padding:0;
    margin:0;
}
#searchform fieldset p {
    margin:0;
    padding:0;
}
#searchform form input {
    height: 38px;
}

#searchform form input[type="text"], input[type="email"] {
	width:0;
}

.cbp-tm-show #searchform form input[type="text"], input[type="email"] {
    background-color: white;
    border:0px solid white;
    color: #aeaeae;
    padding: 0 16px;
    width: 277px;
    outline: none;
}

#searchform form input[type="submit"] {
    border:1px solid #eaeaea;
    background-color: #eaeaea;
    color: #222222;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    width: 43px;
    outline: none;
}

#searchform form input[type="submit"]:hover {
    background-color: #babbbf;
    color:white;
}

#rte_search #searchform form input[type="submit"] {
    padding: 0;
    float: right;
}
    
#searchform > p {
    text-align: center;
}

/* reset  list style */
.cbp-tm-menu,
.cbp-tm-menu ul {
    list-style: none;
}

/* set menu position; change here to set to relative or float, etc. */
.cbp-tm-menu {
    position:relative;
    display: block;
    z-index: 998; /* Drupal Admin menu z-index is 999 ! */
    width: 960px;
    text-align: right;
    padding-top: 1.2em;    
}

@media only screen and (min-width: 1070px)
{
    .domain-rteetvous .cbp-tm-menu
    {
        width: 1070px;
    }    
}


@media only screen and (max-width: 760px){
    .cbp-tm-menu {
		padding:0;
		margin:auto;
		height: auto;
		position: relative;
		width: 100%;
		left:0;
		text-align:left;
		/*margin-top:-61%;*/
		background:#fff;
		/*z-index:-1;*/
		display:none;
	}
}

/* first level menu items */
.cbp-tm-menu > li {
    display: inline-block;
    margin: 0 1em;
}
.cbp-tm-menu > li.link-to-rte-switcher {
    margin: 0 0 0 3em
}

@media only screen and (max-width: 760px){
  .cbp-tm-menu > li {
    display: block;
    margin: 0 5px;
    height: auto;
    text-align: center;
    border: none;
  }
    .cbp-tm-menu > li.link-to-rte-switcher {
        margin: 0;
    }
}

.cbp-tm-menu > li:last-child {
    margin: 0 0 0 7px;
}


.cbp-tm-menu > li > a {
    position:relative;
    line-height: 20px;
    font-size:13px;
    display: block;
    color: #196e8e;
    outline:none;
}

@media only screen and (max-width: 768px) and (min-width: 761px){
    ul#cbp-tm-menu{
        width: 100%;
        padding-top: 2.5em;
    }

}



@media only screen and (max-width: 760px){

  .cbp-tm-menu > li {
    border-bottom: 1px solid #989C9E;
  }
  .cbp-tm-menu > li > a {
    font-size:17px;
    color: #989C9E;
    margin: 0;
    padding: 0.2em 0;
  }
}

.cbp-tm-menu > li > a:only-child:hover {
    text-decoration:underline;
}

.cbp-tm-menu > li > a:hover {
    text-decoration:none;
}

.cbp-tm-menu > li > a > span:after {
    content: url('../images/arrow_down.png');
    margin-left:10px;
    line-height:18px;
    vertical-align:text-bottom;
}
.domain-rtefrance .cbp-tm-menu > li > a:only-child > span:after,
.domain-rteetvous .cbp-tm-menu > li > a:only-child > span:after {
    content: '';
    margin:0;
}


.cbp-tm-menu > li#rte_search > a > span:after { content: ' ';}
.cbp-tm-menu > li > a:hover,
.no-touch .cbp-tm-menu > li > a:hover,
.no-touch .cbp-tm-menu > li > a:active {
    color: #818181;
}

.domain-rtefrance .cbp-tm-menu > li > a.rte-2nd-nav--item-2::before {
    content: '';
    border: 1px solid #e3e3e3;
    height: 42px;
    float: left;
    margin: -20px 12px 0 0;
	display:none;

}

.domain-rteetvous #header #cbp-tm-menu li.link-to-rte-switcher a span:after{
  position: relative;
  left: -5em;
  vertical-align: middle;
  
  font-size: 12px;
  font-family: "Avenir LT W01 65 Medium";
  font-weight: bold;
  color: black;

  content: 'RTE France';
    
}

@media only screen and (max-width: 768px) and (min-width: 761px){
    .domain-rteetvous #header #cbp-tm-menu li.link-to-rte-switcher a span:after {
        left: 1em;
        font-size: 10px;
    }
}

@media only screen and (max-width: 760px){
    .domain-rtefrance .cbp-tm-menu > li > a.rte-2nd-nav--item-2::before {
        display: none;
	}
}

/* sumbenu with transitions */
.cbp-tm-submenu {
    padding:20px 35px 19px 33px;
    border:1px solid #e2e0dd;
    width:690px;
    position: absolute;
    display: block;
    visibility: hidden;
    right:0;
    opacity: 0;
    text-align: left;
    pointer-events: none;
    -webkit-transition: visibility 0s, opacity 0s;
    -moz-transition: visibility 0s, opacity 0s;
    transition: visibility 0s, opacity 0s;
    -moz-box-shadow: 5px 5px 5px 0px rgba(0,0,0,0.1);
    -webkit-box-shadow: 5px 5px 5px 0px rgba(0,0,0,0.1);
    -o-box-shadow: 15px 5px 5px 0px rgba(0,0,0,0.1);
    box-shadow: 5px 5px 5px 0px rgba(0,0,0,0.1);
    filter:progid:DXImageTransform.Microsoft.Shadow(color=#ccc, Direction=134, Strength=5);
}

.cbp-tm-show > a:after, .cbp-tm-show > a::before {
    bottom: -5px; /* Hide Border Box (-1)*/
    z-index:999; /* Hide Border Box */
    left: 50%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}

.cbp-tm-show > a:after {
    border-color: rgba(255, 255, 255, 0);
    border-bottom-color: #ffffff;
    border-width: 9px;
    margin-left: -9px;
}

.cbp-tm-show > a:before {
    border-color: rgba(226, 224, 221, 0);
    border-bottom-color: #e2e0dd;
    border-width: 10px;
    margin-left: -10px;

}

.cbp-tm-show .cbp-tm-submenu {
    background:white;
    width: 260px;
    right: 0;
    margin: 0 0 0 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    -webkit-transition: visibility 0s, opacity 0.3s;
    -moz-transition: visibility 0s, opacity 0.3s;
    transition: visibility 0s, opacity 0.3s;
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
}
.cbp-tm-show-below .cbp-tm-submenu {
    top: 100%;
}
@media only screen and (min-width: 761px){
	.cbp-tm-submenu {
		left: -20%;
		right: auto;
	}
	.cbp-tm-submenu.small {
		left: -80%;
	}
	.cbp-tm-show-below.cbp-tm-show {
		position: relative;
	}
	
	.cbp-tm-show-below.cbp-tm-show .rte-2nd-nav--item-3 + .cbp-tm-submenu {
		left: -50%;
	}
	.cbp-tm-show-below.cbp-tm-show .rte-2nd-nav--item-2 + .cbp-tm-submenu {
		left: -130%;
	}
	
	.cbp-tm-show .cbp-tm-submenu.small {
	    margin-top: 5px;
	}
}



@media only screen and (max-width: 760px) {
  .cbp-tm-show .cbp-tm-submenu {
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
    box-shadow: none;
    margin: 0;
    border: none;
    top: auto;
  }
}

.cbp-tm-show .cbp-tm-submenu.small {
    width: 440px !important;
    padding-left: 0;
    padding-right: 0;
}

/* extreme cases: not enough space on the sides */
.cbp-tm-nospace-right .cbp-tm-submenu {
    right: 0;
    left: auto;
}

.cbp-tm-nospace-left .cbp-tm-submenu {
    left: 0;
}

/* last menu item has to fit on the screen */
.cbp-tm-menu > li:last-child .cbp-tm-submenu {
    right: 0;
}

/*
arrow: depending on where the menu will be shown, we set
the right position for the arrow
*/


.cbp-tm-show-above .cbp-tm-submenu:after {
    top: 100%;
    margin-top: -10px;
}

.cbp-tm-show-below .cbp-tm-submenu:after {
    bottom: 100%;
    margin-bottom: -10px;
}



.cbp-tm-show-above .cbp-tm-submenu:after {
    border-top-color: #fff;
}

.cbp-tm-show-below .cbp-tm-submenu:after {
    border-bottom-color: #fff;
}

.cbp-tm-submenu > li {
    background: #fff;
}

.cbp-tm-submenu > li > a {
    padding:0;
    display: block;
    font-size:14px;
    color:#A7A7A7;
    position: relative;
    border: 4px solid #fff;
}

.no-touch .cbp-tm-submenu > li > a:hover,
.no-touch .cbp-tm-submenu > li > a:active {
    font-weight: bold;
}

@media only screen and (max-width:  940px)
{
    .cbp-tm-menu > li{
        margin-right: 0;
    }
}
