/*	GLOBAL
#########################################################################*/
* {
	margin: 0;
	padding: 0;
}

a {
	text-decoration: none;
	color: #676767;
	cursor: pointer;
}

body {
	font: 14px "Molengo", "Book Antiqua", Palatino, serif;
	line-height: 1.7;
	color: #676767;
	background-color: #f5f5f5;
}


/*	HEADER
#########################################################################*/
#header {
	position: fixed;
	z-index: 1;
	background-color: #fff;
	-webkit-box-shadow: 0px -30px 45px 25px rgba(0,0,0,0.5);
		-moz-box-shadow: 0px -30px 45px 25px rgba(0,0,0,0.5);
			box-shadow: 0px -30px 45px 25px rgba(0,0,0,0.5);
}

#header, #content, #filters, #title, .line {
	width: 100%;
}

/*	Filtres et admin
#########################################################################*/
#filters {
	display: -webkit-box;
		display: -ms-flexbox;
			display: -webkit-flex;
				display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 5px 0;
	border-bottom: 1px solid #eaeaea;
	font-size: .9em;
}

.filtre {
	margin-left: 20px;
}

.filtre li:not(.icon) a, .admin a {
	padding: 5px 15px;
}

.filtre li.icon a {
	padding-left: 15px;
}

.filtre ul, .admin a {
	display: inline-block;
	background-color: #f4f4f4;
	border-radius: 5px;
}

.filtre ul:hover, .admin a:hover {
	background-color: #676767;
	color: #fff;
}

.filtre ul:hover a {
	color: #fff;
}

.filtre a {
	display: block;
}

.filtre a:hover {
	opacity: .5;
}

.filtre li {
	display: none;
}

.filtre li.icon, .filtre li.selected {
	display: inline-block;
}

.filtre li:not(.selected) {
	opacity: .5;
}

.filtre li.icon {
	opacity: 1;
}

.responsive li {
	display: inline-block;
}

.responsive li.icon {
	display: none;
}

.filtre li.icon a:before {
	font-family: FontAwesome;
	content: '\f1de';
}

.admin a, .total {
	text-align: right;
	margin-right: 20px;
}

.admin a:before {
	font-family: FontAwesome;
	content: '\f023';
	margin-right: 10px;
}

.admin a:hover:before {
	content: '\f09c';
}


/*	Titres du tableau
#########################################################################*/
#title {
	font: 0.9em "Raleway", "Book Antiqua", Palatino, serif;
	font-weight: bold;
	padding: 20px 0;
}

#title a {
	color: #373737;
}

#title a:hover {
	color: #333;
}

#title a:before, .button {
	font-family: FontAwesome;
	margin-right: 10px;
}

#title a.desc:before, #title a.asc:hover:before {
	content: '\f175';
}

#title a.asc:before, #title a.desc:hover:before {
	content: '\f176';
}


#title ul, .line ul {
	display: -webkit-box;
		display: -ms-flexbox;
			display: -webkit-flex;
				display: flex;
	justify-content: space-around;
	align-items: center;
	list-style-type:none
}

#title li:nth-child(1), .line li:nth-child(1) { /*  Nom du vin */
	width: 20%;
}

/*	LISTE DES VINS
#########################################################################*/
#content {
	padding: 97px 0 48px 0;
}

.line, .line li:nth-child(8) span {
	-webkit-transition: all ease 0.3s;
		transition: all ease 0.3s;
}

.line li {
	padding: 7px;
}

.line:nth-child(even) {
	background-color: #fff;
}

.line:nth-child(odd) {
	background-color: #f9f9f9;
}

.rouge { /*  Couleur du vin */
	-webkit-box-shadow: inset 5px 0px 0px 0px #c94b4b;
		-moz-box-shadow: inset 5px 0px 0px 0px #c94b4b;
			box-shadow: inset 5px 0px 0px 0px #c94b4b;
}

.rouge:hover, .rouge.clicked {
	background-color: #c94b4b;
}

