/*
Theme Name: CHSY
Author: Proxilog
Author URI: http://www.proxilog.com/
Description: The Wordpress theme for Centre hospitalier spécialisé de l'Yonne
Version: 1.0
*/


/* ------------------------- */
/* = Basics
/* ------------------------- */

html, body {
	width: 100%; height: 100%; 
}

body {
	text-size-adjust: none;
	background: #ececec; /* Old browsers */
	background: linear-gradient(to top, #e0e0e0 0%, #ffffff 100%); /* W3C */
	background-attachment: fixed;
}

#wrapper {
	position: relative;
	max-width: 980px; margin: 0 auto;
	background-color: #fff;
}

[class^=col-] {padding: 10px;}   /* @Note : gutters padding override */


/* Couleurs :
	
	bleu : #92cfd9
	bleu foncé : #8493ae
	couleur contraste : #aa5555

*/

/* ------------------------- */
/* = Header
/* ------------------------- */


#site_head {
	position: relative; height: 145px;
}

#site_toolbar {
	position: relative; height: 35px;
	background-color: #ececec;
	padding: 5px 10px;
}
.toolbar-menu {text-align: right;}

.toolbar-menu > li {
	display: inline; font-size: .9em;
	margin: 0 5px; color: #666;
}

#site_infos {padding: 5px;}

.site-title, .site-title a, .site-desc {
	display: block; margin: 0;
	text-indent: 180%; white-space: nowrap; overflow: hidden;
}

.site-title a {
	width: 177px; height: 97px;
	background-position: 0 0;
	background-repeat: no-repeat;
}
.site-desc {
	position: absolute; top: 0; left: 0;
	width: 1px; height: 1px;
}

.search-form--input {
	margin-top: 30px; padding-left: 35px;
	background: url(img/sprite.svg) 4px -136px no-repeat;
	color: #999;
}


/* ------------------------- */
/* = Nav
/* ------------------------- */


#menu {
	position: relative; height: 40px;
	background: #97c8cf; /* Old browsers */
	background: linear-gradient(to top, #97c8cf 0%, #bcdce0 100%); /* W3C */
}
.menu-container {padding: 0;}

.main-menu {
	margin: 0; padding: 0;
	letter-spacing: -0.31em;
}

.main-menu > li {
	position: relative;
	display: inline-block;
	border-right: #fff 2px solid;
	font-weight: bold;
	text-transform: uppercase;
	color: #fff;
	letter-spacing: normal;
}

.main-menu > li > a {
	display: block; 
	height: 40px; padding: 10px 32px 10px 30px;
	text-decoration: none;
}

.main-menu > li:hover, .main-menu > li > a:hover, .main-menu > li.current-menu-item > a, .main-menu > li.current-menu-parent > a {
	color: #000;
}


.main-menu > li:hover > .sub-menu {display: block;}

.main-menu > li .sub-menu {
	display: none;
	position: absolute; top: 40px; left: 0;
	min-width: 100%; padding: 0 10px;
	background-color: #97c8cf;
	z-index: 900;
	white-space: nowrap;
}

.main-menu > li .sub-menu > li {
	list-style-type: none;
	border-top: #fff 1px solid;
	font-size: .9em; line-height: 1.1;
	padding-left: 20px;
	color: #fff;
	text-transform: none;
}

.main-menu > li .sub-menu > li a {
	display: block; padding: 5px 0;
	text-decoration: none; 
}
.main-menu > li .sub-menu > li a:hover, .main-menu > li .sub-menu > li.current-menu-item a {
	color: #000;
}


#trigger {display: none;}



/* ------------------------- */
/* = Typography
/* ------------------------- */


h1, h2, h3, h4, h5, h6 {
	font-weight: bold;
}

