/* David Garnier 02/2021 - garnierdav@yahoo.com */
@import url('https://fonts.googleapis.com/css?family=Montserrat&display=swap');
html, body {
	margin:0;
	padding:0;
	width: 100%; height: 100%;
	color:#454545;
	letter-spacing: 0.1em;
	/* scroll-behavior: smooth; */
}
body {
	background-color:#FFF;
	font-family: 'Montserrat', sans-serif;
	font-size: 100%;
	opacity:0;
	transition: opacity 0.3s ease-out;
	-webkit-transition: opacity 0.3s ease-out;
}
*{
	box-sizing:border-box;
	margin:0;
	padding:0;
}
a, a:hover{
	text-decoration:none;
}
#mainContainer {
	width:100%;
	background-color:#DDD;
	overflow: auto;
}
em{
	font-weight:bold;
	font-style:normal;
}
iframe{
	border:none;
	overflow:hidden;
}

/* ANIMATION */
@-webkit-keyframes zoomIn {
	0%{
		opacity: 0;
		-webkit-transform: scale(0.8);
	}
	100% {
		opacity: 1;
		-webkit-transform: scale(1);
	}
}
@keyframes zoomIn {
	0%{
		opacity: 0;
		transform: scale(0.8);
	}
	100% {
		opacity: 1;
		transform: scale(1);
	}
}
@-webkit-keyframes shiftIn {
	0%{
		opacity: 0;
		margin-bottom:30px;
	}
	100% {
		opacity: 1;
		margin-bottom:0px;
	}
}
@keyframes shiftIn {
	0%{
		opacity: 0;
		margin-bottom:30px;
	}
	100% {
		opacity: 1;
		margin-bottom:0px;
	}
}

/* MISC */
#social {
	position: fixed;
	bottom: 50px;
	left: 15px;
	z-index: 90;
}
#topBtn {
	display: none;
	position: fixed;
	bottom: 40px;
	right: 30px;
	z-index: 80;
	opacity: 0.7;
	cursor:pointer;
}
#topBtn:hover {
	opacity: 1;
}
#msk {
	display: none;
	cursor:pointer;
	position: fixed;
	z-index: 90;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.8);
}

/* HEADER */
#headerContainer{
	background:#333 url(../medias/images/design/header_bg.jpg) 10% 0px no-repeat;
	overflow: hidden;
	top: 0;
	position: fixed;
	width:100%;
	z-index:99;
	line-height:61px;
}
#header{
	color:#DDD;
	width:1250px;
	margin-left: auto;
	margin-right: auto;
}

#headerLeft{
	float:left;
	padding-left:30px;
	width : auto;
	word-wrap: break-word;
	-moz-user-select: -moz-none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
	font-size:1.1em;
	font-weight:bold;
}

#header a{
	color:#DDD;
	-webkit-transition: color 0.4s ease;
	-moz-transition: color 0.4s ease;
	transition:  color 0.4s ease;
}
#header a:hover{
	color:#DDD;
}
.scrollHeader{
	box-shadow: 0px 5px 5px rgba(0, 0, 0, .5);
}
#stitle{
	font-weight:normal;
	font-size:0.7em;
	line-height:0.7em;
	font-style:italic;
	margin-left:5px;
}

/* normalNav */
#normalNav{
	float:right;
	padding-right:15px;
	margin:0px;
	display: table;
}
#normalNav a{
	padding:0px 15px;
	display:inline-block;
	background-color:#333;
	color:#f2f2f2;
	font-weight:normal;
	-webkit-transition: background-color 0.4s ease, color 0.4s ease;
	-moz-transition: background-color 0.4s ease, color 0.4s ease;
	transition:  background-color 0.4s ease, color 0.4s ease;
}
#normalNav h2, #normalNav span{
	padding:0px 15px;
	display:inline-block;
	font-size:1.1em;
	font-weight:bold;
	color:#000;
	background-color:#FFFFFF;
	vertical-align: top;
}
#normalNav a:hover{
	background-color:#FFFFFF;
	color:#000;
	font-weight:bold;
}

