.pop-overlay
{
	visibility: hidden;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	
	z-index: 1000;
	opacity: 0;
	
	background: rgba(143, 27, 15, 0.8);
	
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;
}


.popup
{
	position: fixed;
	top: 50%;
	left: 50%;
	width: 1000px;
	height: auto;
	
	visibility: hidden;
	z-index: 2000;
	
	-webkit-backface-visibility: hidden;
	-moz-backface-visibility: hidden;
	backface-visibility: hidden;
	
	-webkit-transform: translateX(-50%) translateY(-50%);
	-moz-transform: translateX(-50%) translateY(-50%);
	-ms-transform: translateX(-50%) translateY(-50%);
	transform: translateX(-50%) translateY(-50%);
}

.pop-show
{
	visibility: visible;
}


.popup > .pop-content
{
	position: relative;
	margin: 0 auto;
	background: #fff;
}


.popup > .pop-content > .header
{
	height: 50px;
	line-height: 50px;
	padding-left: 20px;
	padding-right: 20px;
	
	font-size: 20px;
	vertical-align: middle;
	
	background: #fff;
	border-top: 1px solid #eee;
	border-bottom: 1px solid #eee;
}

.popup > .pop-content > .content
{
	padding: 20px;
}





/* Effets d'ouverture
–––––––––––––––––––––––––––––––––––––––––––––––––– */


