/* ::::::::::::::::::::::::: RESET ::::::::::::::::::::::::: */

html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary, time, mark, audio, video {
	margin: 0pt;
	padding: 0pt;
	font-size: 100%;
	font-weight: inherit;
	font-style: normal;
	vertical-align: baseline;
	/*background: none repeat scroll 0% 0% transparent;*/ /* A remettre quand on a finit de travailler */
	border: 0pt none;
	outline: 0pt none;
}
article, aside, figure, figure img, hgroup, footer, header, nav, section {
	display: block;
}
ol, ul {
	list-style: none outside none;
}
input, select {
	vertical-align: middle;
}
a img {
	border: 0pt none;
}
:focus {
	outline: 0pt none;
}
a:hover, a:active {
	outline: medium none;
}

/* ::::::::::::::::::::::::: STYLES ::::::::::::::::::::::::: */

/* ---------- PRINCIPAL ---------- */

body {
	padding-top: 20px;		
}
#principal {
	position: relative; /* Sert de butoir pour tous ses enfants en position absolue */
	/*background: #FF0;*/
	height: 100%;
	width: 896px;
	margin-right: auto;
	margin-left: auto;
	font-family: Georgia, sans-serif;
}

a, a:link, a:visited {
	text-decoration: none;
	color: rgb(52, 172, 152);
}
a:hover, a:focus {
	color: rgb(236, 102, 53);
}

/* ---------- HEADER ---------- */

header {
	/*background: #FCF;*/
	width: 160px;
	float: left;
}

/* ---------- CONTENU ---------- */

#contenu {
	/*background: #6CF;*/
	height: 100%;
	width: 712px;
	float: right;
}

/* ---------- FOOTER ---------- */

footer {
	/*background: #FCF;*/
	clear: both;
}

/* ---------- ASIDE ---------- */

aside {
	/*background: #9F6;*/
	width: 160px;
}

/* ---------- MARQUE ---------- */

header #marque {
	background: url(../images/food-sense.png) no-repeat;
	height: 120px;
	width: 120px;
	text-indent: -999em;
		/* 
		<< TRUC >> pour placer le texte à gauche HORS de la vue 
		tout en permettant de laisser ce texte physiquement présent dans la structure html
		*/
	-moz-transition: all 0.3s ease 0s;
		/*
		Initialise la transition :
		- all : pour toutes les propriétés
		- 0.3s : durée de la transition
		- ease : type d'accélération
		- 0s : commence la transition immédiatement		
		*/
}
header #marque:hover {
	opacity: 0.7;
		/* Rend la marque plus transparente lors du survol de la souris */
}

/* ---------- NAV ---------- */

nav { 
	/* Choix de position en absolu, donc hors flux, mais on aurait aussi pu le faire dans le flux */
	position: absolute;
	top: 158px;
	width: 160px;
	/*background: orange;*/
}
nav li {
	margin-bottom: 18px;
	/*background: beige;*/
}
nav li:last-child { 
	/* :last-child : pseudo élément qui permet de supprimer la marge bottom pour le dernier bouton */
	margin-bottom: 0;
}
nav a {
	display: block;
	height: 28px;
	padding: 4px 0pt 0pt 44px; /* décale de 44px vers la droite pour laisser la place à l'icône */
	font-style: italic;
	color: rgb(34, 34, 34); /* gris */
	-moz-transition: all 0.2s ease 0s; /* Anime toutes les propriétés (all) pendant 0.2 sec avec le mouvement ease et commence directement l'animation sans attendre (0s) */
}
nav a:hover {
	color: rgb(236, 102, 53); /* rouge */
}
nav li a {
	background-position: 0 65%; /* Positionne vers le bas de 65% de la hauteur totale de chaque bloc a */
	background-repeat: no-repeat;
}
nav li a:hover {
	background-position: 5px 65%; /* << TRUC POUR ANIMER UN OBJET LORS DU HOVER >> Décale vers la droite de 5px */
}
li#t-tastemakers a {
	background-image: url('../images/nav-tastemakers.png');
}
li#t-blog a {
	background-image: url('../images/nav-blog.png');
}
li#t-vendors a {
	background-image: url('../images/nav-alist.png');
}
li#t-contribute a {
	background-image: url('../images/nav-contribute.png');
}
li#t-about a {
	background-image: url('../images/nav-about.png');
}