/* responsiveNav */
.nav{
	display: none;	
}
#responsiveNav{
	display: none;
	width:100%;
	background-color:#FFF;
	color:#000;
	text-align:center;
	float:none;
	clear:both;
	outline:1px #FFF solid;
	outline-offset: -1px;
	padding:2px 2px;
	line-height:2em;
	z-index:98;
}
#responsiveNav a, #responsiveNav span{
	color:#FFF;
	background-color:#aaa;
	width:auto;
	display:block;
	text-align:center;
	text-transform:uppercase;
	margin:1px;
	padding:1px;
}
#responsiveNav a:hover{
	background-color:#525252;
	font-weight:bold;
	color:#FFF;
	transition: background-color 0.4s ease;
	-webkit-transition: background-color 0.4s ease;
}
#responsiveNav h2{
	font-size:1em;
	background-color:#666;
	color:#FFF;
	cursor:default;
	text-align:center;
	text-transform:uppercase;
	margin:1px;
	padding:1px;
}
#responsiveNav h3{
	font-size:0.8em;
	background-color:#FFF;
	font-weight:bold;
	color:#000;
	text-transform:uppercase;
}
#worksSelector a{
	font-size:0.8em;
	background-color:#fff;
	color:#571700;
	text-align:center;
	text-transform:none;
}
#worksSelector a, #worksSelector h3{
	/* padding:0px 5px;
	margin:0px 15px; */
}
#worksSelector > a, #worksSelector > h3 {
    border-bottom: 1px solid #DDD;
	padding-left:14px;
}
#worksSelector a:last-child{
    border-bottom: 0;
}
#worksSelector > h3 {
	background:#555 url(../medias/images/design/arrow_active_thb.png) 5px center no-repeat;
	color:#FFF;
}

/* Responsive NAV */
.responsiveNav.responsive {
	float:none;
	clear:both;
	display: block;
}
.responsiveNav.responsive a{
	clear:both;
	display: block;
	width:100%;
}
.responsiveNav.responsive .active{
	clear:both;
	display: block;
	width:100%;
	-moz-user-select: -moz-none;
	-webkit-user-select: none;
	-ms-user-select: none;
	user-select: none;
}
#openNavBtn{
	position:absolute;
	right:0px;
	top:0px;
	display:none;
	cursor:pointer;
	width:61px;
	height:61px;
}
.close{
	background:transparent url(../medias/images/design/open_nav.png) center center no-repeat;
}
.open{
	background:transparent url(../medias/images/design/close_nav.png) center center no-repeat;
}

/* page INDEX */
#content{
	margin: 76px auto 15px auto;
	padding:50px 120px 30px 120px;
	background-color:#FFF;
	width:1250px;
	border-radius: 10px;
	-moz-border-radius: 10px;
	-webkit-border-radius: 10px;
	text-align:center;
}
#pageName, #otherPageLink a, #recentPageLink a, #recentPageLinkBottom a, #otherPageLinkBottom a{
	letter-spacing: 0.4em;
	font-size:0.8em;
	text-align:center;
	margin-top:20px;
	padding: 15px;
	color:#888;
	text-transform: uppercase;
}
#otherPageLink a, #recentPageLink a, #recentPageLinkBottom a, #otherPageLinkBottom a{
	color:#222;
	letter-spacing: 0.3em;
	font-size:0.7em;
}
#otherPageLink, #recentPageLink{
	display: none;
	background-color:#FFF;
	text-align:center;
	padding:0px 10px 0px 10px;
	outline:1px #333 solid;
	outline-offset:-1px;
}
#recentPageLinkBottom, #otherPageLinkBottom{
	display: block;
	text-align:center;
	padding:10px 20px;
	background-color:#FFF;
	border-radius: 5px;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	margin-bottom:50px;
}
#otherPageLink a, #otherPageLinkBottom a{
	text-decoration:underline;
	background: transparent url(../medias/images/design/btn_nav_next_over.jpg) no-repeat right center;
	padding: 0px 25px;
}
#recentPageLink a, #recentPageLinkBottom a{
	text-decoration:underline;
	background: transparent url(../medias/images/design/btn_nav_prev_over.jpg) no-repeat 0px center;
	padding: 0px 25px;
}
#otherPageLink a:hover, #otherPageLinkBottom a:hover, #recentPageLink a:hover, #recentPageLinkBottom a:hover{
	text-decoration:none;
}

#theme{
	text-align:center;
	margin-bottom:40px;
	min-height:500px;
}

.themeThb h2{
	text-align:center;
	letter-spacing: 0.2em;
	width:200px;
	font-size:1em;
	margin-top:5px; 
	margin-bottom:10px;
}

.themeThb{
	display:inline-block;
	overflow: hidden;
	margin:10px;
	text-align:center;
	width:200px;
	height:auto;
	vertical-align: top;
	-webkit-animation: zoomIn 0.4s ease-out;
	animation: zoomIn 0.4s ease-out;
}
.themeThb .img-hover-zoom {
	display:block;
	width:200px;
	height: 200px;
	overflow: hidden;	
	border-radius: 10px;
	-moz-border-radius: 10px;
	-webkit-border-radius: 10px;
}

