/*
Theme Name: marilou
Theme URI: https://mbcode.pro
Author: Maxime Bichon
Author URI: https://mbcode.pro
Description: marilou
*/

/* @import url('main.css'); */

/* RESET */

html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{border:0;font-size:100%;font:inherit;vertical-align:baseline;margin:0;padding:0}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:none}table{border-collapse:collapse;border-spacing:0}

:focus:not([data-focusvisible-polyfill]){outline: none;}

/* FONTS */

@font-face {
	font-family: 'Quebec';
	src: url('f/Quebec-Regular.woff2') format('woff2'),
		url('f/Quebec-Regular.woff') format('woff');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'Quebec';
	src: url('f/Quebec-Medium.woff2') format('woff2'),
		url('f/Quebec-Medium.woff') format('woff');
	font-weight: bold;
	font-style: normal;
}

/*/////////*/
/* GENERAL */
/*/////////*/

body{
	font-family: 'Quebec';
	letter-spacing: 0.05em;
	line-height: 1.5em;
	font-size: 15px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	-webkit-backface-visibility: hidden;
}

a{
	text-decoration: none;
	color: black;
}

p{
	margin-bottom: 1em;
}

p:last-of-type{
	margin-bottom: 0;
}

img{
	width: 100%;
	height: auto;
	vertical-align: middle;
}

.left{
	float: left;
}

.right{
	float: right;
}

.clear{
	clear: both;
}

.alignright{
	text-align: right;
}

.center{
	text-align: center;
}

.upper{
	text-transform: uppercase;
}

.lower{
	text-transform: lowercase
}

.capi{
	text-transform: capitalize;
}

.borderbox{
	box-sizing: border-box;
}

.inline{
	display: inline;
}

.inline-block{
	display: inline-block;
}

.block{
	display: block;
}

.relative{
	position: relative;
}

.absolute{
	position: absolute;
}

.fixed{
	position: fixed;
}

.flex{
	display: flex;
}

.flex-wrap{
	flex-wrap: wrap;
}

.flex-column{
	flex-direction: column;
}

.space-between{
	justify-content: space-between;
}

.flex-center{
	align-items: center;
	justify-content: center;
}

.flex-end{
	justify-content: flex-end;
}

.cover{
	object-fit: cover;
}

.contain{
	object-fit: contain;
}

i,
em,
.italic{
	font-style: italic;
}

.bold,
strong{
	font-weight: bold;
}

.hyphens{
	-webkit-hyphens: auto;
	-ms-hyphens: auto;
	hyphens: auto;
}

.overflow{
	overflow: auto;
}

.width20{
	width: 20%;
}

.width25{
	width: 25%;
}

.width33{
	width: 33.33%;
}

.width50{
	width: 50%;
}

.width66{
	width: 66.66%;
}

.width75{
	width: 75%;
}

.width100{
	width: 100%;
}

.height100{
	height: 100%;
}

.pointer{
	cursor: pointer;
}

.marg1em{
	margin-bottom: 1em;
}

.responsive-video{
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	width: 100%;
}

.responsive-video iframe{
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/*////////*/
/* LAYOUT */
/*////////*/

.size16{
	font-size: 16px;
}

.size20{
	font-size: 20px;
}

.marg15{
	margin-bottom: 15px;
}

.marg30{
	margin-bottom: 30px;
}

.marg60{
	margin-bottom: 60px;
}

.wrapper{
	margin: 30px 30px 30px 260px;
}

.wrapper.journal,
.wrapper.home{
	margin: 0 0 0 260px;
}

.one_slide_home{
	display: flex!important;
	max-height: 100vh;
}

#diapo_journal,
#diapo_home{
	width: calc(100vw - 260px);
	height: 100vw;
	position: fixed;
}

.one_slide_home img{
	min-height: 100%;
}

.wrapper.journal .one_slide_home{
	padding: 60px;
	box-sizing: border-box;
	cursor: pointer;
}

body.page-id-1341 #menu,
body.page-id-1341{
	background: black;
}

body.page-id-1341 a{
	color: white;
}

/* SINGLE */

.main_width_txt{
	max-width: 80ch;
}

.max_height_img{
	max-height: calc(100vh - 60px);
	display: flex;
}

.max_height_img img{
	object-fit: contain;
}

.fancybox-bg{
	background: white;
}

.fancybox-button{
	background: transparent!important;
	color: black!important;
	font-size: 18px!important;
	visibility: visible!important;
	opacity: 1!important;
}

/* GRIDS */

.grid{
	margin-left: -30px;
	margin-right: -30px;
	display: flex;
	flex-wrap: wrap;
}

.grid_2 .item{
	width: calc(50% - 60px);
	margin: 0 30px 60px 30px;
}

.grid_3 .item{
	width: calc(33.33% - 60px);
	margin: 0 30px 60px 30px;
}

