/*!
Theme Name: hort
Theme URI: https://hort-architectes.fr/
Author: Accent i pilota
Author URI: http://accentipilota.com
Description: Description
Version: 1.0.1
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: hort
Tags: architecture

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

hort is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

*/

:root {
	font-size: 18px;
	--verd: #015A35;
	--blanc: #f6f6f6;
	--vermell: #A6373A;
	--bwidth: 2px;
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
	overflow-x: hidden;
	cursor: none;
}

body {
	background: var(--verd);
	color: var(--blanc);
	font-size: 1rem;
	line-height: 1.4em;
	font-family: 'Amiamie', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body.project-open {
	overflow-y: hidden;
}

.mouse {
	width: 2rem;
	height: 2rem;
	position: fixed;
	z-index: 999;
	border-radius: 100%;
	background-color: var(--vermell);
	background-repeat: no-repeat;
	background-position: center center;
	background-size: contain;
	pointer-events: none;
	border: 0 solid transparent;
	transition: width .3s ease, height .3s ease, background-color .2s ease, border .2s ease;
}

.mouse.mouse-hover {
	transform: scale(10);
	background-color: transparent;
	background-size: 100%;
	border-radius: 0;
}

.mouse.hover {
	/*transform: scale(1.2);
	border: 4px solid var(--vermell);
	background-color: transparent;
	transition: width .3s ease, height .3s ease, background-color .2s ease, border .2s ease, transform .2s ease*/
}

.mouse.main-prev, .mouse.main-next {
	background-color: transparent;
}
.mouse.main-prev {
	background-image: url('img/main.png');
	transform: rotateY(180deg);
}
.mouse.main-next {
	background-image: url('img/main.png');
}

header, main, footer {
	position: relative;
	max-widht: 64rem;
	margin: 0 auto;
	padding: 0 3.5rem;
}

section {
	position: relative;
}


/* Header */

header {
	padding-top: 2rem;
	height: 100vh;
}

h1, h2, h3, h4, h5 {
	font-family: 'Frames Part One';
}

h1 {
	font-size: 12rem;
	line-height: 1em;
	display: flex;
	justify-content: space-between;
}

h1 span {
	position: relative;
}

h1 span.o span {
	display: block;
	position: relative;
	margin: 0 auto;
	top: -.35em;
	width: 85%;
	height: 1.5em;
	border: var(--bwidth) solid var(--blanc);
	border-top: 0;
	border-bottom: 0;
	transform-origin: top center;
	transform: rotate(45deg);
	/*transition: transform .3s ease-out, height .3s ease-out;*/
}

h1 span.o span::after {
	content: '';
	position: absolute;
  	display: block;
	width: 100%;
	height: 0;
	padding-bottom: 100%;
	margin: auto;
	top: auto;
	left: 0;
	right: 0;
	bottom: -.6em;
	border: var(--bwidth) solid var(--blanc);
	border-radius: 100%;
}

h1 span.r span:first-child {
	display: block;
	position: absolute;
  margin: 0 auto;
  top: .40em;
  left: .11em;
	height: 1em;
	transform-origin: top left;
	transform: rotate(45deg);
	/*transition: transform .3s ease-out, height .3s ease-out;*/
}
h1 span.r span:first-child::after {
	content: '';
	width: 0;
	height: 100%;
	display: block;
	border: 0;
	border-left: var(--bwidth) solid var(--blanc);
}

h1 span.r span:last-child {
	position: absolute;
  display: block;
	top: .8em;
  right: .13em;
  height: .45em;
	transform-origin: top left;
	transform: rotate(45deg);
	/*transition: transform .3s ease-out, height .3s ease-out;*/
}
h1 span.r span:last-child::after {
	content: '';
	width: 0;
	height: 100%;
	display: block;
	border: 0;
	border-left: var(--bwidth) solid var(--blanc);
}

/*h1 span.t span {
	display: block;
	position: relative;
	margin: 0 auto;
	top: -.35em;
	width: 85%;
	height: 14rem;
	border: 2px solid var(--blanc);
	transform-origin: top center;
	transform: rotate(45deg);
	transition: transform .3s ease-out, height .3s ease-out;
}*/

h1 span.t span:first-child{
	position: absolute;
  display: block;
	width: 0;
	height: .8em;
	top: .45em;
  left: .15em;
	border-left: var(--bwidth) solid var(--blanc);
	transform-origin: top left;
	transform: rotate(45deg);
	/*transition: transform .3s ease-out, height .3s ease-out;*/
}
h1 span.t span:last-child{
	position: absolute;
  display: block;
	width: 0;
	height: 1.1em;
	top: .73em;
  right: .048em;
	border-right: var(--bwidth) solid var(--blanc);
	transform-origin: top left;
	transform: rotate(45deg);
	/*transition: transform .3s ease-out, height .3s ease-out;*/
}
h1 span.t span:last-child::before {
	content: '';
	display: block;
	position: absolute;
	background-image: url('data:image/svg+xml,<svg width="83" height="39" viewBox="0 0 83 39" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.96994 0.220703C5.94338 22.1038 38.7681 50.9498 82.5344 31.056" stroke="white" stroke-width="1.98938"/></svg>');
  background-repeat: no-repeat;
  background-size: contain;
  width: 5rem;
  height: 5rem;
  bottom: -.45em;
  left: -.32em;
  transform: rotate(-45deg);
}
h1 span.t span:last-child::after {
	content: '';
	display: block;
	position: absolute;
	background-image: url('data:image/svg+xml,<svg width="83" height="39" viewBox="0 0 83 39" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.96994 0.220703C5.94338 22.1038 38.7681 50.9498 82.5344 31.056" stroke="white" stroke-width="1.98938"/></svg>');
  background-repeat: no-repeat;
  background-size: contain;
  width: 5rem;
  height: 5rem;
  bottom: -1em;
  left: -.28em;
  transform: rotate(-45deg);
}

header h2, .about h2 {
	font-weight: 300;
	font-size: 2.5rem;
	line-height: 1em;
	position: absolute;
  	right: 5rem;
  	top: 14rem;
}


/* Main */

main {
 
}

main h2 {
	font-size: 3em;
	font-size: 3rem;
	line-height: 1em;
	font-weight: 100;
}

.logo {
	font-family: 'Frames Part One';
	font-weight: 300;
	display: inline-block;
}
.logo h2 {
	letter-spacing: .5em;
}
.logo p {
	font-size: 1.2rem;
	font-weight: 500;
	text-align: right;
	margin-right: 1.3em;
}


/* Projects */

.projects {
	margin-bottom: 11rem;
}

.projects-title {
	display: flex;
	justify-content: space-between;
	margin-bottom: 2rem;
}

.projects-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, 16rem);
	gap: 2rem 1rem;
	justify-content: space-between;
}
.project {
	width: 16rem;
	text-align: center;
}
.project figure {
	width: 100%;
	height: 18rem;
	background-size: contain;
	background-position: center center;
	background-repeat: no-repeat;
	margin-bottom: 1.2rem;
}

