/*!
Theme Name: nicolas_dufresne
Theme URI: https://nicolas-dufresne.fr/
Author: Nicolas DUFRESNE
Author URI: https://nicolas-dufresne.fr/
Description: Portfolio de Nicolas DUFRESNE
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: nicolas_dufresne
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

*/

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

@font-face {
	font-family: 'Poppins-black';
	src: url('fonts/Poppins-Black.woff2') format('woff2'),
		url('fonts/Poppins-Black.woff') format('woff');
	font-weight: 900;
	font-style: normal;
	font-display: swap;
}

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

:root {
	--main-color-black: #1e1e1e;
	--main-color-white: #f8f8f8;
}

html,
body {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Poppins';
	font-size: 62.5%;
	font-size: 10px;
	scroll-behavior: smooth;
	background-color: var(--main-color-white);
	overflow: hidden;
	color: var(--main-color-black);
}

.site-wrapper {
	max-width: 1400px;
	margin: 0 auto;
	padding: 20px;
}

.clear {
	clear: both;
}

p,
a,
address {
	font-size: 2rem;
	color: var(--main-color-black);
	text-decoration: none;
}

.container {
	display: flex;
	height: 100vh;
	transition: transform 0.8s cubic-bezier(.77, 0, .18, 1);
	will-change: transform;
}

section {
	width: 100vw;
	height: 100vh;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

section.active {
	opacity: 1;
	transform: translateX(0);
}

h1,
h2,
h3 {
	font-family: 'Poppins-black';
	text-transform: uppercase;
}

h3 {
	font-size: 2.5rem;
}

.animate {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate.visible {
	opacity: 1;
	transform: translateY(0);
}

@media (max-width: 768px) {
	.container {
		display: block;
		transform: none !important;
	}

	section {
		width: 100vw;
		height: auto;
		min-height: 100vh;
		opacity: 1;
		transform: none;
	}

	html,
	body {
		overflow: visible;
	}

	.landing-1st-row {
		display: inline !important;
	}

	.right {
		display: none;
	}
}

@media (max-width: 850px) {
	.container {
		display: block;
		transform: none !important;
	}

	section {
		width: 100vw;
		height: auto;
		min-height: 100vh;
		opacity: 1;
		transform: none;
	}

	html,
	body {
		overflow: visible;
	}

	.landing-1st-row {
		display: inline !important;
	}

	.right {
		display: none;
	}
}


/*************************Navigation*************************/

.nav {
	position: fixed;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 12px;
	z-index: 9999;
}

.nav span {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #ccc;
	cursor: pointer;
}

.nav span.active {
	background: var(--main-color-black);
}

#tooltip {
	position: fixed;
	background: var(--main-color-black);
	color: #fff;
	padding: 5px 10px;
	border-radius: 4px;
	font-size: 1rem;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.2s;
	z-index: 100;
}

@media (max-width: 850px) {
	.nav {
		display: none;
	}
}

/*************************Langues*************************/

.language-switcher {
	z-index: 10;
	position: fixed;
	top: 20px;
	left: 20px;
}

.lang-selected {
	cursor: pointer;
	padding: 6px 12px;
	display: flex;
	align-items: center;
	gap: 8px;
	user-select: none;
	background-color: var(--main-color-white);
	border-radius: 50px;
	border: 1px solid #fefefe
}

.arrow {
	display: inline-block;
	transition: transform 0.3s ease;
}

.lang-dropdown {
	position: absolute;
	top: 0;
	left: 100%;
	display: flex;
	flex-direction: row;
	overflow: hidden;
	max-width: 0;
	max-height: none;
	transition: max-width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
	background: inherit;
	z-index: 100;
	white-space: nowrap;
}

.language-switcher.open .lang-dropdown {
	max-width: 300px;
}

.lang-dropdown a {
	padding: 6px 12px;
	color: inherit;
	opacity: 0;
	transform: translateY(-4px);
	transition: opacity 0.2s ease, transform 0.2s ease, background 0.15s ease;
}

.language-switcher.open .lang-dropdown a {
	opacity: 1;
	transform: translateY(0);
}

.language-switcher.open .lang-dropdown a:nth-child(1) {
	transition-delay: 0.05s;
}

.language-switcher.open .lang-dropdown a:nth-child(2) {
	transition-delay: 0.1s;
}

.language-switcher.open .lang-dropdown a:nth-child(3) {
	transition-delay: 0.15s;
}

.lang-dropdown a:hover {
	opacity: 0.5;
}


/*************************Page:Landing-Page*************************/


.site-wrapper-title {
	max-width: 1800px;
	margin: 0 auto;
}

.landing-title {
	font-size: clamp(5rem, 25vw, 41rem);
	line-height: 0.8;
	letter-spacing: -22px;
}

.lang-ja .landing-title {
	font-size: clamp(4rem, 20vw, 22rem);
	letter-spacing: 0;
	line-height: 1;
}

.lang-ja .a-propos h2 {
	line-height: 1;
}


.landing-1st-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: stretch;
	width: 100%;
}

