// Configuration générale bouton
.button {
	display: inline-block;
	border: 0;
	box-shadow: none;
	background: none;
	text-decoration: none;
	padding: 6px 14px;
	line-height: 1.4;
	vertical-align: middle;
	height: auto;
	border-radius: 0;
	@include transition;
	position: relative;
	border-width: 3px;
	border-style: solid;
	font-size: 12px;
	text-transform: uppercase;
	font-weight: 700;

	background: $color__text-main;
	border-color: $color__text-main;
	color: #fff;

	&:focus, &:visited {
		color: #fff;
	}
	&:hover {
		color: #fff;
		box-shadow: inset 0 -2.6em rgba(255,255,255,0.25);
		cursor: pointer;
	}
	&:focus {
		outline: none;
	}
}

// Bouton plein
.button {
	&.button-primary {
		background: $color__primary;
		border-color: $color__primary;
		color: $color__primary-text;
	}
	&.button-light {
		background: #fff;
		border-color: #fff;
		color: $color__text-main;
		&:hover {
			box-shadow: inset 0 -2.6em rgba(0,0,0,0.1);
			color: $color__text-main;
		}
	}
	&.button-dark {
		background: $color__dark;
		border-color: $color__dark;
	}
}

// Bouton bordered
.button.bordered {
	background: none;
	/* Par defaut */
	border-color: $color__primary;
	color: $color__primary;

	&.button-primary {
		border-color: $color__primary;
		color: $color__primary;
		&:hover {
			box-shadow: inset 0 -2.6em $color__primary;
			color: $color__primary-text;
		}
	}
	&.button-light {
		border-color: #fff;
		color: #fff;
		&:hover {
			box-shadow: inset 0 -2.6em #fff;
			color: $color__text-main;
		}
	}
	&.button-dark {
		border-color: $color__dark;
		color: $color__dark;
		&:hover {
			box-shadow: inset 0 -2.6em $color__dark;
		}
	}

	&:hover {
		box-shadow: inset 0 -2.6em $color__primary;
		color: #fff;
	}
}

// Icon
.button {
	.button-icon, span {
		position: relative;
	}
	.button-icon ~ span {
		margin-left: 10px;
	}
	span ~ .button-icon {
		margin-left: 10px;
	}
}

// Strong
.button.button-strong {
	span {
		font-weight: 800;
	}
}

// Uppercase
.button.button-uppercase {
	span {
		text-transform: uppercase;
		font-size: 14px;
	}
}

// Squared
.button[class*="button-square-"] {
	text-align: center;
	overflow: hidden;
	padding: 0;
}
.button.button-square-30 {
	width: 30px;
	height: 30px;
	line-height: 24px; // ne pas oublier les bordures : 6px
	.button-icon {
		font-size: 12px;
	}
}
.button.button-square-40 {
	width: 40px;
	height: 40px;
	line-height: 34px; // ne pas oublier les bordures : 6px
}
.button.button-square-50 {
	width: 50px;
	height: 50px;
	line-height: 44px; // ne pas oublier les bordures : 6px
}
.button.button-square-60 {
	width: 60px;
	height: 60px;
	line-height: 54px; // ne pas oublier les bordures : 6px
}

// Floats
.button {
	&.button-float-left {
		float: left;
	}
	&.button-float-right {
		float: right;
	}
}

// margin
.button.button-margin {
	margin: 1em 0;
}

// radius
.button {
	&.button-radius-1 {
		border-radius: 2px;
	}
	&.button-radius-2 {
		border-radius: 4px;
	}
	&.button-radius-3 {
		border-radius: 6px;
	}
	&.button-rounded {
		border-radius: 50%;
	}
}

// Taille
.button.button-size-small {
	font-size: 14px;
	&.button-uppercase span {
		font-size: 12px;
	}
}
.button.button-size-large {
	font-size: 18px;
	&.button-uppercase span {
		font-size: 16px;
	}
}
