﻿/*  feuille de style du site mairie Bouchoir */
/**/
/*  A la fin les éléments inutilisés */


/* Initialisation de certaines balises */

body
{
    background: #fff4c6;  /*  url('images/fond_jaune.png');  */
    font-family: 'Trebuchet MS', Arial, sans-serif;
    color: #181818;
}
ul  /*   comportement de toutes les balises ul */
{
    list-style:none;/*   evite le rond devant les lignes de menu */
	text-decoration:none; /* evite le soulignement dans la case menu */
}
button{
	display:block;
	margin:auto; /* pour centrer les boutons */
    }

/* Initialisation des id et des div    ceux concernant le menu sont plus loin*/

#bloc_page
{
    width: 900px;
    margin: auto;
	background-color: #fff4c6;
	
}
#banniere_image
{
    margin-top: 15px;
    height: 200px;
    border-radius: 5px;
    position: relative;
    box-shadow: 0px 4px 4px #1c1a19;
    margin-bottom: 25px
}

#menulat
{
    display: inline-block;
	float:right;
	margin-top:40px; /* pour éloigner du menu général */
    vertical-align: top;
  //  text-align: center;
//	position: relative;
    width: 200px;
    background-color: #FFF4D6;/*#FFF4D6;*/
    box-shadow: 0px 2px 5px #1c1a19;
    border-radius: 5px;
   // text-decoration:none;
	padding: 10px;
    color: black;
    font-size: 0.9em;
}
#menulat a  /* concerne les menus latéraux */
{
    display: inline-block;  
    float:left;
	width:160px;
	//margin-left:-20px; /* pour recentrer ce bloc dans le bloc parent */
	padding:2px 3px;  /* vertical horizontal */
	text-align: left;
	text-decoration:none;
	color:blue;
	background-color: #FFF4D6; /*#FFF4D6;*/
}
/*   --------------   LES CLASSES ---------------------- */
.largeur650{width:650px}

.col1  /*   comportement des cellules de la colonne 1 du tableau des conseillers */
{
    
	background-color:#fff4c6;
	text-align:left;
	width:300px;
	font-size:16px;
	border:2px solid black;
	margin:-1px;
}
.col2 /*   comportement des cellules de la colonne 2 du tableau des conseillers */
{
    background-color:#fff4c6;
	text-align:center;
	width:200px; 
	border:2px solid black;
	margin:-1px;
}
.tab10{margin-left:10px;}             /* classe pour mettre une marge de 10 px */
.tab20{margin-left:20px;}
.tab30{margin-left:30px;}
.tab40{margin-left:40px;}
.tab60{margin-left:60px;}
.tab80{margin-left:80px;}
.tab100{margin-left:100px;}
.tab10em{margin-left:10em;}
.pol26{font-size:26px;}
.pol24{font-size:24px;}
.pol22{font-size:22px;}
.pol20{font-size:20px;}
.pol18{font-size:18px;}
.pol16{font-size:16px;}
.pol14{font-size:14px;}
.pol12{font-size:12px;}
.petit{font-size:small;}
.moyen{font-size:medium;}
.centimg {display:block;margin: 0 auto; }    /* classe pour centrer <img class="centimg;"  */
.centre {text-align: center;}    /* classe pour centrer texte h1 td etc */
.gauche {text-align: left;}   
.justifie{text-align: justify;}
.bleu {color:blue;}    /* pour une police en bleu */
.bbleu {background:lightblue;}    /* pour un arrière plan en bleu */
.bjaun {background:yellow;}
.vert {color:#066;} 






/* Navigation avec menu */

#menu, #menu ul{
padding:0;
margin:0;
list-style:none;
text-align:center;

}
#menu ul{
position:absolute;
max-height:0;
width:100%;
overflow:hidden;
-moz-transition: .8s all .3s;
-webkit-transition: .8s all .3s;
transition: .8s all .3s;
}
#menu li{
display:inline-block;
position:relative;
margin-left:20px;
border-radius:8px 8px 0 0;   /* bord */
}
#menu ul li{
display:inherit;
border-radius:0;
margin-left:-20px;
padding-left:1em;
z-index:50;
}
#menu ul li:hover{
border-radius:0;
}
#menu ul li:last-child{
border-radius:0 0 8px 8px;
}