.landing-2nd-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: stretch;
}


.left {
	align-self: flex-start;
	padding-right: 20px;
}

.right {
	align-self: flex-end;
}

.presentation-box {
	max-width: 600px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	margin: 0 auto;
}

.accueil-box {
	max-width: 600px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	margin: 0 auto;
}

/* placement */

.landing-title span {
	display: block;
	opacity: 0;
	transform: translateY(40px);
	animation: reveal 1s ease forwards;
}

.landing-title .left {
	justify-self: start;
	animation-delay: 0.2s;
}

.landing-title .right {
	justify-self: end;
	animation-delay: 0.4s;
}

/* animation */

@keyframes reveal {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* responsive tweak */

@media (max-width: 850px) {
	.landing-title {
		padding: 20px;
		line-height: 0.9;
		letter-spacing: -5px;
	}
}


.details-box {
	padding: 20px 0;
	text-transform: uppercase;
	font-family: Poppins-black;
}

@media (max-width: 850px) {

	.presentation-box,
	.details-box {
		position: static;
		margin-bottom: 2rem;
	}

	.right {
		display: none !important;
	}
}

/*************************Page:Sommaire*************************/

.sommaire-title {
	font-size: clamp(5rem, 15vw, 20rem);
}

.sommaire-layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: start;
}

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

/* Image */
.sommaire-image img {
	width: 400px;
	height: auto;
	display: block;
	margin-left: auto;
}


/* Liste */
.list-sommaire {
	width: 100%;
}

.list-sommaire li {
	display: grid;
	grid-template-columns: 1fr 4fr;
	gap: 1rem;
	list-style: none;
	text-transform: uppercase;
	align-items: center;
	border-bottom: 1px solid var(--main-color-black);
	padding: 0.5rem 0;
}

.list-sommaire li p {
	font-size: clamp(1.9rem, 5vw, 3.8rem);
}

.list-sommaire li p:first-child {
	text-align: left;
}

.list-sommaire li p:last-child {
	text-align: right;
}

@media (max-width: 850px) {

	.sommaire-title,
	.list-sommaire {
		position: static;
		margin-bottom: 2rem;
	}

	.sommaire-layout {
		grid-template-columns: 1fr;
	}

	.sommaire-image img {
		width: 100%;
	}
}

/*************************Page:À propos*************************/

.bgd-a-propos {
	height: 100vh;
	background: url("img/slide-1.jpg") center/cover no-repeat;
	position: relative;
	display: flex;
}

.bgd-a-propos::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 10%;
	background: var(--main-color-white);
	z-index: 1;
}

.bgd-a-propos::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 10%;
	background: var(--main-color-white);
	z-index: 1;
}

.nbr-page {
	position: absolute;
	bottom: 20px;
	left: 20px;
	z-index: 999;
}

.nbr-p {
	font-size: clamp(1.9rem, 5vw, 3.8rem);
}

.hidden-title,
.hidden-number {
	display: none !important;
	text-align: end;
}

