/*
 *  Copyright 2012 Anyware Services
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
 
/* Btn search formation on index */
.index .search-odf{
    border-top: 1px solid #e4e4e4;
/*     border-bottom: 1px solid #e4e4e4; */
    margin-top: 11px;
}

#ametys-cms-zone-button .search-odf h1{
    color: #D82262 /* AMETYS ("default.default.bgcolor.complementary") */;
    font-size: 24px;
    font-weight: 600;
    line-height: 24px;
    text-align: center;
    position: relative;
    padding-bottom: 55px;
    padding-top: 21px;
    cursor: pointer;
}

#ametys-cms-zone-button .search-odf h1 span.service-title:before {
    font-family: 'icomoon' !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    font-size: 3.5em;

    /* Better Font Rendering =========== */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    content: "\e92f";
    display: inline-block;
    left: -100px;
    height: 71px;
    width: 82px;
    position: absolute;
}

#ametys-cms-zone-button .search-odf h1:after {
    bottom: 6px;
    color: #D82262 /* AMETYS ("default.default.bgcolor.complementary") */;
    content:"\f107";
    font-family: FontAwesome;
    font-size: 1.8em;
    font-style: normal;
    font-weight: normal;
    left: 0;
    padding-right: 0.5em;
    position: absolute;
    right: 0;
    text-decoration: inherit;
}

#ametys-cms-zone-button .search-odf h1 span.service-title {
    display: inline-block;
    margin: 0 auto 0 100px;
    text-align: left;
    position: relative;
}

#ametys-cms-zone-button .search-odf h1 span.service-title span.word1{
    font-size: 19px;
    font-weight: 400;
    line-height: 20px;
    display: block;
}

#ametys-cms-zone-button .search-odf form{
    display: none;
}

.search-odf.open{
    background-color: #D82262 /* AMETYS ("default.default.bgcolor.complementary") */;
    position: relative;
    padding-left: 0;
    padding-right: 0;
/*     margin-left: -15px; */
/*     margin-right: -15px; */
}

#ametys-cms-zone-button .search-odf.open h1,
#ametys-cms-zone-button .search-odf.open h1:after,
#ametys-cms-zone-button .search-odf.open h1 span:after,
#ametys-cms-zone-button .search-odf.open h2,
#ametys-cms-zone-button .search-odf.open h2:after,
#ametys-cms-zone-button .search-odf.open h2 span:after,
#ametys-cms-zone-button .search-odf.open h3,
#ametys-cms-zone-button .search-odf.open h3:after,
#ametys-cms-zone-button .search-odf.open h3 span:after{
    color: #fff;
}

#ametys-cms-zone-button .search-odf.open h1:after,
#ametys-cms-zone-button .search-odf.open h2:after,
#ametys-cms-zone-button .search-odf.open h3:after{
    content: "\f106";
}

/* #ametys-cms-zone-button .search-odf.open h1 span:before, */
/* #ametys-cms-zone-button .search-odf.open h2 span:before, */
/* #ametys-cms-zone-button .search-odf.open h3 span:before{ */
/*     background-image: url('../../img/formation-on.png'); */
/* } */

#ametys-cms-zone-button .search-odf form {
    position: absolute;
    top: 156px;
    left: 0;
    right: 0;
    z-index: 1;
}

.search-odf form{
	background-color: #F3F4F9;
	border: 0 none;
	margin: 0;
	padding-top: 29px;
	padding-bottom: 29px;
/* 	overflow: hidden; */
}

.search-odf form + form,
.search-odf .results-placeholder form{ background-color: transparent; }

.index .search-odf form{ 
	background-color: #D82262 /* AMETYS ("default.default.bgcolor.complementary") */; 
}

.search-odf form:after{
	content: " ";
	clear: both;
	display: block;
}

.search-odf form .field{ height: 0;}

.search-odf form .label{
    display: none;
}

.search-odf form.search > div {
    margin: 0 15px;
}

.search-odf form .select,
.search-odf form .input{
    margin-bottom: 17px;
    border: 0 none;
    position: relative;
    width: 100%;
}

.search-odf form .select .ui-selectmenu-button,
.search-odf form .select select,
.search-odf form .input input{
/*     border: 0 none; */
/*     padding-left: 56px; */
    max-width: 100%;
}

/* TODO retour à la ligne des items trop longs dans les select */