/* Effet overlay
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.pop-show ~ .body-container > .pop-overlay
{
	opacity: 1;
	visibility: visible;
}





/* Effet 1 - Fade in and scale up
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.popup.pop-effect-1 > .pop-content
{
	-webkit-transform: scale(0.7);
	-moz-transform: scale(0.7);
	-ms-transform: scale(0.7);
	transform: scale(0.7);
	opacity: 0;
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;
}

.popup.pop-show.pop-effect-1 > .pop-content
{
	-webkit-transform: scale(1);
	-moz-transform: scale(1);
	-ms-transform: scale(1);
	transform: scale(1);
	opacity: 1;
}





/* Effet 2 - Fall
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.popup.pop-effect-2
{
	-webkit-perspective: 1300px;
	-moz-perspective: 1300px;
	perspective: 1300px;
}

.popup.pop-effect-2 > .pop-content
{
	-webkit-transform-style: preserve-3d;
	-moz-transform-style: preserve-3d;
	transform-style: preserve-3d;
	-webkit-transform: translateZ(600px) rotateX(20deg); 
	-moz-transform: translateZ(600px) rotateX(20deg); 
	-ms-transform: translateZ(600px) rotateX(20deg); 
	transform: translateZ(600px) rotateX(20deg); 
	opacity: 0;
}

.pop-show.pop-effect-2 > .pop-content
{
	-webkit-transition: all 0.3s ease-in;
	-moz-transition: all 0.3s ease-in;
	transition: all 0.3s ease-in;
	-webkit-transform: translateZ(0px) rotateX(0deg);
	-moz-transform: translateZ(0px) rotateX(0deg);
	-ms-transform: translateZ(0px) rotateX(0deg);
	transform: translateZ(0px) rotateX(0deg); 
	opacity: 1;
}





/* Effet 3 - Newspaper
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.popup.pop-effect-3 > .pop-content
{
	-webkit-transform: scale(0) rotate(720deg);
	-moz-transform: scale(0) rotate(720deg);
	-ms-transform: scale(0) rotate(720deg);
	transform: scale(0) rotate(720deg);
	opacity: 0;
	
	-webkit-transition: all 0.5s;
	-moz-transition: all 0.5s;
	transition: all 0.5s;
}

.pop-show.pop-effect-3 > .pop-content
{
	-webkit-transform: scale(1) rotate(0deg);
	-moz-transform: scale(1) rotate(0deg);
	-ms-transform: scale(1) rotate(0deg);
	transform: scale(1) rotate(0deg);
	opacity: 1;
}





/* Effet 4 - Slide and stick to top
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.popup.pop-effect-4
{
	top: 0;
	-webkit-transform: translateX(-50%);
	-moz-transform: translateX(-50%);
	-ms-transform: translateX(-50%);
	transform: translateX(-50%);
}



.popup.pop-effect-4 > .pop-content
{
	-webkit-transform: translateY(-200%);
	-moz-transform: translateY(-200%);
	-ms-transform: translateY(-200%);
	transform: translateY(-200%);
	-webkit-transition: all .3s;
	-moz-transition: all .3s;
	transition: all .3s;
	opacity: 0;
}

.pop-show.pop-effect-4 > .pop-content
{
	-webkit-transform: translateY(0%);
	-moz-transform: translateY(0%);
	-ms-transform: translateY(0%);
	transform: translateY(0%);
	opacity: 1;
}





/* Effet 4-2 - Slide and stick to bottom
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.popup.pop-effect-4-2
{
	top: 100%;
	
	-webkit-transform: translateX(-50%) translateY(-100%);
	-moz-transform: translateX(-50%) translateY(-100%);
	-ms-transform: translateX(-50%) translateY(-100%);
	transform: translateX(-50%) translateY(-100%);
}



.popup.pop-effect-4-2 > .pop-content
{
	-webkit-transform: translateY(200%);
	-moz-transform: translateY(200%);
	-ms-transform: translateY(200%);
	transform: translateY(200%);
	-webkit-transition: all .3s;
	-moz-transition: all .3s;
	transition: all .3s;
	opacity: 0;
}

.pop-show.pop-effect-4-2 > .pop-content
{
	-webkit-transform: translateY(0%);
	-moz-transform: translateY(0%);
	-ms-transform: translateY(0%);
	transform: translateY(0%);
	opacity: 1;
}





/* Effet 5 - Blur
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.pop-show.pop-effect-5 ~ .body-container > .pop-overlay
{
	background: rgba(255, 255, 255, 0.5);
}


.body-container.pop-effect-5
{
	-webkit-filter: blur(3px);
	-moz-filter: blur(3px);
	filter: blur(3px);
}

.popup.pop-effect-5 > .pop-content
{
	-webkit-transform: translateY(-5%);
	-moz-transform: translateY(-5%);
	-ms-transform: translateY(-5%);
	transform: translateY(-5%);
	opacity: 0;
}

.pop-show.pop-effect-5 ~ .body-container,
.pop-effect-5 > .pop-content
{
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;
}

.pop-show.pop-effect-5 > .pop-content
{
	-webkit-transform: translateY(0);
	-moz-transform: translateY(0);
	-ms-transform: translateY(0);
	transform: translateY(0);
	opacity: 1;
}





/* Effet 6 - 3D slit
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.popup.pop-effect-6
{
	-webkit-perspective: 1300px;
	-moz-perspective: 1300px;
	perspective: 1300px;
}

.popup.pop-effect-6 > .pop-content
{
	-webkit-transform-style: preserve-3d;
	-moz-transform-style: preserve-3d;
	transform-style: preserve-3d;
	-webkit-transform: translateZ(-3000px) rotateY(90deg);
	-moz-transform: translateZ(-3000px) rotateY(90deg);
	-ms-transform: translateZ(-3000px) rotateY(90deg);
	transform: translateZ(-3000px) rotateY(90deg);
	opacity: 0;
}

.pop-show.pop-effect-6 > .pop-content
{
	-webkit-animation: slit .7s forwards ease-out;
	-moz-animation: slit .7s forwards ease-out;
	animation: slit .7s forwards ease-out;
}

@-webkit-keyframes slit {
	50% { -webkit-transform: translateZ(-250px) rotateY(89deg); opacity: .5; -webkit-animation-timing-function: ease-out;}
	100% { -webkit-transform: translateZ(0) rotateY(0deg); opacity: 1; }
}

@-moz-keyframes slit {
	50% { -moz-transform: translateZ(-250px) rotateY(89deg); opacity: .5; -moz-animation-timing-function: ease-out;}
	100% { -moz-transform: translateZ(0) rotateY(0deg); opacity: 1; }
}

@keyframes slit {
	50% { transform: translateZ(-250px) rotateY(89deg); opacity: 1; animation-timing-function: ease-in;}
	100% { transform: translateZ(0) rotateY(0deg); opacity: 1; }
}





/* Effet 7 - Just me
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.pop-show.pop-effect-7 ~ .body-container > .pop-overlay
{
	background: #fff;
}


.popup.popup > .pop-content > .header
{
	border: none;
}


.popup.pop-effect-7 > .pop-content
{
	-webkit-transform: scale(0.8);
	-moz-transform: scale(0.8);
	-ms-transform: scale(0.8);
	transform: scale(0.8);
	opacity: 0;
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;
}

.pop-show.pop-effect-7 > .pop-content
{
	-webkit-transform: scale(1);
	-moz-transform: scale(1);
	-ms-transform: scale(1);
	transform: scale(1);
	opacity: 1;
}








/* Responsive
–––––––––––––––––––––––––––––––––––––––––––––––––– */

/* Plus petit qu'un bureau
–––––––––––––––––––––––––––––––––––––––––––––––––– */
@media (max-width: 1000px)
{
	.popup
	{
		max-width: none;
		width: calc(100% + 20px);
		left: calc(50% - 10px);
	}
	
	
	
	.popup > .pop-content > .header,
	.popup > .pop-content > .content
	{
		padding-left: 40px;
		padding-right: 40px;
	}
}