.themeThb .img-hover-zoom img {
	width:200px;
	height: 200px;
	transition: transform .5s;
}

.img-hover-zoom:hover img {
	transform: scale(1.2);
}

/* page BIO */
#bio{
	margin: 76px auto 15px auto;
	padding:20px 50px 30px 50px;
	background-color:#fff;
	min-height:500px;
	text-align:center;
	width:1250px;
	border-radius: 10px;
	-moz-border-radius: 10px;
	-webkit-border-radius: 10px;
}
#bio img{
	overflow: hidden;
	padding:10px;
}
#portrait{
	margin:10px;
	-webkit-animation: zoomIn 0.4s ease-out;
	animation: zoomIn 0.4s ease-out;
	border-radius: 20px;
	-moz-border-radius: 20px;
	-webkit-border-radius: 20px;
}

#portrait-title{
	display:block;
	text-align:center;
	width : 100%;
	word-wrap: break-word;
	line-height: 1.4em;
	font-size:1em;
	padding: 0px;
}
#bio-en{
	font-style:italic;
}
#bio-fr, #bio-en{
	margin:10px;
	font-size:0.7em;
	margin-left: auto;
	margin-right: auto;
	padding:0px 10px;
	text-align:left;
	display:inline-block;
	font-size:0.8em;
	letter-spacing:0.05em;
}
#bio-fr li, #bio-en li{
	margin-top:10px;
	list-style-position: inside;
}
#bio-fr li a, #bio-en li a{
	color:#4d1b1b;
	text-decoration:underline;
	font-weight:bold;
	white-space: nowrap;
}
#bio-fr li a:hover, #bio-en li a:hover{
	text-decoration:none;
}

/* page CONTACT */
#contact{
	margin: 76px auto 15px auto;
	padding:10px 60px 30px 60px;
	background-color:#fff;
	min-height:500px;
	font-size:1.1em;
	text-align:center;
	width:1250px;
	border-radius: 10px;
	-moz-border-radius: 10px;
	-webkit-border-radius: 10px;
}

#contact .picto{
	display:block;
	margin:40px auto 10px auto;
	-webkit-animation: zoomIn 0.4s ease-out;
	animation: zoomIn 0.4s ease-out;
}
#contact .mail, #contact .phone{
	display:inline-block;
	text-align:center;
	background-color:#333;
	padding:20px;
	font-weight:bold;
	text-transform: uppercase;
	color:white;
	-moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    border-radius: 10px;
	text-decoration:none;
	transition: transform .5s;
	-webkit-transition: -webkit-transform .5s;
	width:auto;
	-webkit-animation: zoomIn 0.4s ease-out 1;
	animation: zoomIn 0.4s ease-out 1;
}
#contact .mail:hover, #contact .phone:hover{
	text-decoration:none;
	background-color:#DDD;
	color:#333;
	-ms-transform: scale(1.05); /* IE 9 */
	-webkit-transform: scale(1.05); /* Safari 3-8 */
	transform: scale(1.05);
	transition: background-color 0.4s ease, transform 0.3s ease;
	-webkit-transition: background-color 0.4s ease, -webkit-transform 0.3s ease;
}
#contact  a.geo, #contact  a:hover.geo{
	font-weight:normal;
	text-decoration:none;
	color:#333;
}

#bio p, #contact p, #content p{
	letter-spacing: 0.05em;
}

/* page WORKS */
#worksNav{
	background-color:#FFF;
	text-align:center;
	padding:50px 10px 0px 10px;
	outline:1px #333 solid;
	outline-offset:-1px;	
}

.workThb{
	display:inline-block;
	overflow: hidden;
	text-align:center;
	/* min-width:100px;
	min-height: 100px; */
	min-width:70px;
	min-height: 70px;
	margin:5px;
	
}
.workThb .img-hover-zoom {
	display:block;
	/* width:100px;
	height: 100px; */
	width:70px;
	height: 70px;
	overflow: hidden;
	cursor:pointer;
	position:absolute;
	/* -moz-border-radius: 10px;
	-webkit-border-radius: 10px;
	border-radius: 10px; */
	-moz-border-radius: 7px;
	-webkit-border-radius: 7px;
	border-radius: 7px;
}

.workThb .img-hover-zoom img {
	/* width:100px;
	height: 100px; */
	width:70px;
	height: 70px;
	-webkit-transition: -webkit-transform .5s;
	-moz-transition: transform .5s;
	-o-transition: transform .5s;
	transition: transform .5s;
}
.workThb .img-hover-zoom:hover img {
	transform: scale(1.2);
	-webkit-transform: scale(1.2);
}

