/* PHOTO PLEIN ÉCRAN */
:not(body).fullScreen {
	position: fixed;
	top: 0;
	width: 100%;
	height: 100vh;
	overflow: auto;
	text-align: center;
	z-index: 50;
	/* set these inline to JS be capable to remove property
	opacity: 0;
	-webkit-transform: scale(0);
	-moz-transform: scale(0);
	-ms-transform: scale(0);
	-o-transform: scale(0);
	transform: scale(0);
	*/
	transition: opacity 0.5s ease, transform 0.2s ease;
}

:not(body)#screen {
	background: url(../Styles/fond-repete.jpg) repeat;
	overflow: auto;
}


/* boutons */
.bouton {
	position: fixed;
	z-index: 100;
	cursor: pointer;
	width: 36px;
	height: 36px;
	background-color: black;
	opacity: 0.8;
	-moz-border-radius: 50%;
	border-radius: 50%;
}

.zoom {
	-moz-border-radius: 5px;
	border-radius: 5px;
	width: 24px;
	height: 160px;
}
.zoom img {
	display: block;
	width: 100%;
	padding: 2px 0;
}
.zoom img:first-child {
	padding-top: 0;
}
.zoom img:last-child {
	padding-bottom: 0;
}

.prec, .suiv, .zoom {
	top: 50%;
	-webkit-transform: translatey(-50%);
	-moz-transform: translatey(-50%);
	-ms-transform: translatey(-50%);
	-o-transform: translatey(-50%);
	transform: translatey(-50%);
}
.prec, .suiv {
	background: none;
	width: 36px;
	height: auto;
	-moz-border-radius: 0;
	border-radius: 0;
}
.prec {
	left: 10px;
}
.suiv, .zoom {
   	right: 10px;
}
.close, .ok {
	top: 10px;
}
.close {
	right: 10px;
}
.ok {
	right: 45px;
}

/* Texte */
.fullScreen h2, .fullScreen h3 {
	margin: 0 auto;
}
.fullScreen .corps > h3 {
	font-weight: bold;
}
.fullScreen .corps, .fullScreen nav.sousMenu, .fullScreen header, .fullScreen footer {
	margin: 15px auto;
	padding: 5px;
}

#screen .corps {
	max-width: 800px;
	padding: 15px;
}
.fullScreen .corps > div, .fullScreen figure {
	display: inline-block;
}

.fullScreen .corps > figure + div {
	width: 45%;
}

#screen .corps > figure, #screen .corps > figure + div {
	margin: 40px 15px;
}
#screen .corps > figure + div :first-child {
	margin-top: 0;
}

.fullScreen .corps figure {
	margin: 10px;
	vertical-align: top;
	overflow: hidden;
	-webkit-animation: arriveeCarte 1s ease-in-out;
	-moz-animation: arriveeCarte 1s ease-in-out;
	-o-animation: arriveeCarte 1s ease-in-out;
	animation: arriveeCarte 1s ease-in-out;
}

/* Cas galerie */
.fullScreen .corps > div {
	width: 100%;
}
.fullScreen #photos > p {
	margin: 15px auto;
}

@-webkit-keyframes arriveeCarte {
	0% { 
		-webkit-transform: translatex(-100%) scaley(0.01);
		transform: translatex(-100%) scaley(0.01);
	}
	20% {
		-webkit-transform: translatex(0%) scaley(0.01);
		transform: translatex(0%) scaley(0.01);
	}
	100% { 
		-webkit-transform: translatex(0%) scaley(1.0);
		transform: translatex(0%) scaley(1.0);
	}	
}
@-moz-keyframes arriveeCarte {
	0% { 
		-moz-transform: translatex(-100%) scaley(0.01);
		transform: translatex(-100%) scaley(0.01);
	}
	20% {
		-moz-transform: translatex(0%) scaley(0.01);
		transform: translatex(0%) scaley(0.01);
	}
	100% { 
		-moz-transform: translatex(0%) scaley(1.0);
		transform: translatex(0%) scaley(1.0);
	}	
}
@-o-keyframes arriveeCarte {
	0% { 
		-o-transform: translatex(-100%) scaley(0.01);
		transform: translatex(-100%) scaley(0.01);
	}
	20% {
		-o-transform: translatex(0%) scaley(0.01);
		transform: translatex(0%) scaley(0.01);
	}
	100% { 
		-o-transform: translatex(0%) scaley(1.0);
		transform: translatex(0%) scaley(1.0);
	}	
}
@keyframes arriveeCarte {
	0% { 
		transform: translatex(-100%) scaley(0.01);
	}
	20% {
		transform: translatex(0%) scaley(0.01);
	}
	100% { 
		transform: translatex(0%) scaley(1.0);
	}	
}

/* Adaptations */
@media screen and (max-width: 280px) {
	#screen .corps > * {
		margin: 15px auto;
	}
	#screen figure {
		width: 80%;
	}
	#screen figcaption::before, #screen figcaption::after, #photoFull figcaption h2::before, #photoFull figcaption h2::after {
		display: none;
	}
}

@media screen and (max-width: 600px) {
	.fullScreen .corps > figure + div {
		width: auto;
	}
	.close, .ok {
		width: 24px;
		height: 24px;
	}
}