.grid_4 .item{
	width: calc(25% - 60px);
	margin: 0 30px 60px 30px;
}

.grid_5 .item{
	width: calc(20% - 60px);
	margin: 0 30px 60px 30px;
}

.ratio{
	display: flex;
	aspect-ratio: 1/1;
	overflow: hidden;
	transition: transform 0.3s ease;

}

.ratio img{
	object-fit: contain;
}

.item-projets:hover .ratio{
	transform: scale(1.05);
}

.grayscale_hover:hover img{
	filter: grayscale(100%);
}

.fancybox-slide--image{
	padding: 60px;
}

/* MENU */

#menu{
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	width: 260px;
	padding: 30px;
	box-sizing: border-box;
	background: white;
	z-index: 777;
}

.one_main_menu_item{
	
}

.one_sub_menu_item{
	margin-left: 20px;
	font-size: 12px;
	line-height: 1.4em;
	text-transform: uppercase;
}

.one_sub_menu_item{
	margin-top: 3px;
}

.active,
.underline_hover:hover{
	text-decoration: underline;
}

.opacity_hover:hover{
	opacity: 0.5;
}

.one_sub_menu_item .active{
	font-weight: normal;
	opacity: 0.5;
	text-decoration: none;
}

/*////////////*/
/* RESPONSIVE */
/*////////////*/

.mobile,
.mobile_flex,
.mobile_inline{
	display: none;
}

@media screen and (max-width: 1300px) {
	
	.grid_4 .item{
		width: calc(33.33% - 60px);
	}
	
}

@media screen and (max-width: 1100px) {
	
	.grid_4 .item{
		width: calc(50% - 60px);
	}
	
}

@media screen and (max-width: 1000px) {

	.mobile{
		display: block;
	}

	.mobile_flex{
		display: flex;
	}

	.mobile_inline{
		display: inline;
	}

	.desktop{
		display: none;
	}

	/* HEADER MOBILE */

	#mobile_header{
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		height: 50px;
		padding: 0 20px;
		background: white;
		z-index: 999;
		box-sizing: border-box;
		justify-content: space-between;
	}

	#mobile_header a{
		color: black;
	}

	#hamburger{
		width: 26px;
		height: 20px;
		background: transparent;
		border: 0;
		padding: 0;
		cursor: pointer;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		position: relative;
	}

	#hamburger span{
		display: block;
		height: 2px;
		width: 100%;
		background: black;
		transition: transform 0.2s ease, opacity 0.2s ease;
	}

	body.menu-open #hamburger span:nth-child(1){
		transform: translateY(9px) rotate(45deg);
	}

	body.menu-open #hamburger span:nth-child(2){
		opacity: 0;
		display: none;
	}

	body.menu-open #hamburger span:nth-child(3){
		transform: translateY(-9px) rotate(-45deg);
	}

	/* MENU MOBILE */

	#menu{
		top: 50px;
		width: 100%;
		padding: 30px;
		transform: translateX(-100%);
		transition: transform 0.3s ease;
		overflow-y: auto;
		z-index: 888;
	}

	#menu.open{
		transform: translateX(0);
	}

	#menu #logo{
		display: none;
	}

	body.menu-open{
		overflow: hidden;
	}

	/* WRAPPER */

	.wrapper{
		margin: 70px 20px 30px 20px;
	}

	.wrapper.journal,
	.wrapper.home{
		margin: 50px 0 0 0;
	}

	/* HOME / JOURNAL DIAPO */

	#diapo_home,
	#diapo_journal{
		width: 100vw;
		height: calc(100vh - 50px);
		position: relative;
	}

	.one_slide_home{
		max-height: calc(100vh - 50px);
	}

	.wrapper.journal .one_slide_home{
		padding: 20px;
	}
	
	.one_slide_home img {
		min-height: 100lvh;
	}

	/* GRIDS */

	.grid{
		margin-left: -10px;
		margin-right: -10px;
	}

	.grid_2 .item,
	.grid_3 .item,
	.grid_4 .item,
	.grid_5 .item{
		width: calc(50% - 20px);
		margin: 0 10px 30px 10px;
	}
	
	.grid_1_mob .item{
		width: calc(100% - 20px);
		margin: 0 10px 30px 10px;
	}
	
	.grid_1_mob .item .ratio{
		aspect-ratio: auto;
	}
	
	.item-projets:hover .ratio{
		transform: none;
	}

	.fancybox-slide--image{
		padding: 20px;
	}

	/* PAGE NOIRE */

	body.page-id-1341 #mobile_header{
		background: black;
		border-bottom-color: #222;
	}

	body.page-id-1341 #mobile_header a{
		color: white;
	}

	body.page-id-1341 #hamburger span{
		background: white;
	}

}