/* --- Size --- */
:root {
	--font-size-setup: 10px;
}

@media screen and (max-width: 1700px) {
	:root { --font-size-setup: 8.5px; }
}

@media screen and (max-width: 1350px) {
	:root { --font-size-setup: 7.5px; }
}

@media screen and (max-width: 1210px) {
	:root { --font-size-setup: 7px; }
}

@media screen and (max-width: 768px) {
	:root { --font-size-setup: 10px; }
}

html {
	font-size: var(--font-size-setup);
	overflow-x: clip;
	font-family: 'Carnac';
	height: 100vh;
	overflow: hidden;
}

body {
	display: flex;
	gap: 6.3rem;
	margin: 0;
	background-color: #2B303A;
}



/* header */
header {
	width: 45%;
	height: 100vh;
	position: relative;
	overflow: hidden;
}

header::before {
	content: '';
	position: absolute;
	inset: -15vh 0;
	background-image: url(assets/img/background.png);
	background-size: cover;
	background-position: center;
	border-radius: 0 35% 35% 0 / 0 50% 50% 0;
	z-index: 0;
}

header .background-desktop {
	display: none;
}


header .black-box {
	position: absolute;
	top: 55%;
	transform: translateY(-50%);
	right: 0;

	padding: 3rem 3.6rem 2.5rem 5rem;
	background-color: #FFF;

	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5rem;

	font-size: 3.2rem;
	line-height: 4.6rem;
	color: #2B303A;
	font-weight: 800;
	text-align: center;
	border-radius: 5px;
	z-index: 1;
}

@media screen and (max-width: 1024px) {
	header .black-box {
		padding: 8rem 3.5rem 6.25rem 3.5rem;

		font-size: 2.5rem;
		line-height: 3.5rem;

		left: 10%;
	}
}

header .black-box .logo{
	max-width: 39rem;
	height: auto;
	width: 100%;
}

/* Main */
main {
	flex: 1;

	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5rem;
	padding-top: 8rem;

	color: #FFF;
}

main::after{
	content: "";
	position: absolute;
	z-index: -1;
	bottom: -10.5rem;
	right: -7.5rem;
	width: 55rem;
	height: 61rem;
	mask: url(assets/img/bakertilly_deco_logo.svg);
	mask-size: contain;
	mask-position: center;
	mask-repeat: no-repeat;
	background-color: rgba(255, 255, 255, 0.15);
}

main .logo-bakertilly {
	max-width: 55rem;
	height: auto;
	padding-left: 10rem;
}

main .text-and-buttons .big-text, main .text-and-buttons .buttons {
	padding-left: 10rem;
}

main .text-and-buttons {
	display: flex;
	flex-direction: column;
	gap: 6rem;
}

main .text-and-buttons .big-text{
	font-size: 3.2rem;
	line-height: 1.3;
	font-weight: 700;
}

main .text-and-buttons .buttons {
	display: flex;
	gap: 2.3rem;
}

main .text-and-buttons .buttons .button{
	border-radius: 15rem;
	padding: 1.5rem 2.5rem;

	font-size: 1.6rem;
	line-height: 1.4;
	text-transform: uppercase;
	font-weight: 700;

	color: #000;
	text-decoration: none;

	transition-property: border-color, background-color, color;
	transition-duration: .32s;
	transition-timing-function: ease-out;
}

main .text-and-buttons .buttons .button.espace-client {
	border: 2px solid #D1EC51;
	background-color: #D1EC51;
}

main .text-and-buttons .buttons .button.espace-client:hover {
	background-color: #FFF;
	border-color: #FFF;
}

main .text-and-buttons .buttons .button.redirect-to-baker {
	border: 2px solid #FFF;
	color: #FFF;
}

main .text-and-buttons .buttons .button.redirect-to-baker:hover {
	border-color: #00bab3;
	background-color: #00bab3;
	color: #2B303A;
}

main .call-to-favorite {
	padding-left: 10rem;

	display: flex;
	gap: 1.1rem;

	font-size: 2rem;
	line-height: 2.8rem;
	font-family: 'Roboto';
}

main .call-to-favorite .picto{
	height: 3.5rem;
	width: 3.5rem;
	object-fit: contain;
	object-position: center;
}


@media screen and (max-width: 1370px) {
	main .call-to-favorite span {
		max-width: 70%;
	}
}

/* Mobile version */
@media screen and (max-width: 768px) {
	html {
		overflow: initial;
	}

	body {
		flex-direction: column;
		gap: 0;
		height: 100vh;
	}

	header {
		width: 100%;
		height: 35vh;
		position: relative;
		overflow: visible;
	}

	header::before {
		inset: 0;
		border-radius: 0 0 50% 50% / 0 0 45% 45%;
		overflow: hidden;
	}
	
	header .background-desktop {
		display: none;
	}


	header .black-box {
		position: absolute;
		left: 50%;
		transform: translateX(-50%);
		bottom: 0;
		top: unset;
		gap: 2.4rem;
		width: fit-content;
		padding: 1.6rem 3.3rem 2.4rem;
		z-index: 2;

		font-size: 1.7rem;
		line-height: 2rem;
	}

	header .black-box .logo{
		width: 21.6rem;
	}

	main {
		overflow: hidden;
		padding-bottom: 5.6rem;

		align-items: center;
		padding-top: 4rem;
		justify-content: center;
		gap: 2rem;
	}

	
	main .logo-bakertilly {
		max-width: 32rem;
		width: 100%;
		padding-left: 0;
	}

	main .text-and-buttons .big-text, main .text-and-buttons .buttons {
		padding-left: 0;
	}

	main .text-and-buttons {
		gap: 3.5rem;
	}

	main .text-and-buttons .big-text{
		font-size: 2.3rem;
		line-height: 2.5rem;
		font-weight: 800;
		text-align: center;
		width: 80%;
		margin-left: auto;
		margin-right: auto;
	}

	main .text-and-buttons .buttons {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 2rem;
		margin-bottom: 1rem;
	}

	main .text-and-buttons .buttons .button{
		padding: 1.8rem 3.2rem;
		line-height: 1.5rem;
	}

	

	main::after {
		display: none;
	}

	main .call-to-favorite {
		padding-left: 0;
		position: relative;

		display: block;
		font-size: 1.6rem;
		line-height: 2.5rem;
		font-weight: 300;
		color: #fff;

		max-width: 26rem;
		padding-bottom: 3rem;
		padding-top: 2rem;
		margin-top: 3rem;

	}

	main .call-to-favorite .picto{
		height: 1.5rem;
		width: 1.5rem;

		transform: translateY(2px);
	}

main .call-to-favorite::before{
		content: '';

		z-index: -1;
		background-color: #252932;

		top: -9rem;
		bottom: -10rem;
		height: auto;
		width: 100vw;

		position: absolute;
		left: 50%;
		transform: translateX(-50%);
	}

}

/* Fonts */
@font-face {
	font-family: 'Carnac';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('assets/fonts/carnac_bold.woff2');
}

@font-face {
	font-family: 'Roboto';
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url('assets/fonts/roboto-v47-latin-regular.woff2');
}