/*********************************************************************/
/* = Site : http://patrickjoly.free.fr/ */
/* = Version : 1.0 */
/* = Date de la version : 17/03/2014 */
/* = Auteur : Patrick Joly */
/* = Contact : patrickjoly@free.fr */
/*********************************************************************/

/*********************************************************************/
/* feuille de style screen */
/*********************************************************************/
body {
  	background-color: #017c45;
	color: #ffffff;
	font-family: "trebuchet ms", helvetica, arial, sans-serif;
	font-size: 1em;
	margin: 20px auto;
	overflow: scroll;
	padding: 0;
	text-align: justify;	
	width: 750px;
} 

header, nav, footer {
	display: block;
}

/* header */
header {
	margin: 10px 0 10px 0;
	padding: 0;
}

/* navigation */
nav {
	border-bottom: 1px solid #ffffff;
	border-top: 1px solid #ffffff;
	line-height: 2;
	margin: 20px 0 20px 0;
	padding: 0;
}

nav ul , nav li {
	display: inline;
	margin: 10px 0 5px 0;
	padding: 0;
}

.item {
	display: inline-block;
}

nav a {
	background: #ffffff;
	color: #017c45;	
	display: block;
	font-weight: bold;
	margin: 0 5px 5px 0;
	padding: 3px;
	text-decoration: none;
	-ms-border-radius: 5px;	
	-moz-border-radius: 5px;
	-o-border-radius: 5px;
	-webkit-border-radius: 5px;
	border-radius: 5px;
}

nav a:hover {
	background: #ff7900;
	color: #ffffff;
}

/* contenu */
#contenu {
	margin: 0;
	padding: 0;
}

.row {
	display: table;
	margin: 0;
	padding : 0;
	table-layout: fixed;
	width: 100%;	
	
}

.col {
	display: table-cell;
	margin: 0;
	padding : 10px 0 0 50px;	
	vertical-align: top;
}

.col img {
	margin: 0 auto;
	padding: 0;
	width: 100%;
}

/* galerie */
#galerie {
	background: transparent;
	width: 100%;
}

#galerie ul {
    list-style: none;
    margin: 20px 0 0 0;
    overflow: auto;
    padding: 0;
}
    
#galerie li {
   	float: left;
   	height: 200px;
   	margin: 10px 10px 0 0;
	overflow: hidden;
	width: 200px!important; 	
}
    
#galerie li:hover p {
   	margin-top:-50px;
}

#galerie  img{
	width: 200px!important;
}

#galerie p {
	background: #ff7900;
	color: #ffffff;
	font-size: 0.9em;
	height: 50px;
	opacity: .8;
	padding: 5px;
	text-align: left!important;
	width: auto!important;
	-ms-transition: margin-top .3s ease-out;
	-moz-transition: margin-top .3s ease-out;
	-o-transition: margin-top .3s ease-out;	
	-webkit-transition: margin-top .3s ease-out;
	transition: margin-top .3s ease-out;
}

/* titres */
h1 {
	color: #ff7900;
	font-size: 4em;
	margin: 0;
	padding: 0;
}

h2 {
	border-bottom: 1px dotted #ff7900;
	color: #ff7900;
	font-size: 2em;
	margin: 0;
	padding: 0;
}


/* footer */
footer {
	border-top: 1px solid #ffffff;
	margin: 20px 0 0 0;
	padding: 0;
	font-size: 0.9em;
}

/* liens */
a {
	color: #ff7900;
	text-decoration: underline;
}

a:hover {
	color: #ffffff;
	text-decoration: none;
}

/*********************************************************************/
/* feuille de style mobile */
/*********************************************************************/
@media (max-width: 640px) {
body {
	overflow: scroll;
	padding: 10px;
	width: auto;
}

h1 {
	font-size: 2em;
	text-align: center;
}

h2 {
	font-size: 1.5em;
	text-align: center;
}

nav {
	background: transparent;
	border: none;
}	

nav ul, li {
	margin-bottom: 5px;
	width: auto!important;
}

nav a {
	padding: 5px;
	text-align: center;   
}

.item {
	display: block;
}

#contenu {
	display: block;
	float: none !important;
	width: auto !important;
}

.col {
	display: block !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	border: 0;
	float: none !important;
	width: auto !important;
}
	
.row { 
	display: block !important;
	width: 100% !important;
}

footer {
	text-align: center;
}
}

@media only screen and (max-device-width:640px) and (orientation:landscape)  {
body, html {
	-webkit-text-size-adjust: 100%;	
}
}