.blanc, .mousseux {
	-webkit-box-shadow: inset 5px 0px 0px 0px #e5e5c1;
		-moz-box-shadow: inset 5px 0px 0px 0px #e5e5c1;
			box-shadow: inset 5px 0px 0px 0px #e5e5c1;
}

.blanc:hover, .blanc.clicked, .mousseux:hover, .mousseux.clicked {
	background-color: #e5e5c1;
}

.rose {
	-webkit-box-shadow: inset 5px 0px 0px 0px #e8cbc0;
		-moz-box-shadow: inset 5px 0px 0px 0px #e8cbc0;
			box-shadow: inset 5px 0px 0px 0px #e8cbc0;
}

.rose:hover, .rose.clicked {
	background-color: #e8cbc0;
}

.line:hover, .clicked ul {
	color: #fff;
}


#title li:nth-child(2), .line li:nth-child(2) { /*  Cépage */
	width: 18%;
}

#title li:nth-child(3), .line li:nth-child(3) { /*  Année */
	width: 5%;
}

#title li:nth-child(4), .line li:nth-child(4) { /* Propriétaire */
	width: 13%;
}

#title li:nth-child(5), .line li:nth-child(5) { /*  Origine */
	width: 12%;
}

#title li:nth-child(6), .line li:nth-child(6) { /*  Volume */
	width: 5%;
	text-align: right;
}

#title li:nth-child(7), .line li:nth-child(7) { /*  Prix */
	width: 5%;
	text-align: right;
}

#title li:nth-child(8), .line li:nth-child(8) { /*  Stock */
	width: 6%;
	text-align: right;
}

.contient_commentaire:after {
	font-family: FontAwesome;
	margin-left: 5px;
	content: '\f05a';
	opacity: .5;
}

.line li:nth-child(8) span {
	background-color: #000;
	color: #fff;
	padding: 3px 8px;
	border-radius: 5px;
	opacity: .2;
}

.line:hover li:nth-child(8) span, .clicked ul li:nth-child(8) span {
	background-color: #fff;
	color: #676767;
	opacity: .7;
}

.clicked {
	-webkit-box-shadow: inset 0px -20px 50px -30px rgba(0,0,0,0.5);
		-moz-box-shadow: inset 0px -20px 50px -30px rgba(0,0,0,0.5);
			box-shadow: inset 0px -20px 50px -30px rgba(0,0,0,0.5);
}

.line-actions {
	display: -webkit-box;
		display: -ms-flexbox;
			display: -webkit-flex;
				display: flex;
	justify-content: center;
	align-items: center;
	font-size: .9em;
}

.line-actions a {
	background-color: #f9f9f9;
	padding: 5px 20px;
	margin: 10px;
	border-radius: 5px;
	text-align: center;
	opacity: .6;
}

.line-actions a:hover {
	opacity: .9;
}

.line-actions a.move:before {
	content: '\f074';
}

.line-actions a.move:hover:before {
	font-family: "Molengo", "Book Antiqua", Palatino, serif;;
	content: 'Déplacer';
}

.line-actions a.edit:before {
	content: '\f040';
}

.line-actions a.edit:hover:before {
	font-family: "Molengo", "Book Antiqua", Palatino, serif;;
	content: 'Modifier';
}

.remarque {
	width: 100%;
	font-size: .9em;
	text-align: center;
	color: #fff;
	padding-bottom: 10px;
	display: none;
}

.clicked .remarque {
	display: block;
}



/*	FOOTER
#########################################################################*/
#footer {
    position: fixed;
    bottom: 0;
    width: 100%;
	display: -webkit-box;
		display: -ms-flexbox;
			display: -webkit-flex;
				display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: .9em;
	padding: 14px 0;
	background-color: #fff;
	-webkit-box-shadow: 0px 30px 45px 25px rgba(0,0,0,0.4);
		-moz-box-shadow: 0px 30px 45px 25px rgba(0,0,0,0.4);
			box-shadow: 0px 30px 45px 25px rgba(0,0,0,0.4);
}

.compteur {
	margin-left: 20px;
}
