@import url('https://fonts.googleapis.com/css?family=EB+Garamond:400,500i,700|Roboto:400,500');
@import url('https://fonts.googleapis.com/css?family=Raleway:300,400,600i&subset=latin-ext');

/* ====== General ====== */
body {
	background-color: #777;
	background-image: linear-gradient(to top, #444,  #777);
	color: #000000;
	margin: 9px 0px 0px 0px;
	font-family: 'Roboto', 'Helvetica', sans-serif;
	text-align: left;
	font-size: 85%;
}

div#container {
	width: 70%;
	padding: 5px;
	margin: 0px auto;
	text-align: left;
	background-color: #ffffff;
}

/* Responsive layout */
@media screen and (max-width: 1500px) {
  div#container {
	 width: 85%;
	 padding: 2px;
  }
}

/* Responsive layout */
@media screen and (max-width: 1200px) {
	div#container {
		width: 100%;
		padding: 0px;
	}
}

div#content {
	content: "";
	display: table;
	clear: both;
	display: flex;
	flex-wrap: wrap;
}

/* Clear floats after the columns */
div#content:after {
	content: "";
	display: table;
	clear: both;
}


/* ====== Header ====== */
div#header {
	position: relative;
	background: linear-gradient(to bottom right, #111,  #444);
	width: 100%;
	height: 160px;
	padding: 0px;
	margin:  0px 0px 1px 0px;
}
#logo{
	width: 30%;
	max-height: 150px;
	text-align: left;	
	margin: 0px 5%;
  	position: absolute;
    top: 50%; 
    transform: translateY(-50%) rotate(4deg); 
    transition: width 0.7s, transform 0.7s;
}

@media screen and (max-width: 500px) {
#logo{
	 width: 200px;
	 align: center;
	 top: 10px; 
	 transform: rotate(0deg); 
	 margin: 10px 20px;
}
}

div#search {
	position: absolute;
	bottom: 20px;
	right: 20px;
	margin: 5px;
}

div#search label {
	display: none;
}

#recherche {
	width: 220px;
  background-color: #222;
 	border: solid 1px #aaa;
 	color: #eee;
	padding: 5px;
	margin: 5px;
	box-sizing: border-box;
	font-weight: normal;
	letter-spacing: 1px;
}
.submit {
	width: 30px;
  background-color: #222;
 	border: solid 1px #aaa;
 	color: #bbb;
	padding: 5px;
	margin: 5px;
	box-sizing: border-box;
	font-weight: normal;
	letter-spacing: -3px;
	border-radius: 50%;
}
.submit:hover {
	cursor: pointer;
	box-shadow: 0px 0px 6px #222;
}

/* ====== Bar de navigation ======*/
div#menu {
	overflow: hidden;
	background-image: linear-gradient(to bottom, #333,  #222);
	position: -webkit-sticky; /* Safari */
	position: sticky;
	top: 0;
	box-shadow: 0px 3px 8px #bbb;
}

div#menu a {
	float: left;
	font-family: 'EB Garamond', serif;
	font-size: 1.2em;
	letter-spacing: 0px;
	text-transform: uppercase;
	display: block;
	color: #eee;
	text-align: center;
	padding: 12px 10px;
	text-decoration: none;
	min-width: 50px;
}

div#menu a:hover {
	background-color: #111;
	box-shadow: 0px 1px 200px #aaa;
	color: #eee;
}

/* Responsive layout - when the screen is less than 400px wide, make the navigation links stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
  div#menu a {
    float: none;
    width: 100%;
  }
	div#menu {
	position: -webkit-static; /* Safari */
  position: static;
  }
}

div#leftcol {
	float: left;
	text-align: justify;
	background-color: #fff;
	padding: 20px 10px;
	margin:  0px;
	flex-grow: 5;
	flex-shrink: 1;
	flex-basis: 60%;
}

div#rightcol {
	float: right;
	font-size: 0.87em;
	text-align: justify;
	background-image: linear-gradient(to right, #bbb,  #ddd);
	border: solid 1px #bbb;
	padding: 20px 10px;
	margin:  0px 0px;
	flex-grow: 1;
	flex-shrink: 1;
	flex-basis: 33%;
}

div#rightcol a img{
	overflow: hidden;
	border-radius:50%;
	box-shadow: 0px 2px 3px #777;
	border: solid 1px #eee;
	margin:  3px;
	transition: transform 0.5s;
}

div#rightcol a img:hover{
	transform: rotate(10deg);
}

/* pour eviter que les image de l'actu face n'importe quoi */
div#zoneactu a img{
	border-radius:0%;
	border: solid 0px #eee;
	box-shadow: 0px 0px 0px #777;
}
div#zoneactu a img:hover{
	transform: rotate(0deg);
	box-shadow: 0px 0px 0px #777
}

