@font-face {
    font-family: 'eurostileregular';
    src: url('/public/eurosti-webfont.woff2') format('woff2'),
         url('/public/eurosti-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'eurostilebold';
    src: url('/public/eurostib-webfont.woff2') format('woff2'),
         url('/public/eurostib-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
body, table, tr, th, td, ul, li, h1, h2, p, form {
	padding: 0;
	margin: 0;
}
a {
	text-decoration: none;
	color: inherit;
}
table, tr, th, td {
	border-collapse: collapse;
}
ul, li {
	list-style-type: none;
}

body {
	background-image: url('/img/trameclair.png');
	font: 18px eurostileregular, sans-serif;
	box-sizing: border-box;
	padding-bottom: 45px;
	position: relative;
	min-height: 100vh;
}
header {
	background-color: white;
	text-align: center;
	padding: 0 15% 1em 15%;
}
header::after {
	display: block;
	clear: both;
	content: '';
}
header #slogan {
	padding-top: 60px;
}
header #slogan span {
	white-space: nowrap;
}
header #slogan b {
	font-family: eurostilebold; 
}
header #logo_left {
	height: 139px;
	float: left;
}
header #logo_right {
	height: 139px;
	float: right;
}
#home, #menu {
	background-image: url('/img/trame.jpg');
	text-align: center;
}
#home::before,
#menu::before {
	background-image: linear-gradient(to top, #88888800, #888888ff);
	display: block;
	content: '';
	height: 5px;
}
#home::after,
#menu::after {
	background-image: linear-gradient(to bottom, #88888800, #888888ff);
	display: block;
	content: '';
	height: 5px;
}
#home .bloc {
	display: inline-block;
	max-width: 320px;
	width: 30%;
}
#home .bloc.space {
	margin: 0 15px;
}
#home .bloc .back {
	background-size: cover;
}
#home .bloc .back.left	{background-image: url('/img/left_1.gif');}
#home .bloc .back.middle{background-image: url('/img/middle_1.gif');}
#home .bloc .back.right	{background-image: url('/img/right_1.gif');}
#home .bloc img {
	display: block;
	width: 100%;
}
#home .bloc:hover img {
	visibility: hidden;
}
#home .bloc h1 {
	text-transform: uppercase;
	background-color: #888;
	letter-spacing: 0.05em;
	padding-top: 2px;
	font-size: 2em;
	color: white;
}
#menu .onglet {
	background-repeat: no-repeat;
	background-position: 10% 50%;
	text-transform: uppercase;
	background-color: #999;
	display: inline-block;
	letter-spacing: 0.05em;
	border-radius: 0.3em;
	font-size: 1.2em;
	padding: 2px 2em 2px 4em;
	color: white;
}
#menu .onglet.on,
#menu a .onglet:hover {
	background-color: #aaa;
}
#menu .onglet.accueil	{background-image: url('/img/picto-a.png');}
#menu .onglet.societe	{background-image: url('/img/picto-s.png');}
#menu .onglet.photos	{background-image: url('/img/picto-p.png');}
#menu .onglet.contact	{background-image: url('/img/picto-c.png');}
main {
	max-width: 1300px;
	margin: auto;
}
main table {
	width: 100%;
}
main #side {
	background-image: url('/img/side.png');
	background-position: top right;
	background-repeat: repeat-y;
	max-width: 30%;
	width: 300px;
}
main #content {
	padding: 3%;
}
main #content h2 {
	margin-bottom: 1em; 
	font-size: 1.2em;
}
main #content .inner {
	margin-bottom: 2em;
	padding-left: 2em;
}
main .loader {
	text-align: center;
}
main table.diapo {
	background-image: url('/img/revnov_picto_25.png');
	background-position: center center;
	background-repeat: no-repeat;
	background-size: contain;
	background-color: grey;
	height: 50vh;
}
main table.diapo.hidden {
	display: none;
}
main table.diapo:hover {
}
main table.diapo td.btn {
	width: 10%;
}
main table.diapo td.btn img.arrow {
	cursor: pointer;
	opacity: 0.3;
	width: 100%;
}
main table.diapo:hover td.btn img.arrow {
	opacity: 0.5;
}
main table.diapo td.btn:hover img.arrow {
	opacity: 0.7;
}
main table.diapo .src {
	visibility: hidden;
	text-align: center;
	height: 5px;
}
main table.diapo .src img {
	vertical-align: bottom;
	height: 100%;
}
main #content p {
	text-align: justify;
	margin-bottom: 2em; 
	text-indent: 2em;
	line-height: 2;
}
main #content a {
	color: blue;
}
main #avert {
	text-align: center;
}
main #avert div {
	border-radius: 0.5em;
	margin-top: 1px;
}
main #avert .positive {
	background-color: #afa;
}
main #avert .negative {
	background-color: #faa;
}
main form::after {
	display: block;
	clear: both;
	content: '';
}
main form input[type=submit] {
	float: right;
}
main form input[type=text],
main form input[type=email],
main form textarea {
	box-sizing: border-box;
	margin-bottom: 1em;
	display: block;
	padding: 5px;
	width: 100%;
}
#fbook {
	text-align: center;
	margin-top: 1em;
}
#fbook iframe {
	overflow: hidden;
	max-width: 100%;
	width: 500px;
}
footer {
	position: absolute;
	margin-top: 1.2em;
	width: 100%;
	bottom: 0;
}
footer table {
	text-align: center;
	max-width: 1300px;
	margin: auto;
	width: 100%;
}
footer img {
	max-width: 100%;
	opacity: 0.8;
}
footer a img:hover {
	opacity: 1;
}

@media only screen and (max-width: 800px) {
	header {
		padding: 0;
	}
	header #logo_left,
	header #logo_right {
		height: auto;
		max-width: 40%;
		float: none;
	}
	header #slogan {
		padding-top: 0em;
	}
	#home .bloc.space {
		margin: 0 1%;
	}
	#home .bloc h1 {
		font-size: 1em;
	}
	#menu .onglet {
		background-size: 0;
		font-size: 0.9em;
		min-width: 20%;
		padding: 2px;
	}
	main #side {
		width: 0;
	}
}