.project h3 {
	font-size: 1.2rem;
	line-height: 1em;
	margin-bottom: 1rem;
}

.project .status {
	opacity: .5;
	font-style: italic;
}


/* Archive */

.archive {
	margin-bottom: 20rem;
}

.archive-content {
	list-style-type: none;
	padding: 0;
}

.archive-content li {
	display: flex;
	flex-flow: row nowrap;
	margin-bottom: 0rem;
	padding: .5rem 1rem;
}

.archive-content > li:first-child {
	margin-bottom: 2rem;
}

.archive-content li > div > * {
	margin-right: 1rem;
	transition: background .2s ease, color .2s ease;
	display: inline-block;
	padding: .1em .2em .05em;
	margin-left: -.2em;
}

.archive-content li:hover:not(:first-child) > div > * {
	background: var(--blanc);
	color: var(--verd);
}

.archive-content li > *:first-child {
	flex: 1 0 8%;
}

.archive-content li > *:nth-child(2) {
	flex: 2 0 30%;
}

.archive-content li > *:nth-child(3) {
	flex: 1 0 12%;
}

.archive-content li > *:nth-child(4) {
	flex: 2 0 25%;
}

.archive-content li > *:nth-child(5) {
	flex: 2 0 25%;
}

.archive-project h3 {
	font-size: 1rem;
	line-height: 1.4em;
	font-weight: 300;
	font-family: 'Amiamie', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}


/* About */

.about {
	margin-bottom: 20rem;
}

.about > div:first-child{
	margin-bottom: 15rem;
}

.about h2 {
	right: 1rem;
	top: 12rem;
}

.about-content {
	max-width: 46rem;
	margin: 0 auto;
	display: flex;
	flex-flow: row nowrap;
	justify-content: center;
	gap: 4rem;
}

.about-content > div {
	flex: 1 1 50%;
}

.about-content > div:first-child {
	margin-top: 8rem;
}

.about-content p {
	margin-bottom: 1rem;
}


/* Aside */

aside {
	width: 85%;
	max-width: 60rem;
	height: 100%;
	position: fixed;
	top: 0;
	right: -100%;
	z-index: 99;
	overflow-y: scroll;
	color: var(--verd);
	background-color: var(--blanc);
	border-left: .2rem solid var(--verd);
	transition: right .8s ease;
}

aside.open {
	right: 0;
}

aside > main {
	position: relative;
	padding-top: 2.5rem;
}

aside:not(.open) .aside-content {
	opacity: 0;
}

.loader {
	position: absolute;
	width: 100%;
	height: .3rem;
	top: 0;
	right: 0;
	opacity: 0;
	border-left: 1px solid var(--blanc);
	background-color: var(--verd);
	transition: opacity .2s ease;
}

.loading .loader {
	opacity: 1;
	animation: loading 5s forwards;
}