/* ---------- AFFICHE ---------- */

#affiche {
	position: relative; /* Butoit pour les enfants "slides" qui sont en position abolute */
	width: 100%;
	height: 510px;
}
#affiche #slides {
	position: absolute;
	width: 712px;
	height: 446px;
	overflow: hidden; /* Empêche l'affichage des boutons de scrolling si l'image est trop grande */
}
#affiche h1 {
	position: absolute;
	top: 285px;
	right: 0; /* right: 184px;*/		
	padding: 10px 24px 15px;
	color: rgb(34, 34, 34);;
	background: rgb(2255,255,255);
	font-style: italic;
	font-size: 1.5em;
}
#affiche h2 {
	position: absolute;
	top: 334px;
	right: 0; /* right: 184px;*/	
	padding: 8px 24px 12px;
	color: rgb(233, 233, 233);
	background: rgb(17, 17, 17);	
	font-weight: normal;
	font-size: 1em;	
}
#affiche a h1, #affiche section a h2 {
	-moz-transition: opacity 0.2s ease 0s;
		/* Initialise la transition seulement sur la propriété opacité */
}
#affiche a:hover h1, #affiche section a:hover h2 {
	opacity: 0.8;
		/* Exécute la transition seulement sur la propriété opacité */
}
#affiche .credit {
	position: absolute;
	top: 417px;
	right: 10px;
	padding: 4px 8px 6px;	
	color: rgb(85, 85, 85);
	background: none repeat scroll 0% 0% rgba(255, 255, 255, 0.5);
	text-shadow: 0px 1px 0px rgba(255, 255, 255, 0.5);
		/* 
		0px : position horizontale
		1px : position verticale
		0px : largeur du flou
		rgba(255, 255, 255, 0.5) : couleur blanche avec 50% de transparence
		*/		
	border-radius: 3px 3px 3px 3px;
	font-size: 0.5em;
}

/* ---------- AFFICHE NAV ---------- */

#affiche #nav {
	position: absolute;
	top: 445px;
	width: 712px; /* Obligatoire quand on utilise position: absolute */
	background: rgb(239, 248, 247); /* Fond de couleur pour la barre nav */
}
#affiche #nav li {
	float: left;
	text-align: center;
}
#affiche #nav a {
	display: block;
	width: 177px;
	height: 25px;
	padding: 8px 0pt 2px;
	color: rgb(96, 190, 174);
	border-right: 1px solid rgb(211, 237, 233); /* Fin filet à droite du bouton */
	text-shadow: 0px 1px 0px rgb(255, 255, 255); /* Légère ombre du texte de 1px vers le bas */
	box-shadow: 1px 0px 0px rgb(250, 253, 252); /* Légère ombre du bouton de 1px vers la droite */
}
#affiche #nav li:last-child a { /* Pour le dernier bouton, supprime le relief */
	border-right: medium none;
	box-shadow: none;
}
#affiche #nav li.activeSlide a { /* Pour le bouton activé */
	color: rgb(52, 172, 152);
	background: rgb(217, 239, 236);
	text-shadow: 0pt 1px 0pt rgb(250, 253, 252);  /* Légère ombre du texte de 1px vers le bas avec une autre couleur */
}
#affiche #nav a:hover {
	color: rgb(236, 102, 53);
}
#affiche #nav h3 {
	font-size: 0.875em; /* Adaptatif */
}
#affiche #nav p { /* Cache le texte secondaire pour cette taille d'écran standard */
	display: none;
}

/* ---------- MESSAGERIE ---------- */