.index .search-odf form input[type=submit]{
	background-color: #181818;
}

/* results */

.search-odf-programs .results ul li.mention-group {
    margin-left: 20px;
}
.search-odf-programs .mention-group > span {
	font-size: 1.6em;
	font-weight: 800;
}
.search-odf .results ul li.domain-group,
.search-odf .results ul li.degree-group{ margin-left: 0; margin-right: 0; }

.search-odf .results ul li.domain-group > span{ 
	font-size: 2.4em; 
	font-family: "Open Sans", sans-serif;
	font-weight: 600;
	text-transform: uppercase;
	color: #0084BB /* AMETYS ("default.default.bgcolor.main") */;
	display: block;
	border-top: 1px solid #acacac;
	padding-top: 10px;
}

.search-odf .results ul li.domain-group:first-child > span{ border-width: 0; }

.search-odf .results ul li.degree-group > span{ 
	font-size: 2em; 
	font-family: "Open Sans", sans-serif;
	font-weight: 600;
	color: #181818;
	display: block;
}

.search-odf .results ul li.degree-group > ul{
	border-top: 1px solid #e4e4e4;
	margin: 10px 0;
}

.search-odf .results ul li.hit{
	color: #60616d;
	font-weight: normal;
	font-size: 1.7em;
	font-family: "Open Sans", sans-serif;
	padding-left: 25px;
	position: relative;
}

.search-odf .results ul li.hit:before{
    content: "\f107";
    font-family: FontAwesome;
    position: absolute;
    font-weight: 600;
    font-size: 1.3em;
    position: absolute;
    left: 0;
    top: -3px;
    -webkit-transform: rotate(-90deg);
    -ms-transform: rotate(-90deg);
     transform: rotate(-90deg);
     color: #0084BB /* AMETYS ("default.default.bgcolor.main") */;
}
    



.search-odf .results ul li.hit a:link,
.search-odf .results ul li.hit a:visited{ color: #60616d; }

.search-odf .results ul.subprogram-group{ line-height: 1.2; }

.search-odf .results ul.subprogram-group li{
	list-style: outside none none;
    margin: 0;
    padding: 0 0 0 20px;
    position: relative;
    color: #60616d;
    font-weight: normal;
}

.search-odf .results ul.subprogram-group li:before{
    content: "\f105";
    color: #60616d;
    font-family: FontAwesome;
    font-size: 1.3em;
    font-weight: 800;
    margin-right: 10px;
}

@media screen and (min-width: 768px) {
	
	.search-odf {
        margin-top: 18px;
    }
    
    .search-odf{
        border-bottom: 0 none;
    }
    
    #ametys-cms-zone-button .search-odf h1:after{
        display: none;
    }
    
    #ametys-cms-zone-button .search-odf h1{
        font-size: 2em;
        margin-bottom: 0;
/*         margin-right: 50px; */
        padding-bottom: 47px;
        padding-top: 19px;
    }
    
    #ametys-cms-zone-button .search-odf h1 span.service-title span.word1 {
        font-size: 0.8em;
    }
    
    #ametys-cms-zone-button .search-odf h1 span.service-title:after {
        bottom: 6px;
        color: #D82262 /* AMETYS ("default.default.bgcolor.complementary") */;
        content: "\f107";
        font-family: FontAwesome;
        font-size: 1.8em;
        font-style: normal;
        font-weight: normal;
        padding-right: 0;
        position: absolute;
        right: -50px;
        text-decoration: inherit;
        top: 24px;
    }
    
    #ametys-cms-zone-button .search-odf.open h1 span.service-title:after,
    #ametys-cms-zone-button .search-odf.open h2 span.service-title:after,
    #ametys-cms-zone-button .search-odf.open h3 span.service-title:after{
        color: #fff;
        top: 50px;
        -webkit-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
        transform: rotate(180deg);
    }
    
    .search-odf form .select,
    .search-odf form .input{
        display: inline-block;
        float: left;
        margin: 0 2% 4%;
        width: 46%;
    }