#menu li:hover ul{
max-height:24em;

}
/* background des liens menus */

#menu li:first-child{
//background-color: #00ff00; /*#00aa00; #e0e0e0;*/
//background-image:linear-gradient(to bottom, #00ff00 25%, #00aa00 75%);
background-color: #00ee00; /*#00aa00; #e0e0e0;*/
background-image:linear-gradient(to bottom, #00aa00 25%, #008800 75%);}
#menu li:nth-child(2){
background-color: #dd0000;   /*#729EBF;*/
background-image:linear-gradient(to bottom, #dd0000 0%, #ddaa00 100%);
}
#menu li:nth-child(3){
background-color: #0000dd;
background-image:linear-gradient(to bottom, #0000dd 0%, #00aadd 100%);
}
#menu li:nth-child(4){
background-color: #dd00dd;
background-image:linear-gradient(to bottom, #dd00dd 0%, #ddaadd 100%);
}
#menu li:nth-child(5){
background-color: #F6AD1A;
background-image:linear-gradient(to bottom, #F6AD1A 0%, #9F391A 100%);
}
#menu li:nth-child(6){
background-color: #ba0;
background-image:linear-gradient(to bottom, #BA0 0%, #ab0 100%);
}
#menu li:nth-child(7){
background-color: #0000dd;
background-image:linear-gradient(to bottom, #0000dd 0%, #00aadd 100%);
}
#menu li:last-child{
background-color: #aaccaA;
background-image:linear-gradient(to bottom, #aaccCA 0%, #677F35 100%);
}

/* background des liens menu et sous menu au survol */
/* ligne par ligne est définie la couleur de chaque item et ses sous-items lors du survol */
/* si aucune couleur n'est définie on a un comportement différent */

#menu li:first-child:hover, #menu li:first-child li:hover{
background:lightgreen; /*#65537A;*/
}
#menu li:nth-child(2):hover, #menu li:nth-child(2) li:hover{
background:#CCaa00;  /*#729EBF;*/
}
#menu li:nth-child(3):hover, #menu li:nth-child(3) li:hover{
background:#aa88aa;
}
#menu li:nth-child(4):hover, #menu li:nth-child(4) li:hover{
background:#0000bb;
}
#menu li:nth-child(5):hover, #menu li:nth-child(5) li:hover{
background:#bb0000;
}
#menu li:last-child:hover, #menu li:last-child li:hover{
background:#88cc6A;
}
/* les a href */
#menu a{   /* couleur de police en tête de gondole */
text-decoration:none;
display:block;
padding:8px 32px;
color:#fff;
font-family:arial;
}
#menu ul a{
padding:8px 0;
}
#menu li:hover li a{
color:#fff;
text-transform:inherit;
}
#menu li:hover a, #menu li li:hover a{
color:#ff0;
}




/* Footer */

footer
{
    background:  url('images/separateur.png') repeat-x top, url('images/ombre.png') repeat-x top;
    padding-top: 25px;
}

footer p, footer ul
{
    font-size: 1em;
}

//footer h1
{
    font-size: 1.1em;
}



/* Correctifs pour les vieilles versions d'Internet Explorer */

/* Pour activer un positionnement type inline-block sur les vieilles versions d'IE */

.old_ie #titre_principal, .old_ie #logo, .old_ie header h1, .old_ie nav, .old_ie nav li, .old_ie .bouton_rouge, .old_ie article, .old_ie aside, .old_ie #tweet, .old_ie #mes_photos, .old_ie #mes_amis, .old_ie #mes_amis ul
{
    display: inline;
    zoom: 1;
}

/* Quelques ajustements pour les vieilles versions d'IE */

.old_ie section h1, .ie8 section h1
{
    font-size: 1.1em;
}

.old_ie footer div, .ie8 footer div
{
    margin-top: 30px;
    background: url('images/separateur.png') repeat-x top;
}
	