h1 {color: #8493ae;}
h2 {color: #92cfd9; color: #aa5555}
h3 {color: #92cfd9;}

p, li, address, figcaption {
	color: #333;
}

p {
	text-align: justify;
	hyphens: auto;
}

p b, p strong {}
p i, p em {}

p a {color: #aa5555;}
p a:hover {color: #666; text-decoration: none;}

li a:hover {color: #aa5555; text-decoration: none;}


small {}


/* Images */

img {height: auto;}

figure {}
figure img {width: 100%;}

a img {}
a:hover img {}


/* Alignments */

.alignleft {
	display: inline; float: left;
	margin-right: 1.5em;
}
.alignright {
	display: inline; float: right;
	margin-left: 1.5em;
}
.aligncenter {
	display: block; clear: both; 
	margin: 0 auto;
}


/* Forms */


/* Customs */

.formfield-radio input[type="radio"] + label:before,
.formfield-checkbox input[type="checkbox"] + label:before {}

.formfield-radio input[type="radio"] + label:before {background-position: 0 -80px;}
.formfield-radio input[type="radio"]:checked + label:before {background-position: -30px -80px;}

.formfield-checkbox input[type="checkbox"] + label:before {background-position: 0 -110px;}
.formfield-checkbox input[type="checkbox"]:checked + label:before {background-position: -30px -110px;}

.formfield-select--container {}
.formfield-select--container:after {background-position: -60px -118px;}

button,
input[type="button"],
input[type="reset"],
input[type="submit"] {}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {}


/* CF7 */

div.wpcf7-response-output {
	margin: 10px 0 0 0 !important; padding: 5px !important;
	font-family: Helvetica, Arial, sans-serif;
}
span.wpcf7-not-valid-tip {color: #c00;}
div.wpcf7-validation-errors {
	border: 0 !important; background-color: #c00; color: #fff !important;
}
div.wpcf7-mail-sent-ok {
	border: 0 !important; background-color: #9c0; color: #fff !important;
}




/* ------------------------- */
/* = Content
/* ------------------------- */


#content {
	position: relative; margin-top: 10px;
}

.main-content {}


/* HOME */

.home-page--blocks {}

.home-content h2 {
	font-size: 1.3em; padding-bottom: 10px;
	border-bottom: #ddd 2px solid;
}
.home-content--structure h3 {
	font-size: 1.2em; color: #666;
}

.home-content p {text-align: left;}


/* Slider */

.slick-slide img {
	position: relative;
	width: 100%; height: auto;
}

.sticky-caption {
	background-color: #8493ae;
}
.sticky-caption p {
	margin: 0; padding-left: 5px;
	display: block; color: #fff;
}

.slick-prev {left: 5px;}
.slick-next {right: 5px;}


/* Lexique */

.glossaryList {
	list-style-type: none;
	border-top: #ccc 1px solid;
}

.glossaryList li {
	padding: 10px;
	border-bottom: #ccc 1px solid;
}

span.glossaryLink, a.glossaryLink {
	border: 0 !important;
}


/* ------------------------- */
/* = Sidebar
/* ------------------------- */


#sidebar {
	
}

.sidebar-nav {
	position: relative;
	border-left: #92cfd9 4px solid;
	padding-left: 0;
}

.sidebar-title { padding-left: 10px;}

.sidebar-nav ul {
	list-style: none;
	padding: 0;
	background-color: #efefef;
	border-radius: 2px;
}

.sidebar-nav ul li a {
	padding: 6px 8px; display: block;
	text-decoration: none;
	transition: background .2s ease-in-out;
}
.sidebar-nav ul li a:hover {
	background-color: #92cfd9 !important; color: #fff;
}

#menu-menu-sites li {
	font-weight: bold; font-size: 1.2em;
	color: #555;
}
#menu-menu-sites li a {
	padding: 16px 8px 16px 85px;
}

#menu-menu-sites li.nav-sites--chs a {
	background: url(img/nav-chs.png) 2px center no-repeat;
}
#menu-menu-sites li.nav-sites--gdr a {
	background: url(img/nav-gdr.png) 2px center no-repeat;
}
#menu-menu-sites li.nav-sites--cdlc a {
	background: url(img/nav-cdlc.png) 2px center no-repeat;
}
#menu-menu-sites li.nav-sites--contact a {
	background: url(img/nav-contact.png) 2px center no-repeat;
}