/*     .ui-selectmenu-open ul{ width: calc(768px * 0.46); } */
    
    .search-odf form .select .ui-selectmenu-button,
    .search-odf form .select select,
    .search-odf form .input input{
        padding-left: 15px;
    }
    
    .search-odf form input[type="submit"] {
        float: right;
        margin-left: 2%;
        margin-right: 2%;
        width: 46%;
        margin-top: 0;
    }
    
    .search-odf form .results-sort input[type="submit"]{ float: none; }
    
    .search-odf form .button:after{
		clear: both;
		content: " ";
		display: block;
    }
    
    .search-odf-courses .results ul li {
	    border-top: 1px solid #e4e4e4;
	    margin: 0;
	    padding: 20px 0;
	}
}
    
    @media screen and (min-width: 1094px) {
	
	.index .search-odf{
        border-top: 0 none;
        margin-top: 66px;
        margin-bottom: 30px;
        padding-bottom:0;
/*         margin-left: -15px; */
/*         margin-right: -15px; */
        position: relative;
    }
    #ametys-cms-zone-button .search-odf{
        border-left: 1px solid #e4e4e4;
    }
    
    #ametys-cms-zone-button .search-odf h1{
        margin-right: 0;
        margin-top: 0;
        padding-top: 0;
        padding-bottom: 16px;
    }
    
    #ametys-cms-zone-button .search-odf form{
        top: 265px;
        padding-top: 7px;
    }
    
    #ametys-cms-zone-button .search-odf h1 span.service-title{
        padding-left: 0;
        padding-right: 0;
        padding-top: 82px;
        text-align: center;
        margin: 0 auto;
    }
    
    #ametys-cms-zone-button .search-odf h1 span.service-title:before{
        background-position: center center;
        left: 0;
        right: 0;
        top: 0;
        width: 100%;
    }
    
    #ametys-cms-zone-button .search-odf h1 span.service-title:after {
        bottom: -51px;
        font-size: 2em;
        left: 0;
        right: 0;
        top: auto;
        display: none;
    }
    
    #ametys-cms-zone-button .search-odf a.launch_recherche{
        color: #D82262 /* AMETYS ("default.default.bgcolor.complementary") */;
        display: inline-block;
        font-size: 3.8em;
        font-style: normal;
        font-weight: normal;
        height: 41px;
        line-height: 41px;
        text-align: center;
        width: 100%;
        margin-top: 10px;
    }
    
    #ametys-cms-zone-button .search-odf.search-criteria:hover a.launch_recherche,
    #ametys-cms-zone-button .search-odf.search-criteria.open a.launch_recherche{
        background-color: #D82262 /* AMETYS ("default.default.bgcolor.complementary") */;
        color: #fff;
        -webkit-transform: rotate(180deg);
        -ms-transform: rotate(180deg);
        transform: rotate(180deg);
    }
    
    #ametys-cms-zone-button .search-odf.search-criteria:hover a.launch_recherche:after,
    #ametys-cms-zone-button .search-odf.search-criteria.open a.launch_recherche:after {
        background-color: #D82262 /* AMETYS ("default.default.bgcolor.complementary") */;
        bottom: 41px;
        content: "";
        height: 30px;
        left: 0;
        position: absolute;
        right: 0;
    }
    
    #ametys-cms-zone-button .search-odf form {
        left: -790px;
        right: 0;
        top: 243px;
        z-index: 10;
    }
    
    .index .search-odf form .select,
    .index .search-odf form .input {
        width: 29.33%;
        margin-bottom: 31px;
    }
/*     .ui-selectmenu-open ul{ width: calc(1094px * 0.2933); } */
    
    .index .search-odf form input[type="submit"]{
        width: 29.33%;
        max-width: 29.33%;
    }
    
    .search-odf.open{
        background-color: transparent;
    }
    
    #ametys-cms-zone-button .search-odf.open h1,
    #ametys-cms-zone-button .search-odf.open h2,
    #ametys-cms-zone-button .search-odf.open h3{
        color: #D82262 /* AMETYS ("default.default.bgcolor.complementary") */;
    }
    
/*     #ametys-cms-zone-button .search-odf.open h1 span:before, */
/*     #ametys-cms-zone-button .search-odf.open h2 span:before, */
/*     #ametys-cms-zone-button .search-odf.open h3 span:before { */
/*         background-image: url("../../img/formation.png"); */
/*     } */
    
    #ametys-cms-zone-button .search-odf h1 span.service-title:after,
    #ametys-cms-zone-button .search-odf h2 span.service-title:after,
    #ametys-cms-zone-button .search-odf h3 span.service-title:after{
        z-index: 2;
    }
    
}