.box-a-propos {
	position: absolute;
	left: 15%;
	top: 0;
	max-width: 768px;
	height: 100%;
	background: var(--main-color-white);
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.a-propos h2 {
	font-size: clamp(5rem, 12vw, 16rem);
	line-height: 0.8;
	margin: 0;
	z-index: 2;
	width: 115%;
	padding-bottom: 30px;
}

/* MOBILE */
@media (max-width: 850px) {
	.box-a-propos {
		position: relative;
		max-width: 768px;
		height: auto;
		left: 0;
	}

	.a-propos h2 {
		padding: 20px 0;
		width: 100%;
	}

	.nbr-page {
		display: none;
	}

	.hidden-title {
		display: block !important;
	}

	.hidden-number {
		display: inline !important;
	}

	.bgd-a-propos {
		background: none;
	}
}

/*************************Page:Experience*************************/

.box-experience-img {
	height: 100vh;
	background: url("img/slide-2.jpg") center/cover no-repeat;
	position: relative;
	display: flex;
}

.box-experience-img::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 10%;
	background: var(--main-color-white);
	z-index: 1;
}

.box-experience-img::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 10%;
	background: var(--main-color-white);
	z-index: 1;
}

.box-experience-txt {
	position: absolute;
	right: 0;
	top: 0;
	height: 100%;
	background-color: var(--main-color-white);
	width: 50%;
	padding: 50px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.experience-title {
	font-size: clamp(3rem, 9vw, 8rem);
	line-height: 0.8;
}

.experience-txt {
	padding-top: 30px;
}

.bio p,
.experience-txt p {
	padding: 10px 0;
}

/* Tablette */
@media (max-width: 1280px) {
	.experience-title {
		font-size: clamp(2.5rem, 7vw, 5rem);
	}

	.box-experience-txt {
		width: 65%;
	}

	.a-propos h2 {
		font-size: clamp(5rem, 9vw, 16rem);
	}

	.site-wrapper-title {
		width: 100%;
	}

	.landing-title {
		font-size: clamp(5rem, 19.5vw, 41rem);
	}
}

@media (max-width: 850px) {
	.box-experience-txt {
		width: 100%;
		padding: 0;
	}

	.box-experience-img {
		width: 100%;
		order: 2;
	}

	.box-experience-img img {
		min-width: unset;
		width: 100%;
		height: 50vw;
		object-fit: cover;
	}

	.box-experience-img::before,
	.box-experience-img::after {
		height: 0;
	}

	.landing-2nd-row {
		grid-template-columns: auto;
	}
}

/*************************Page:Projets récents*************************/

.site-wrapper-projet {
	max-width: 1800px;
	margin: 0 auto;
	padding: 20px;
}

.mes-projets-recents {
	position: relative;
}

.mes-projets-recents h2 {
	font-size: clamp(5rem, 10vw, 12rem);
	line-height: 0.8;
	margin: 0;
	z-index: 2;
	padding-bottom: 80px;
}

.box-projet {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 5rem;
}

.box-projet img {
	width: 100%;
}

.box-projet-txt {
	padding-top: 10px;
	max-width: 430px;
}

.contact {
	position: relative;
}

/* MOBILE */
@media (max-width: 850px) {
	.box-projet {
		grid-template-columns: 1fr;
	}

	.box-projet-txt {
		width: 100%;
	}

}

/*************************Page:Contact*************************/

.contact-box {
	max-width: 1600px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10rem;
	align-items: center;
	padding: 20px;
}

.contact-box h2 {
	font-size: clamp(5rem, 10vw, 12rem);
	line-height: 0.8;
	margin: 0;
}

.contact-txt {
	text-transform: uppercase;
}

.contact img {
	width: 100%;
	padding-top: 50px;
	height: 300px;
	object-fit: cover;
}

/* TABLETTE */
@media (max-width: 1024px) {
	.contact-box {
		gap: 5rem;
	}
}

/* MOBILE */
@media (max-width: 850px) {
	.contact-box {
		grid-template-columns: 1fr;
		gap: 3rem;
	}
}