div.rightcol {
    padding: 5px;
}

/* ====== contenu ====== */
div.third {
	float: left;
	min-width: 210px;
	width:30%;
	padding: 10px 5px;
	text-align: left;
	font-size: 0.86em;
}

div.third9 {
	float: left;
	min-width: 210px;
	width:30%;
	padding: 10px 5px;
	text-align: left;
	font-size: 0.86em;
}

div.third a, div.third9 a {
	color: #000000;
}

div.third div, div.third9 div {
	clear: left;
}

img.left, .spip_documents_left {
    float: left;
    margin-right: 10px;
    margin-bottom: 10px;
}

div#zoneactu {
	max-height: 700px;
	overflow: auto;
}

/* Responsive layout - when the screen is less than 400px wide, make the navigation links stack on top of each other instead of next to each other */
@media screen and (max-width: 900px) {
  div#zoneactu {
	 max-height: none;
  }
	div#zoneagenda {
	 max-height: none;
  }
}

div#zoneagenda {
	min-height: 80px;
	max-height: 400px;
	overflow: auto;
}

div.barre {
	width: 100%;
	height: 3px;
	margin: 15px 0px;
	line-height: 1px;
	font-size: 0px;
	background-color: #990000;
}

div.bottom {
	margin-bottom: 10px !important;
}

div.clearer {
	clear: both;
}

h1 {
	width: 300px;
	height: 120px;
	margin: 0px;
	padding: 0px;
}

h1 a {
	display: block;
	width: 100%;
	height: 100%;
}

h1 span {
	display: none;
}

h2 {
	margin-top: 8px;
	margin-bottom: 8px;
	padding: 0px;
	line-height: 14px;
	text-align: left !important;
}

h2 a {
	display: block;
	height: 100%;
	width: 100%;
	text-decoration: none;
	background-image: url('images/cross_grey.png');
	background-repeat: no-repeat;
	background-position: center right;
	padding: 5px 1px 1px 5px;
}

h2 span {
	font-style: italic;
	font-weight: normal;
	font-family: 'EB Garamond', serif;
	font-size: 1.4em;
	letter-spacing: 1px;
	line-height: 85%;
	color: #555;
}

h3 {
	margin: 0px;
	font-size: 1.1em;
	font-weight: bold;
	color: #222;
	padding: 10px 0px 0px 0px;
}

h3 a {
	color: #222 !important;
	text-transform: uppercase;
}

h3 span.publication {
	font-style: italic;
	font-weight: normal;
	font-family: 'EB Garamond', serif;
	font-size: 1em;
	padding-left: 20px;
	color: #444;
}

p img {
	border: 0px;
	margin: 10px;
}


div#leftcol img {
	border: solid 0px #444;
	box-shadow: 0px 2px 3px #999;
  transition: 0.8s ease-in-out;
	max-width: 100%;
  height: auto;
}

div#leftcol img:hover{
	border: solid 0px #444;
	box-shadow: 0px 3px 6px #777;
	filter: grayscale(100%);
}

.puce{
	box-shadow: none;
}

img.bottom {
	margin-bottom: 5px;
}

p.contenu {
	text-align: justify;
	margin-top: 7px;
	margin-bottom: 7px;
}

p.pagination {
	text-align: center;
}


p.spip {
	margin-bottom: 14px;
	mrgin-top: 0px;
	text-align: justify;
}

small {
	font-size: 10px;
	color: #555;
	font-style: italic;
	display: block;
}

small a {
	color: #555 !important;
}

.justify {
	text-align: justify;
	display: block;
}

.spip_surligne {
	background-color: #FFCCCC;
}

a, a:active, a:visited, a:link {
	color: #990000;
	text-decoration: none;
}

a:hover {
	color: #990000;
	text-decoration: underline;
}

.liennews {
	display: block;
}

.spip_documents_center {
    float: none;
    display: block;
    text-align: center !important;
}

.spip_documents_center {
  text-align: center !important;
	padding: 15px;
}

/* Responsive layout - pour masquer banniere en mode mobile*/
@media screen and (max-width: 600px) {
  .banniere{
	 display: none;
  }
}

/* ====== Footer ====== */
div#footer {
	word-spacing: 3px;
	line-height: 170%;
	width: 100%;
	text-align: center;
	color: #fff;
	background: #777;
	background-image: linear-gradient(to bottom, #333,  #222);
	vertical-align: middle;
	padding: 20px 0px;
	margin-top: 20px;
	font-size: 1em;
	font-style: italic;
	font-weight: normal;
	font-family: 'EB Garamond', serif;
}

div#footer a {
	text-decoration: none;  
	color: #bbb;
}