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

/* Définition des polices personnalisées */

@font-face
{
    font-family: 'BallparkWeiner';
    src: url('polices/ballpark.eot');
    src: url('polices/ballpark.eot?#iefix') format('embedded-opentype'),
         url('polices/ballpark.woff') format('woff'),
         url('polices/ballpark.ttf') format('truetype'),
         url('polices/ballpark.svg#BallparkWeiner') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face
{
    font-family: 'Dayrom';
    src: url('polices/dayrom.eot');
    src: url('polices/dayrom.eot?#iefix') format('embedded-opentype'),
         url('polices/dayrom.woff') format('woff'),
         url('polices/dayrom.ttf') format('truetype'),
         url('polices/dayrom.svg#Dayrom') format('svg');
    font-weight: normal;
    font-style: normal;
}

/* 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 */
}
section h1, footer h1, nav a, nav ul
{
    font-family: Dayrom, serif;
    font-weight: normal;
    text-transform: uppercase;
}
header
{
    background: url('images/separateur.png') repeat-x bottom;
}

header h1
{
    font-family: 'Harlow Solid Italic', serif;
	font-size: 2.5em;
    font-weight: normal;
}

header h2
{
    font-family: Dayrom, serif;
    font-size: 1.1em;
    margin-top: 0px;
    font-weight: normal;
}
/* 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
}
#titre_principal
{
    font-family: 'Harlow Solid Italic', serif;
	display: inline-block;
}

#logo, header h1
{
    display: inline-block;
    margin-bottom: 0px;
}
#menulat
{
    display: inline-block;
	float:right;
    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 ul 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 ---------------------- */


.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:40px;}
.tab80{margin-left:80px;}
.tab100{margin-left:100px;}
.tab10em{margin-left:10em;}
.pol26{font-size:26px;}
.pol20{font-size:20px;}
.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 clas="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 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 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:hover ul{
max-height:24em;

}
/* background des liens menus */

#menu li:first-child{

background-color: #00aa00; /*#00aa00; #e0e0e0;*/
background-image:url('linear-gradient(to%20bottom,%20#00aa00 25%, #004000 75%');
}
#menu li:nth-child(2){

background-color: #ff0000;   /*#729EBF;*/
background-image:url('linear-gradient(to%20bottom,%20#ff0000 0%, #880000 100%');

}
#menu li:nth-child(3){

background-color: #F6AD1A;
background-image:url('linear-gradient(to%20bottom,%20#F6AD1A 0%, #9F391A 100%');

}
#menu li:nth-child(4){

background-color: #ccccff;
background-image:url('linear-gradient(to%20bottom,%20#ccccff 0%, #0000cc 100%');
}

#menu li:nth-child(5){

background-color: #AAAAAA;
background-image:url('linear-gradient(to%20bottom,%20#AAAAAA 0%, #800040 100%');
}

#menu li:last-child{

background-color: #CFFF6A;
background-image:-webkit-linear-gradient(top, #CFFF6A 0%, #677F35 100%);
background-image:url('linear-gradient(to%20bottom,%20#CFFF6A 0%, #677F35 100%');
}



/* background des liens sous menus */

#meno li:first-child li{
background:green; /*#2A2333;*/
}

#meno li:nth-child(2) li{
background:#ffaa00;
}

#meno li:nth-child(3) li{
background:#9F695A;
}
#meno li:last-child li{
background:#677F35;
}

/* background des liens menus et sous menus au survol */

#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:#9Faacc	;

}

#menu li:nth-child(4):hover, #menu li:nth-child(4) li:hover{

background:#9Faacc	;

}
#menu li:nth-child(5):hover, #menu li:nth-child(5) li:hover{

background:#9F0000	;

}
#menu li:last-child:hover, #menu li:last-child li:hover{
background:#CFFF6A;
}

/* les a href */
#menu a{   /* couleur de police en tête de gondole */
text-decoration:none;
display:block;
padding:8px 32px;
color:#00a;
font-family:arial;
}
#menu ul a{
padding:8px 0;
}
#menu li:hover li a{
color:#000;
text-transform:inherit;
}
#menu li:hover a, #menu li li:hover a{
color:#000;
}


