/*--------------------------------------------------------------------------------
    CSS - Feuille de style générale
    
    projet: 	Energie Confluence
    modifie le: 2009-01-31
--------------------------------------------------------------------------------*/


/*----- STYLES GENERAUX -----*/

html { font-size: 100%;}
body {
    margin: 0;
	padding: 0;
    font-family: Arial, Helvetica, FreeSans, sans-serif;
    font-size: .8em; /* À adapter pour la police choisie. (3) */
    line-height: 1.4; /* À adapter au design. (4) */
    color: #5d5d5d;
    background: white;
}

/* Titres */
h1, h2, h3, h4, h5, h6 {
    margin: 1em 0 .5em 0;
    line-height: 1.2;
    font-weight: bold; 
    font-style: normal;
    color: #011588;
}
h1 {
    font-size: 1.75em;
    margin: 0;
    padding: 50px 0 0 0;
}
h2 {
    font-size: 1.8em;
    font-weight: normal;
    margin-top: 0.5em;
}
h3 {
    font-size: 1.2em;
    margin-top: 1.5em;
}
h4 {
    font-size: 1em;
}

/* Listes */
ul, ol {
    margin: .75em 0 1.2em 32px;
    padding: 0;
}

/* Paragraphes */
p {
    margin: .75em 0;
}

/* Liens */
a, a:link {
    text-decoration: none;
    color: #666;
}
a:hover, a:focus, a:active {
    color: #000;
}
a img {
    border: none;
}
#content a {
	text-decoration: underline;
}

/* Divers éléments de type en-ligne */
em {
    font-style: italic;
}
strong {
    font-weight: bold;
}

/* Formulaires */
input, button, select {
    vertical-align: middle; /* Solution pb. d'alignement. */
}
fieldset {
	padding: 10px 20px;
	background: #eee;
	border: 1px solid #ddd;
}
fieldset p { overflow: auto;}
legend {
	padding: 8px 8px 0;
	font-size: 1.2em;
	font-weight: bold;
	display: block;
	margin-left: -5px;
}
label {
	float: left;
	text-align: right;
	width: 117px;
}
input, textarea, select {
	border: 1px solid #aaa;
	background: #fff;
	padding: 3px;
	margin-left: 10px;
	margin-top: 0;
	color: #555;
}
input#cfContact {
	margin-left: 127px;
	font-size: 1.1em;
	background: #555;
	color: #fff;
	border: 1px solid #444;
	cursor: pointer;
}
input#cfContact:hover {
	background: #444;
}
div.errors {
	padding: 8px;
	margin-bottom: 15px;
	background: #fff;
	color: #DB5615;
	border: 1px solid #DB5615;
}
input.required, select.required, textarea.required { border: 1px solid #DB5615;}
label.required { color: #DB5615;}


/* Mise en forme simple pour les tableaux */
table {
    margin: 0;
    border: 1px solid gray; /* Pas de bordure = "none". */
    border-collapse: collapse; /* Valeur par défaut: "separate". */
    border-spacing: 0;
}
table td, table th {
    padding: 4px; /* Pas de retrait autour du texte = "0". */
    border: 1px solid #ccc; /* Pas de bordure = "none". */
    vertical-align: top; /* Valeur par défaut: "middle" */
    text-align: left;
}

/*----- MISE EN PAGE -----*/

/*--- Header ---*/
#wrapper-header {
	background: url(images/bg-wrapperheader.jpg) repeat-x top left;
	height: 140px;
}
#wrapper-header #header {
	margin: 0 auto;
	width: 780px;
	background: url(images/bg-header.jpg) repeat-x top left;
	height: 140px;
	position: relative;
}
#wrapper-header #header #img-header {
	width: 260px;
	height: 100px;
	position: absolute;
	top: 17px;
	right: -3px;
	border: 3px solid #fff;
}
#wrapper-header #header #img-header img {
	margin: 0;
	padding: 0;
}


/*--- Barre de navigation ---*/
#wrapper-topnav {
	background: url(images/bg-wrappertopnav.jpg) repeat-x;
	height: 41px;
}
#topnav {
	margin: 0 auto;
	width: 780px;
	overflow: hidden;
}
#topnav ul {
	padding: 0;
	margin: 0;
	height: 41px;
	background: url(images/bg-topnav-li.jpg) no-repeat left center;
}
#topnav ul li {
	display: inline;
}
#topnav ul li a {
	color: #fff;
	display: block;
	float: left;
	background: url(images/bg-topnav-li.jpg) no-repeat right center;
	padding: 10px 20px;
	font-size: 1.2em;
	font-weight: bold;
	text-shadow: 0px 1px 1px #002330;
}
#topnav ul li a:hover,
#topnav ul li a.active {
	color: #8BD1DF;
}