#messagerie {
	overflow: hidden;
	clear: both; /* Annule les floats des boutons de nav précédents */
	margin-bottom: 29px;
	border-top: 1px dashed rgb(229, 229, 229);
	border-bottom: 1px dashed rgb(229, 229, 229);
	background: url('../images/icon-mailinglist-32.png') no-repeat scroll 18px 7px transparent;
}
#messagerie p {
	float: left;
	width: 49%;
	padding: 7px 24px 0pt 66px;
	font-size: 0.75em;
	font-style: italic;
}
#messagerie form {
	float: left;
	margin-top: 11px;
}
.hide {
	display: none;
}
#messagerie input#email {
	width: 160px;
}
#messagerie fieldset {
	display: inline;
}
#messagerie .submit {
	margin-left: 10px;
}

/* ---------- ELEMENTS DE FORMULAIRE ---------- */

input, button, select, textarea {
	margin: 0pt;
	vertical-align: middle; /* Déplace cet objet au centre de la ligne "du sol" */
	/* Pour rappel, par défaut, l'objet est placé sur la ligne du sol */
}
button, input[type="reset"], input[type="submit"], input[type="button"] { /* Look de tous les boutons */
	border-radius: 4px 4px 4px 4px;
	background: -moz-linear-gradient(center top, rgb(255, 255, 255) 0%, rgb(221, 221, 221) 100%) repeat scroll 0% 0% transparent;
	/* Commence le dégradé au point center top et va vers le bas, avec la couleur noir à 0% (transparent) jusqu'à la couleur grise à 100% (opaque) ... */
	/* https://developer.mozilla.org/fr/docs/CSS/linear-gradient */
	border-width: 1px;
	border-style: solid;
	-moz-border-top-colors: none;
	-moz-border-right-colors: none;
	-moz-border-bottom-colors: none;
	-moz-border-left-colors: none;
	-moz-border-image: none;
	border-color: rgb(221, 221, 221) rgb(187, 187, 187) rgb(153, 153, 153);
	cursor: pointer;
	color: rgb(51, 51, 51);
	font: bold 12px/1.3 'Helvetica Neue', Arial, 'Liberation Sans', FreeSans, sans-serif;
	outline: 0pt none;
	overflow: visible;
	padding: 3px 10px;
	text-shadow: 0pt 1px 1px rgb(255, 255, 255);
	width: auto;
}
textarea, select, input[type="date"], input[type="datetime"], input[type="datetime-local"], input[type="email"], input[type="month"], input[type="number"], input[type="password"], input[type="search"], input[type="tel"], input[type="text"], input[type="time"], input[type="url"], input[type="week"] {
	border-radius: 0pt 0pt 0pt 0pt;
	-moz-box-sizing: border-box;
	background-clip: padding-box;
	background-color: rgb(255, 255, 255);
	border-width: 1px;
	border-style: solid;
	-moz-border-top-colors: none;
	-moz-border-right-colors: none;
	-moz-border-bottom-colors: none;
	-moz-border-left-colors: none;
	-moz-border-image: none;
	border-color: rgb(132, 132, 132) rgb(193, 193, 193) rgb(225, 225, 225);
	color: rgb(0, 0, 0);
	outline: 0pt none;
	padding: 2px 3px;
	font-size: 13px;
	font-family: Arial, 'Liberation Sans', FreeSans, sans-serif;
	height: 1.8em;
}
:invalid {
	box-shadow: none;
}
button:focus, button:active, input:focus, input:active, select:focus, select:active, textarea:focus, textarea:active {
	box-shadow: 0pt 0pt 7px rgb(79, 183, 166);
	z-index: 1;
}

/* ---------- RECENT ---------- */