@keyframes loading {
	0% { width: 0 }
	50% { width: 70% }
	100% { width: 100% }
}

.cross {
	width: 3.5rem;
	height: 3.5rem;
	position: absolute;
	right: 3rem;
	border-radius: 100%;
	z-index: 99;
	opacity: 0;
	transform: rotate(-90deg);
	transition: transform .3s ease, opacity .3s ease;
}
.cross::before, .cross::after  {
	content: '';
	display: block;
	position: absolute;
	width: 100%;
	height: 3px;
	margin: auto;
	bottom:0;
	top: 0;
	background-color: var(--verd);
}
.cross::before {
	transform: rotate(45deg);
}
.cross::after {
	transform: rotate(-45deg);
}

.cross:hover {
	transform: rotate(90deg);
}
.open .cross {
	opacity: 1;
	transform: rotate(0);
	transition: transform .6s ease 1.2s, opacity .3s ease 1.2s;
}

.loading .aside-content {
	opacity: 0;
}

aside > main {
	min-height: 100%;
}

.aside-content {
	opacity: 1;
	transition: opacity .6s ease;
}

aside h2 {
	font-size: 2.5rem;
	line-height: 1em;
	font-weight: 400;
}

aside article main {
	padding: 2.5rem 0 0;
	display: flex;
	flex-flow: row wrap;
	column-gap: 1rem;
}

aside article main .half {
	flex: 1 0 calc(50% - .5rem);
}

.img-col {
	display: flex;
	flex-flow: row wrap;
	row-gap: 1rem;
}

aside article main .img-col > * {
	flex: 0 1 50%;
	padding-left: .5rem;
}

aside article main .half > *:first-child {
	flex: 1 0 100%;
}

aside article main .full {
	flex: 1 1 100%;
	padding-top: 1rem;
	display: flex;
	flex-flow: column nowrap;
	justify-content: center;
	align-items: flex-start;
	font-size: 0;
  line-height: 0;
  row-gap: .25rem;
}

aside article main .full img {
	height: auto;
}

.aside-content {
	padding-top: 3rem;
}

aside article main .half {
  flex: 1 0 calc(100%);
}

aside article main .img-col > * {
  padding-left: 0
}

aside p {
	margin-bottom: 1.5rem;
	text-align: justify;
}

aside .prev, aside .next {
	position: absolute;
	top: 0;
	width: 12rem;
	height: 100%;
	z-index: 9;
	opacity: 0;
}

aside .prev {
	left: 0;
}

aside .next {
	right: 0;
}


/* Footer */

footer {
	text-align: center;
}

footer p {
	margin-bottom: 1rem;
}

footer p:last-child {
	margin-top: 8rem;
	opacity: .5;
}


@media screen and (max-width: 375px) {
		:root {
			font-size: 14px;
			--bwidth: 1px;
		}
		html {
			overflow-x: hidden;
			cursor: pointer;
		}

		header, main, footer {
			padding: 0 .5rem;
		}
		header {
			height: auto;
			margin-bottom: 5rem;
			overflow: hidden;
		}
		.mouse {
			display: none;
		}

		h1 {
			font-size: 5rem;
		}
		h1 span.o span::after {
			padding-bottom: 88%;
			bottom: -.5em;
		}
		h1 span.t span:last-child {
		  height: 1.2em;
		}
		h1 span.t span:last-child::before {
			width: 3rem;
  		height: 3rem;
  		bottom: -.7em;
  		left: -.44em;
		}
		h1 span.t span:last-child::after {
			width: 3rem;
  		height: 3rem;
  		bottom: -1.2em;
  		left: -.45em;
		}
		header h2, .about h2 {
			font-size: 1.5rem;
  		right: .5rem;
  		top: 5rem;
  		background-color: var(--verd);
  		padding-bottom: .2em;
		}
		.about h2 {
			right: 0
		}

		.projects-title {
			display: none;
		}
		.projects-content {
			justify-content: center;
		}

		.archive {
			display: none;
		}

		.about-title {
			margin-bottom: 0 !important;
		}
		.about-content {
  		flex-flow: column nowrap;
  		gap: 0;
  		font-size: 1.2rem;
  	}
  	.about-content > div:first-child {
  		margin-top: 6rem;
  	}
  	.about {
  		margin-bottom: 11rem;
  	}

  	aside {
			width: 100%;
			border-left: 0;
		}
		.cross {
			width: 2rem;
			height: 2rem;
			top: 1.2rem;
			right: 1rem;
		}
		.cross::before, .cross::after {
			height: 1px;
		}
		aside > main {
			padding-top: 1.5rem;
		}
  	aside h2 {
  		font-size: 1.5rem;
  		margin-bottom: 1rem;
  		text-align: center;
  	}

  	.aside-content {
			padding-top: 8rem;
		}

  	.aside-content .half:first-child p:first-child {
  		text-align: center;
  		magin-bottom: 1rem;
  	}

  	.prev, .next {
  		pointer-events: none;
  	}
}