/* ceci n'est plus utilisé momentanément */





nav    /* le bloc dans lequel s'insèrent les titres initiaux de menu */
{
    display: inline-block;
    width: 900px;
    margin-top:-30px;
	text-align: right;
	background-color: #FFF4D6;
	height:60px; /* gère la hauteur de la barre de menu */
	}

nav ul a
{
  //  list-style-type: none;
	text-align: right;
	text-transform: uppercase;
	text-decoration:none; /* evite le soulignement dans la case menu */

}

nav li  /* comportement des titres de niveau 0 */
{
    display: inline-block;  
    float:left;
	width:160px;
	padding: 10px 10px; /* vertical horizontal */
	margin-top:0px;
	margin-left: 10px;
	margin-right: 15px;
	text-align: center;
	border-radius: 15px;
	background-color: #FFBB44;
}
nav li li   /* comportement des titres de niveau 0 */
{
    display: inline-block;  
    float:left;
	margin-top:15px;
	margin-left:-70px;
	width:200px;
//	padding-left:40px;
	text-align: center;
//	margin-right: 15px;
}

nav li ul/*comportement des premiers sous-titres*/
{
	DISPLAY: none; 
//	POSITION: relative; 
}
nav li:hover ul/*    */
{
	DISPLAY: block; 
	POSITION: absolute; 
//	border-bottom: 3px solid #760001;
}
nav li li a
{
    font-size: 1.1em;
    color: #181818;
    padding-bottom: 3px;
    text-decoration: none;
	text-transform: none;
}

nav a:hover
{
    color: #760001;
    border-bottom: 3px solid #760001;
}



/* Bannière */





/* Corps */

article, aside
{
    display: inline-block;
    vertical-align: top;
    text-align: justify;
}

article
{
    width: 625px;
    margin-right: 15px;
	float:left;
}


article p
{
    font-size: 1.2em;
}

aside
{
   // position: relative;
    width: 235px;
    background-color: #606b64;   /* #706b64; gris soutenu*/
    box-shadow: 0px 2px 5px #1c1a19;
    border-radius: 5px;
    margin-top: 20px;
	padding: 10px;
    color: white;
    font-size: 0.9em;
}


aside img
{
    margin-right: 5px;
}

/* 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;
}
	
/* des items non employés */



#tweet, #mes_photos, #mes_amis
{
    display: inline-block;
    vertical-align: top;
}

#tweet
{
    width: 28%;
}

#mes_photos
{
    width: 35%;
}

#mes_amis
{
    width: 31%;
}

#mes_photos img
{
    border: 1px solid #181818;
    margin-right: 2px;
}

#mes_amis ul
{
    display: inline-block;
    vertical-align: top;
    margin-top: 0;
    width: 48%;
    list-style-image: url('images/ico_liensexterne.png');
    padding-left: 2px;
}

#mes_amis a
{
    text-decoration: none;
    color: #760001;
}
#fleche_bulle
{
    position: absolute;
    top: 100px;
    left: -12px;
}

#photo_zozor
{
    text-align: center;
}

#photo_zozor img
{
    border: 1px solid #181818;
}
#banniere_description
{
    position: absolute;
    bottom: 0;
    border-radius: 0px 0px 5px 5px;
    width: 99.5%;
    height: 33px;
    padding-top: 15px;
    padding-left: 4px;
    background-color: rgb(24,24,24); /* Pour les anciens navigateurs */
    background-color: rgba(24,24,24,0.8);
    color: #FFF4D6;
    font-size: 1.8em;
    
}
.bouton_rouge
{
    display: inline-block;
    height: 25px;
    position: absolute;
    right: 5px;
    bottom: 5px;
    background: url('images/fond_degraderouge.png') repeat-x;
    border: 1px solid #760001;
    border-radius: 5px;
    font-size: 1.2em;
    text-align: center;
    padding: 3px 8px 0px 8px;
    color: white;
    text-decoration: none;
}

.bouton_rouge img
{
    border: 0px none;
}
.ico_categorie
{
    vertical-align: middle;
    margin-right: 8px;
}