#menu-menu-sites li.nav-sites--chs a:hover {
	background-image: url(img/nav-chs-white.png);
}
#menu-menu-sites li.nav-sites--gdr a:hover {
	background-image: url(img/nav-gdr-white.png);
}
#menu-menu-sites li.nav-sites--cdlc a:hover {
	background-image: url(img/nav-cdlc-white.png);
}
#menu-menu-sites li.nav-sites--contact a:hover {
	background-image: url(img/nav-contact-white.png);
}



/* ------------------------- */
/* = Footer
/* ------------------------- */


#site_foot {
	position: relative;
	background-color: #8493ae;
	text-align: right;
}

.footer-nav, .footer-copyright {
	display: inline-block; vertical-align: baseline;
	font-size: .9em; font-weight: bold;
	margin-bottom: 0;
}

.footer-copyright {
	color: #fff; margin-right: 20px;
}

.footer-menu {
	margin: 0; padding: 0;
}
.footer-menu li {
	display: inline;
	color: #fff; border-left: #fff 1px solid;
}

.footer-menu li a {
	text-decoration: none;
	padding: 0 21px 0 20px;
}	
.footer-menu li a:hover {
	color: #fff; text-decoration: underline;
}



/* ------------------------- */
/* = Misc
/* ------------------------- */


.clearfix {clear: both; float: none;}
.floatl {float: left;} 
.floatr {float: right;}

.txtr {text-align: right;} 
.txtl {text-align: left;} 
.txtc {text-align: center;}



/* ------------------------- */
/* = Responsive elements
/* ------------------------- */


/* Wide screens */

@media only screen and (min-width: 1280px) {
	
	#wrapper {max-width: 1200px;}
}


/* Tablets portrait and less */

@media only screen and (max-width: 768px) {
	
	#trigger {
		position: absolute; top: -69px; right: 10px;
		display: block; width: 30px; height: 30px;
		background: url(img/sprite.svg) 0 0 no-repeat;
		text-indent: 40px; white-space: nowrap; overflow: hidden;
	}
	
	#menu {
		position: relative; top: 0; left: 0;
		height: 1px; z-index: 900;
	}
	.main-menu {
		display: none;
		background: #97c8cf;
		background: linear-gradient(to top, #97c8cf 0%, #bcdce0 100%); 		text-align: center;
	}
	.main-menu > li {
		display: block; height: auto;
		border: 0; border-bottom: #fff 1px solid;
	}
	.main-menu > li > a {height: auto;}
	
	.main-menu > li .sub-menu {
		position: relative; top: 0; left: 0;
		background-color: transparent;
	}	
	.main-menu > li .sub-menu > li {
		padding-left: 0;
		border-color: rgba(255,255,255,0.4);
	}

	.search-form--input {display: none;}

	#content {margin-top: 0;}


	.footer-nav, .footer-copyright {
		display: block; text-align: center;
		margin-bottom: 10px;
	}
	.footer-menu li:first-child {border-left: 0;}

}


/* Smartphones landscape and less */

@media only screen and (max-width: 480px) {
	
	.sticky-caption {display: none;}
}


/* Smartphones portrait */

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

}


/* ------------------------- */
/* = Print with style
/* ------------------------- */


@media print {
	

}	

/* Home sites image block */
.home-sites-image { margin-top: 12px; text-align: center; }
.home-sites-image__wrap { display: block; }
.home-sites-image__wrap a { display: inline-block; text-decoration: none; }
.home-sites-image__wrap a img { display: block; max-width: 320px; width: 100%; height: auto; margin: 0 auto; border: 0; }
@media (max-width: 768px) {
	.home-sites-image__wrap a img { max-width: 100%; }
}