#recent {
	margin-bottom: 18px;
}
#recent article {
	float: left; /* Fait aligner les articles horizontalement */
	width: 160px;
	margin: 0pt 24px 25px 0pt;
}
#recent article img {
	width: 139px;
}
#recent article img.border { /* Un filet très fin avec un padding de 9px autour de l'image */
	padding: 9px;
	background: none repeat scroll 0% 0% rgb(255, 255, 255);
	border: 1px solid rgb(229, 229, 229);
	box-shadow: 1px 1px 3px rgb(245, 245, 245);
}
#contenu article a img { /* Prépare l'animation */
	-moz-transition: opacity 0.2s ease 0s;
}
#contenu article a:hover img {
	opacity: 0.75; /* Lors du hover sur une image, rend-la un peu plus claire */
}
#recent article:nth-child(4) { /* Pour le dernier article, annule le margin-right qui était 24px défini pour tous les articles précédemment */
	margin-right: 0pt;
}
#recent article h1 {
	margin: 10px 0pt;
	line-height: 1.3em;
}
#recent article p {
	font-size: 0.875em; /* Adaptatif */
	line-height: 1.45em; /* Adaptatif */
}
#recent article p.meta {
	margin-top: 10px;
	color: rgb(170, 170, 170);
}

/* ---------- ASIDE ---------- */

.button {
	display: block;
	padding: 10px 20px;
	background: none repeat scroll 0% 0% rgb(255, 255, 255);
	border-radius: 5px 5px 5px 5px;
	border: 1px solid rgb(229, 229, 229);
	box-shadow: 1px 1px 2px rgb(245, 245, 245);
	-moz-transition: all 0.2s ease 0s;
}
.button:hover {
	background-color: rgb(239, 248, 247);
	border-color: rgb(211, 237, 233);
	color: rgb(236, 102, 53);
}

aside[role="social"] {
	position: absolute;
	top: 452px;
	width: 160px;
}
aside[role="social"] section {
	margin-bottom: 32px;
	padding-right: 20px;
}
aside[role="social"] section h1 {
	margin-bottom: 9px;
	padding-bottom: 5px;
	text-transform: uppercase;
	font-size: 0.75em;
	border-bottom: 1px dashed rgb(229, 229, 229);
}
aside[role="social"] section p {
	margin-bottom: 15px;
	line-height: 1.75em;
	font-size: 0.6825em;
	font-style: italic;
}
aside[role="social"] a.button {
	width: 110px;
	height: 24px;
	padding: 4px 0pt 0pt 28px;
	background: none no-repeat scroll 6px 6px transparent;
}
aside .twitter a.button {
	background-image: url('../images/icon-twitter-16.png');
}
aside .facebook a.button {
	background-image: url('../images/icon-facebook-16.png');
}
aside[role="social"] a.button:hover {
	background-color: rgb(239, 248, 247);
}

/* ---------- FOOTER ---------- */

footer[role="siteinfo"] {
	clear: both;
	position: relative; /* Sert de butoir pour ses enfants positionnés en absolu */
	min-height: 70px;
	padding-top: 20px;
	border-top: 2px solid rgb(229, 229, 229); /* filet supérieur de séparation avec le contenu */
	color: rgb(170, 170, 170);
}
footer[role="siteinfo"] p {
	line-height: 1.5em; /* Adaptatif */
	font-size: 0.75em; /* Adaptatif */
}
footer[role="siteinfo"] .social {
	position: absolute;
	top: 20px;
	right: 0pt;
}
footer .social li {
	float: left;
	margin-left: 5px;
}
footer .social li a {
	display: block;
	width: 32px;
	height: 32px;
	text-indent: -999em;
	opacity: 0.4;
	-moz-transition: opacity 0.3s ease 0s;
}
footer .social li a:hover {
	opacity: 1;
}
footer .twitter a {
	background: url('../images/icon-twitter.png') no-repeat scroll 50% 1px transparent;
}
footer .facebook a {
	background: url('../images/icon-facebook.png') no-repeat scroll 50% 0pt transparent;
}
footer .rss a {
	background: url('../images/icon-rss.png') no-repeat scroll 50% 0pt transparent;
}


