/* @override 
	https://www.compagnie-ecurie.fr/styles/new_affiches.css
	http://compagnie-ecurie.image.ac/styles/new_affiches.css
	http://compagnie-ecurie.image.ac/assets/css/new_affiches.css
	https://www.compagnie-ecurie.fr/assets/css/new_affiches.css */


#affiches-2020 {}
#affiches-2019 {
    transform: skewY(-5deg) scale(.7);
	width: 980px;
}
.fil {
    border-top: 2px solid black;
    position: absolute;
    top: 21px;
    left: -60px;
    right: -10px;
    border-radius: 100%;
    height: 65px;
	z-index: 10;
}
.affiche {
	/* Les affiches en 3D avec .facette */
	
	transform-origin: 0px 0px 0px;	
	
	position: absolute;
	transform-style: preserve-3d;
	perspective: 600px;
	transition: perspective 1s, transform 1s; 
	background-position: 1000px;
	background-repeat: no-repeat;
	
    width: 300px;
    height: 437px;
	
	z-index: 1;
	
	cursor: pointer;
}

/* Pinces à linges avec pseudo-elements */

.affiche::before,
.affiche::after {
    content: "";
    width: 5px;
    height: 15px;
    display: block;
    position: absolute;
    top: -13px;
    z-index: 100;
    background-color: black;
}
.affiche::before {
    left: 27px;
    transform: rotate(-10deg);
}
.affiche::after {
    right: -12px;
    transform: rotate(10deg);
}
/* Alignement horizontale des affiches */

/* :nth-child(1) c'est le .fil */

.affiches-container .affiche:nth-child(2) {
	left: 0;
    top: 45px;
    transform: skewY(-3deg) 
			   matrix3d(1, 0, 0, 0, 
                    0, 1, 0, 0, 
                    0, 0, 1, 0, 
                    0, 0, 0, 1);
}
.affiches-container .affiche:nth-child(3) {
    top: 30px;
	left: 310px;
	transform: skewY(1deg) 
			   matrix3d(1, 0, 0, 0, 
                    0, 1, 0, 0, 
                    0, 0, 1, 0, 
                    0, 0, 0, 1);
}
.affiches-container .affiche:nth-child(4) {
	left: 610px;
    top: 25px;
    transform: skewY(3deg) 
			   matrix3d(1, 0, 0, 0, 
                    0, 1, 0, 0, 
                    0, 0, 1, 0, 
                    0, 0, 0, 1);
}


/* Rendu 3D */
.affiche:hover {
    perspective: 1200px;
	/*
    transform: 
			   matrix3d(1, 0, 0, 0.00008, 
                    0.1, 1.3, 1.8, 0.0007, 
                    0, 0, 1, 0, 
                    0, 0, 0, 1) !important;	
		*/			
}
.facette {
	background-image: inherit;
	background-repeat: no-repeat;
    width: 10%;
    height: 100%;
    background-size: 300px auto;
    left: 50%;
    position: absolute;
/*    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.3));*/
}
/* :nth-child(1) c'est l'appareil photo dans son span */
.affiche span {
	text-align: center;
	display: block;
	background-color: rgba(0, 0, 0, 0.69);
	width: 110px;
	height: 80px;
	padding-top: 16px;
	padding-bottom: 10px;
	font-size: 12px;
	line-height: 13px;
	border-radius: 2px;
	margin-top: 81px;
	margin-left: calc(50% - 55px);
	
	position: relative;
    transform: translateZ(100px) rotateY(0);
	
	opacity: 0;
	transition: opacity .9s ease-in-out 0s;
}
.affiche span i {
	display: block;
	padding-bottom: 4px;
	font-size: 30px;
}
.affiche:hover span {
	opacity: 1;
	transition: opacity .3s ease-in-out 0s;
}
.facette:nth-child(2) {
    transform: translateZ(300px) rotateY(calc(5deg * 5)) translateZ(-300px);
}

.facette:nth-child(3) {
    transform: translateZ(300px) rotateY(calc(5deg * 4)) translateZ(-300px);
    background-position: 10% 0px;
}

.facette:nth-child(4) {
    transform: translateZ(300px) rotateY(calc(5deg * 3)) translateZ(-300px);
    background-position: 20% 0px;
}

.facette:nth-child(5) {
    transform: translateZ(300px) rotateY(calc(5deg * 2)) translateZ(-300px);
    background-position: 30% 0px;
}

.facette:nth-child(6) {
    transform: translateZ(300px) rotateY(calc(5deg)) translateZ(-300px);
    background-position: 40% 0px;
}

.facette:nth-child(7) {
    background-position: 50% 0px;
}

.facette:nth-child(8) {
    transform: translateZ(300px) rotateY(calc(-5deg)) translateZ(-300px);
    background-position: 60% 0px;
}

.facette:nth-child(9) {
    transform: translateZ(300px) rotateY(calc(-5deg * 2)) translateZ(-300px);
    background-position: 70% 0px;
}

.facette:nth-child(9) {
    transform: translateZ(300px) rotateY(calc(-5deg * 2)) translateZ(-300px);
    background-position: 70% 0px;
}

.facette:nth-child(10) {
    transform: translateZ(300px) rotateY(calc(-5deg * 3)) translateZ(-300px);
    background-position: 80% 0px;
}

.facette:nth-child(11) {
    transform: translateZ(300px) rotateY(calc(-5deg * 4)) translateZ(-300px);
    background-position: 90% 0px;
}

.facette:nth-child(12) {
    transform: translateZ(300px) rotateY(calc(-5deg * 5)) translateZ(-300px);
    background-position: 100% 0px;
}
/* Fin du rendu 3D */


/* Malheuresment, il y a des excepétions */
/* Ici une affiche à l'italienne */

#pudding-or-not-pudding.affiche {
	/* Les affiches en 3D avec .facette */
	
	transform: scale(1.2) skewY(5deg);
}