#works{
	margin: 20px auto 30px auto;
	padding:20px 10px;
	width:1250px;
}
#works img, .work p {
	display: block;
	margin-left: auto;
	margin-right: auto;
	text-align:center;
	padding:10px;
}
#works img{
	min-width:0;
	min-height:0;
	max-width:100%;
	/* max-height:768px; */
	max-height:600px;
	object-fit: contain;
	border:1px solid #999;
	background-color:white;
}
#works p {
	padding:20px 0px 90px 0px;
	font-size:0.9em;
}

/* FOOTER */
#footer{
	background:#333 url(../medias/images/design/footer_bg.jpg) right 0px no-repeat;
	color:#DDD;
	text-align:center;
	line-height:39px;
	height:auto;
	clear:both;
	width:100%;
	margin-left:auto;
	margin-right:auto;
}
#footer a{
	color:#DDD;
	text-decoration:underline;
	-webkit-transition: color 0.4s ease;
	-moz-transition: color 0.4s ease;
	transition:  color 0.4s ease;
}
#footer a:hover{
	color:#DDD;
	text-decoration:none;
}

@media (max-width: 1249px) {
	#mainContainer {
		width:auto;
		min-width:320px;
	}
	
	/* HEADER */
	#header{
		width:100%;
		min-width:320px;
	}
	#openNavBtn{
		display:block;
	}
	#normalNav{
		display: none;
	}
	
	/* Page INDEX */
	#content{
		width:auto;
		margin: 66px 5px 5px 5px;
		padding:40px 65px 30px 65px;
	}
	
	#bio, #contact, #footer{
		width:100%;
	}
	#bio, #contact, #content{
		-moz-border-radius: 0px;
		-webkit-border-radius: 0px;
		border-radius: 0px;
	}
	
	/* Page WORKS */
	#worksNav{
		width:100%;
	}
	#works{
		width:100%;
		-moz-border-radius: 0px;
		-webkit-border-radius: 0px;
		border-radius: 0px;
		background-color:transparent;
		margin: 20px auto 10px auto;
	}
}

@media (max-width: 768px) {
	body {
		font-size: 0.85em;
	}
	/* HEADER */
	#headerLeft{
		float:none;
		padding:0px;
		width:100%;
		text-align:center;
		font-size:0.75em;
	}
	
	#stitle{
		/*display:none;*/
	}
	#responsiveNav{
		font-size:0.85em;
	}
	#worksNav{
		display: none;
	}
	#otherPageLink, #recentPageLink{
		display: block;
	}
	#recentPageLinkBottom{
		display: none;
	}
	
	/* Page INDEX */
	#content{
		margin: 66px 0px 5px 0px;
		padding:10px;
	}
	#content p{
		width:auto;
		padding:5px;
		font-size:0.85em;
		letter-spacing: 0em;
	}
	#content a{
		font-size:0.85em;
	}
	
	/* Page WORKS */
	#worksNav{
		position: fixed;
	}
	#worksNav .workThb{
		display:none;
		margin:0px;
		padding:0px;
	}
	#works{
		margin: 140px 0px 10px 0px;
		padding:0px;
	}
	#responsiveNav{
		font-size:1em;
	}
	.workgroup div.thbAnim{
		margin:20px;
	}
	#worksList img{
		display:none;
	}
	#works p {
		font-size:0.85em;
		letter-spacing: 0.1em;
	}
	#works img{
		border:none;
	}
	#worksNav{
		padding:40px 10px 0px 10px;
	}
	
	/* Page BIO */
	#bio{
		margin: 61px 0px 0px 0px;
		padding:10px;
		min-height:360px;
	}
	#portrait{
		margin:5px;
		width:100px;
		height:auto;
	}
	
	/* Page CONTACT */
	#contact{
		margin: 76px 0px 0px 0px;
		padding:20px 10px 10px 10px;
		min-height:360px;
		font-size:0.85em;
	}
	#contact .mail, #contact .phone{
		padding:10px;
		-moz-border-radius: 5px;
		-webkit-border-radius: 5px;
		border-radius: 5px;
	}
	
	/* FOOTER */
	#footer{
		/* font-size:0.85em; */
		font-size:0.75em;
		letter-spacing: 0.15em;
	}
}
@media (max-width: 500px) {
	#content .anim{
		overflow:hidden;
		float:none;
		margin:0px;
		margin-left:auto;
		margin-right:auto;
	}
}

@media (max-width: 400px) {
	#headerLeft a{
		/* font-size:1.4em; */
		font-size:1.3em;
	}
	#stitle{
		display:none;
	}
	#worksSelector h3{
		font-size:0.85em;
	}
}

/* PREVENT FOUC*/
html {
    visibility: visible;
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}