/*--- Page ---*/
#wrapper-page {
	background: url(images/bg-wrapperpage.jpg) repeat-x 0 0;
}
#page {
	margin: 0 auto;
	width: 780px;
	overflow: hidden;
	padding: 30px 0;
}

/*--- Sidebar ---*/
#sidebar {
	width: 265px;
	float: right;
	border: 1px solid #d8d8d8;
	background: #fff;
	padding: 10px 0 20px;
}
#sidebar h2 {
	font-size: 1.3em;
	background: url(images/bg-sidebar-h2.png) no-repeat 0 0;
	margin: 0 0 0 -10px;
	height: 38px;
	padding: 11px 0 0 45px;
}
#sidebar ul {
	margin: 0 0 20px 0;
}
#sidebar ul li {
	list-style: none;
}
#sidebar ul li a {
	display: block;
	border-bottom: 1px solid #d9d9d9;
	padding: 9px 10px 8px 10px;
	background: url(images/bg-sidebar-li.jpg) repeat-x bottom left;
	color: #555;
	font-weight: bold;
}
#sidebar ul li a:hover {
	color: #000;
}
#sidebar ul li a.active {
	color: #000;
}
#sidebar ul li a#sidebar7 span {
	background: url(images/electricite.png) no-repeat 0 2px;
	padding: 3px 0 3px 28px;
}
#sidebar ul li a#sidebar8 span {
	background: url(images/energies.png) no-repeat 0 2px;
	padding: 3px 0 3px 28px;
}
#sidebar ul li a#sidebar9 span {
	background: url(images/informatique.png) no-repeat 0 2px;
	padding: 3px 0 3px 28px;
}

#sidebar ul li ul {
	margin: 0;
}
#sidebar ul li ul li a {
	display: block;
	border-bottom: 1px dotted #d9d9d9;
	padding: 8px 10px;
	margin: 0 10px;
	background: #fff;
	color: #666;
	font-weight: normal;
}
#sidebar ul li ul li a.last {
	border-bottom: none;
}
#sidebar ul li ul li a.active {
	font-weight: bold;
	color: #000;
	text-decoration: none;
}
#sidebar address {
	font-style: normal;
}
#sidebar address p {
	padding: 0 20px 10px;
}
#sidebar address p#contact {
	border: 1px solid #ce3702;
	background: #f04001 url(images/bg-contact.jpg) repeat-x 0 0;
	color: #fff;
	padding: 5px;
	margin: 0 20px;
	font-weight: bold;
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
	text-shadow: 0px 1px 1px #ce3702;
	line-height: 1.2em;
}
#sidebar address p#contact a {
	color: #fff;
}
#sidebar address p#contact strong {
	font-size: 1.1em;
}

/*--- Content ---*/
#content {
	width: 480px;
	float: left;
}

/*--- Footer ---*/
#wrapper-footer {
	background: #5a5a5a url(images/bg-wrapperfooter.jpg) repeat-x 0 0;
	min-height: 100px;
}
#footer {
	margin: 0 auto 20px;
	width: 780px;
	position: relative;
}
#footer ul#bottomnav {
	padding: 0;
	margin: 0;
	position: absolute;
	top: 20px;
	left: 0;
}
#footer ul#bottomnav li {
	display: inline;
}
#footer ul#bottomnav li a {
	color:#fff;
	border-bottom: 1px solid #8c8c8c;
	padding: 0 0 3px 0;
	margin: 0 15px 0 0;
	font-weight: bold;
}
#footer ul#bottomnav li a:hover,
#footer ul#bottomnav li a.active {
	border-bottom: 2px solid #fff;
}
#footer img#logo-footer {
	position: absolute;
	top: 20px;
	left: 520px;
}
#footer p#credits {
	position: absolute;
	top: 50px;
	left: 520px;
	color: #353535;
	font-weight: bold;
	font-size: 0.9em;
}
#footer p#credits a {
	color: #353535;
	text-decoration: underline;
}
#footer p#credits a:hover {
	color: #fff;
}


