/*********************************************************************/
/* = Site : http://patrickjoly.free.fr/ */
/* = Version : 1.0 */
/* = Date de la version : 10/07/2013 */
/* = Auteur : Patrick Joly */
/* = Contact : patrickjoly@free.fr */
/*********************************************************************/

/* général */
/*********************************************************************/
body {
	background: #e7e5e5;
	color: #000000;
	font-family: Georgia;
	font-size: 1em;
	margin: 20px auto;
	overflow: scroll;
	padding: 0;
	text-align: justify;
	max-width: 700px;
}

/* navigation */
nav ul {
	background: #717f7f;
	margin: 0;
	padding: 5px;
}

nav li {
	margin: 0;
	padding: 5px;
	float: left;
	position: relative;
	list-style: none;
}

nav a {
	color: #e7e5e5;
	display: block;
	text-decoration: none;
	margin: 0;
	padding:  5px;
	-ms-border-radius: 5px;	
	-moz-border-radius: 5px;
	-o-border-radius: 5px;
	-webkit-border-radius: 5px;
	border-radius: 5px;	
}

nav .active a, nav li:hover > a {
	background: #e02826;
	color: #ffffff;
}

nav ul ul a:hover {
	background: #e02628;
	color: #ffffff !important;
	-ms-border-radius: 5px;	
	-moz-border-radius: 5px;
	-o-border-radius: 5px;
	-webkit-border-radius: 5px;
	border-radius: 5px;		
}

nav li:hover > ul {
	display: block;
}

nav ul ul {
	background: #e7e5e5;
	border: 1px solid #e02826;
	display: none;
	left: 5px;
	margin: 0;
	padding: 0;
	position: absolute;
	top: 35px;
	width: 200px;	
	-ms-border-radius: 5px;	
	-moz-border-radius: 5px;
	-o-border-radius: 5px;
	-webkit-border-radius: 5px;
	border-radius: 5px;		
}

nav ul ul li {
	float: none;
	margin: 0;
	padding: 5px;
}

nav ul ul a {
	color: #e02826;
}

nav ul:after {
	clear: both;
	content: '.';
	display: block;
	line-height: 0;
	height: 0;
	visibility: hidden;
}

/* header */
header {
	margin: 0;
	padding: 0;
}

/* contenu */
#contenu{
	line-height: 1.5!important;
}

/* footer */
footer {
	border-top: 1px solid #717f7f;	
	font-size: 0.9em;
	margin: 5px 0 0 0;
	padding: 5px 0 5px 0;
}
	
/* titres */
h1 {
	background : #717f7f;
	color: #e7e5e5;
	font-size: 3em;
	margin: 0;
	padding: 10px;
}

h2 {
	color: #717f7f;
	border-bottom: 1px solid #717f7f;
	border-top: 1px solid #717f7f;
	font-size: 1.4em;
	margin: 10px 0 10px 0;
	padding: 0;	
}

h3 {
	border-bottom: 1px dotted #717f7f;
	padding: 0;	
}

/* liens */
a {
	color: #e02826;
	text-decoration: underline
}

a:hover {
	color: #000000;
	text-decoration: none;
}

/*********************************************************************/
/* feuille de style mobile */
/*********************************************************************/
@media (max-width: 640px) {

body {
	overflow: scroll;
	margin: 0;
	padding: 10px;
	text-align: justify;
	width: auto;
}

h1 {
	font-size: 2em;
}

h2 {
	font-size: 1.4em;
}

h3 {
	font-size: 1.2em;
}

nav {
	background: transparent;
	width: auto!important;
}	

nav ul, li {
	margin-bottom: 5px;
	width: auto!important;
}

nav ul ul {
	width: 100%!important;	
}

nav a {
	padding: 5px;
}

#contenu {
	display: block;
	line-height: 1.5!important;	
}
}

@media only screen and (max-device-width:640px) and (orientation:landscape)  {
body, html {
	-webkit-text-size-adjust: 100%;	
}
}