@font-face {
    font-family: 'OpenSans';
    src: url(../fonts/OpenSans-Regular.woff);
    font-weight: 300;
}

@font-face {
    font-family: 'OpenSans';
    src: url(../fonts/OpenSans-Bold.woff);
    font-weight: 700;
}

html, body {
    margin: 0;
    padding: 0;
    font-size: 13px;
    font-family: 'OpenSans';
}

h1, h2, h3, body {
    font-weight: 300;
}

div, section, article {
    box-sizing: border-box;
}



li {
    list-style-type: square;

}

h1 {
    font-size: 23px;
    padding: 8px 0 0 16px;
    background-color: transparent;
}

h3 {
    margin-bottom: 6px;
}

h3,
section#search,
section#search input,
section#results {
    font-size: 16px;
}

#container {
    margin: auto;
    width: 980px;
    background-color: #fff;
}

#container > header {
	margin-top:25px;
    height: 53px;
    color: #fff;
}

#container > header span.separtor {
    margin: 0 21px;
}

/* helpers */

.link {
    color: blue;
    text-decoration: underline;
}

/* search */

#container > header,
section#search input[type="submit"] {

background-color: #e41500;
    /*background-color: #ff0000;*/
}

section#search {
    background: url(../img/bg_search.jpg) no-repeat;
    height: 373px;
    background-size: cover;
    color: #fff;
    position: relative;
    display: block;
}

section#search div {
    position: absolute;
    left: 202px;
    top: 132px;
    display: none !important;
}

section#search input {
    height: 32px;
    margin: 0;
}

section#search input[type="text"] {
    width: 426px;
    padding-left: 10px;
}

section#search input[type="submit"] {
    width: 152px;
    margin-left: -5px;
    color: #fff;
    border: none;
    cursor: pointer;
    -webkit-appearance: none;
}

/* welcome */

section#welcome {
    margin-top: 25px;
    color: #615e5e;
    text-align: justify;
}

section#method {
    margin-top: 25px;
    color: #615e5e;
    text-align: justify;
}


/* results */

section#results {
    font-size: 16px;
    margin-top: 25px;
}

section#results header {
    margin-bottom: 10px
}

section#results article {
    margin-bottom: 25px;
}

section#results article header a {
    display: block;
}

section#results article > section {
    height: 70px;
}

section#results section > a {
    color: inherit;
    display: block;
    text-decoration: none;
}

section#results section > a:hover > div {
    background-color: #ffde9e;
}

section#results section > a > div {
    padding: 15px 15px 13px 15px;
    background-color: #fff7e7;
    float: left;
    height: auto;
    max-height: 100%;
    border-bottom: 2px solid #808080;
    margin-right: 6px;
    cursor: pointer;
    -webkit-transition: background .5s ease;
       -moz-transition: background .5s ease;
        -ms-transition: background .5s ease;
         -o-transition: background .5s ease;
            transition: background .5s ease;
}

section#results section> a > div:nth-last-child(2) {
    /*width: 15.5%;*/
}

section#results section> a > div:last-child {
    margin-right: 0;
    width: 11.55%;
}


section#results section> a > div:last-child {
    padding: 24px 12px;
}

section#results div p {
    margin: 0;
    text-align: center;
}

section#results div p:first-child {
    font-weight: bold;
}

section#results div.stars div.wrapper {
    height: 100%;
    width: 100%;
    position: relative;
    background-color: transparent;
    text-align: center
}

/* ads */

section#ads {
    padding: 27px 16px;
    display: inline-block;
}

section#ads article {
    width: 298px;
    height: 185px;
    float: left;
    margin-right: 27px;
    color: #fafafa;
    background-color: #b1b1b1;
}


section#ads article div {
    display: table;
    height: 100%;
    width: 100%;
    text-align: center
}

section#ads article div div {
    display: table-cell;
    vertical-align: middle;
    height: 100%;
}

section#ads article:last-child {
    margin-right: 0;
}

footer {
    margin-top: 25px;
	margin-bottom: 25px;
    background-color: #dededd;
    color: #666;
    font-size: 14px;
    padding: 20px;
}

footer section {
    float: left;
    margin-right: 75px;
}

footer section div.wrapper {
    width: 100%;
    height: 100%;
}

footer section div.wrapper ul li {
    display: block;
    line-height: 30px;
}

/***** Responsive *****/

@media screen and (min-width: 769px) {
	section#results section> a > div:nth-last-child(2) {
    height:74px !important;
	width:135px !important;

	}

}

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

    body {
        overflow-x: hidden;
        font-size: 16px;
    }

    #container {
        width: 100%
    }

    h1 {
        font-size: 18px
    }

    h3 {
      /*  text-align: center;*/
    }

    #container > section {
        margin-bottom: 30px;
        width: 100%;
    }

    section#welcome,
    section#results,
    section#ads {
        padding: 0 15px;
        width: 100%;
    }

    /* header */

    #container > header {

        text-align: center;
        width: 100%;

        margin: 0
    }


	
	
    #container > header span.separtor {
        margin: 0 2px;
    }

    /* search */

    section#search {
        min-height: 300px;
        padding: 20px;
        /*display: table;*/
        display: block;
    }

    section#search div {
        padding: 0 20px;
        left: 0;
        display: table-cell;
        vertical-align: middle;
        position: relative;
        top: 0
    }

    section#search h3 {
        font-weight: 700;
        margin-bottom: 10px;
    }

    section#search input, 
    section#ads > article {
        -webkit-border-radius: 5px;
           -moz-border-radius: 5px;
            -ms-border-radius: 5px;
             -o-border-radius: 5px;
                border-radius: 5px;
        border-top-left-radius: 5px; 
        border-top-right-radius: 5px;
        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
    }

    section#search input[type="text"],
    section#search input[type="submit"] {
        width: 100%;
        padding: 18px 12px;
        height: auto;
        font-size: 18px;
    }

    section#search input[type="text"] {
        margin-bottom: 15px
    }

    section#search input[type="submit"] {
        text-align: center;
        margin-left: 0;
    }

    /* results */

    section#results header {
        text-align: center;
    }

    section#results section {
        position: relative;
    }

    section#results section> a > div {
        float: none;
        width: 100%;
        display: inline-block;
        padding: 0 5px;
        border: none;
    }

    section#results article > section {
		padding-bottom:10px;
         height: auto;
    }
	
	
	

    section#results section > a:hover > div {
        background-color: #fff7e7;
    }

    section#results section > a > div:first-child {
        margin-top: 15px;
    }

    section#results section> a > div:last-child {
        display: none;
    }
/*
    section#results section> a > div:nth-last-child(3) {
       padding-bottom: 20px; 
        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
    }

    section#results section> a > div:nth-last-child(2) {
        text-align: center;
        position: absolute;
        top: 0;
        left: 0;
        padding: 20px 0 10px;
        border-top-left-radius: 5px;
        border-top-right-radius: 5px;
    }
*/
    section#results div p {
        width: 40%;
        float: left;
        text-align: left;
        padding: 2px 10px;
    }

    /* ads */

    section#ads > article {
        width: 100%;
        display: block;
        margin: 0 0 25px;
        background-size: cover;
        background-repeat: no-repeat;
    }

    section#ads > article:first-child {
        /*background-image: url(../img/1.png);*/
        
    }

    section#ads > article:last-child {
        margin: 0;
    }

    /* footer */

    #container > footer {
        display: table;
        text-align: center;
        width: 100%;
        padding: 5px 0;
        margin: 0
    }
	
	.drapeau {
	display:none;
	}
	
	
	section#method {
    padding:10px;
}
	
}