/*
Theme Name: Mazzi
Author: Studio des formes / Gaël Gouault 
Author URI: https://studiodesformes.net/
Description: …
Version: 1.0.1
Scan: https://wave.webaim.org | https://accessibe.com
*/

   /*/°\
  !& & (@
 ,-\-- /--,
! _!°°° !_ !
!_/!-__-!25/
  /°./\.°\
/===!  !==*/


:root {
	--color: #000;
	--color-grey: #aaa;
	--bkgrd: #fff;
	--border-width: 0;
	--line-height: 1.1;

	--font-reg: 'MMSign-Regular';
	--font-bold: 'MMSign-Bold';
}


/*--- Typography ---*/

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

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

/*--- Normalize ---*/

html {
	font-family: sans-serif;
	font-size: 62.5%;
	-webkit-text-size-adjust: 100%;
	-ms-text-size-adjust: 100%;
}

body {
	margin: 0;
	-webkit-tap-highlight-color: rgba(0,0,0,0);
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
main,
menu,
nav,
section,
summary {
	display: block;
}

audio,
video {
	display: inline-block;
	vertical-align: baseline;
}

sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sup {
	top: -0.5em;
}

sub {
	bottom: -0.25em;
}

img,
iframe,
object {
	border: 0;
}

hr {
	-webkit-box-sizing: content-box;
	-moz-box-sizing: content-box;
	box-sizing: content-box;
}

body,
button,
input,
select,
textarea {
	font-family: var(--font-bold);
	font-size: 1rem;
	color: var(--color);
	line-height: var(--line-height);
	-webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

::placeholder {
	color: var(--color);
	opacity: 1;
}

:-ms-input-placeholder {
	color: var(--color);
}

::-ms-input-placeholder {
	color: var(--color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
	font-size: 1.6em;
	font-weight: normal;
	margin: 0;
}

b,
strong {
	font-weight: normal;
}

em,
i {
	font-style: normal;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
	content: "";
}


/*--- Elements ---*/

*,
*:before,
*:after {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
	-moz-font-smoothing: antialiased;
	-ms-font-smoothing: antialiased;
	-o-font-smoothing: antialiased;
	font-smoothing: antialiased;
	font-feature-settings: 'ss01';
}

ul,
ol {
	margin: 0;
	padding: 0;
}


/*--- Links ---*/

a {
	color: var(--color);
	text-decoration: none;
	transition: color .3s;
}

a:hover,
a:active {
	color: var(--color-grey);
}

.hidden {
	display: none;
}


/*--- Header ---*/

#masthead,
.error404 .entry-header {
	position: relative;
	width: 100%;
	height: calc(50vh + 5em);
	display: flex;
	flex-direction: column;
	justify-content: end;
	padding: 0 1em;
	color: var(--color);
	border-bottom: var(--border-width) solid #fff;
	z-index: 9;
}

.animate-home #masthead .site-title span:nth-of-type(1) {
	animation: mazzi 2s forwards;
}

.animate-home #masthead .site-title span:nth-of-type(2) {
	animation: archi 2s forwards;
}

.animate-home #site-navigation,
.animate-home #content {
	animation: project 2s forwards;
}

@keyframes mazzi {
	0%, 25% { transform: translateY(calc(50vh - 5rem)); }
	50%, 100% { transform: translateY(0); }
}

@keyframes archi {
	0%, 50% { transform: translateY(calc(50vh - 5rem)); }
	75%, 100% { transform: translateY(0); }
}

@keyframes project {
	0%, 75% { opacity: 0; }
	100% { opacity: 1; }
}

/* mobile */
@keyframes mazzi-mobile {
	0%, 25% { transform: translateY(calc(35vh - 5rem)); }
	50%, 100% { transform: translateY(0); }
}
@keyframes archi-mobile {
	0%, 50% { transform: translateY(calc(35vh - 5rem)); }
	75%, 100% { transform: translateY(0); }
}
/* mobile */

.single #masthead,
.error404 #masthead {
	display: none;
}

.site-title,
.error-404 .entry-title {
	width: 100%;
	height: clamp(3em, 8vw, 10.5em);
}

.site-title h1,
.error-404 .entry-title h1 {
	color: var(--color) !important;
	display: flex;
	justify-content: space-between;
	cursor: default;
}

.site-title span,
.error-404 .entry-title span {
	font-size: clamp(3.5rem, 10vw, 13rem);
	line-height: 1;
	letter-spacing: -0.035em;
}

.block-header.is-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0 1em;
  z-index: 999;
}


/*--- Menu ---*/

#site-navigation .menu,
.error-404 .entry-content {
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	padding: 0 0.5em;
	column-gap: 0.5em;
}

#site-navigation .menu li,
.error-404 .entry-content a {
	font-size: 1.6em;
	list-style-type: none;
}

#site-navigation .menu li:not(:last-child):after {
	content: ",";
}


/*--- Main Content ---*/

.site-content {
	width: 100%;
	background: var(--bkgrd);
}

.content-area {
	width: 100%;
	background: var(--bkgrd);
}

.wp-singular {
  -webkit-transition: -webkit-transform .3s, opacity .3s;
  -ms-transition: -o-transform .3s, opacity .3s;
  -o-transition: -o-transform .3s, opacity .3s;
  transition: transform .3s, opacity .3s;
}

.slide-out .wp-singular {
  -webkit-transform: translate3d(0, 5em, 0);
  -ms-transform: translate3d(0, 5em, 0);
  -o-transform: translate3d(0, 5em, 0);
  transform: translate3d(0, 5em, 0);
  opacity: 0;
}

section.grid {
	margin-top: 3em;
}

section.grid-list {
	margin: 15em 0;
}

section.grid-profil {
	margin: 15em 0;
}

section.grid-contact {
	margin: 15em 0;
}


/*--- Grid ---*/

.grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6em 1.5em;
  padding: 0 1.5em;
}

.grid__item {
  position: relative;

  grid-column: var(--col-start) / var(--col-end);
  opacity: 0;
	transition: opacity .3s;
}

.grid__item .entry-image img {
	width: 100%;
	height: auto;
}

.grid__item .entry-caption {
	margin-top: -0.5em;
}

.grid__item .entry-caption a {
	color: var(--color);
	display: grid;
	grid-template-columns: 1fr auto;
	column-gap: 1.5em;
}

.grid__item .entry-caption h2 {
	opacity: 0;
	transition: opacity .6s;
}

.grid__item .entry-caption span {
	font-size: 1.6em;
}

/*.grid__item:hover .entry-caption h2 {
	opacity: 1;
}*/


/*--- GridList ---*/

.grid-list {
  padding: 15em 1.5em;
}

.grid-list article a:visited {
  color: var(--color-grey);
}

.grid-list .list__item {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0 1.5em;
}

.grid-list .list__item li {
  font-size: 1.6em;
  list-style-type: none;
}

.grid-list .list__item li.name {
  grid-column: span 3;
}

.grid-list .list__item li.localisation,
.grid-list .list__item li.secteur,
.grid-list .list__item li.fonction {
  grid-column: span 2;
}

.grid-list .list__item li.calendrier {
  text-align: right;
}


/*--- GridProfil ---*/

.grid-profil {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	column-gap: 1.5em;
	padding: 15em 1.5em;
}

.grid-profil .entry-profil h3 {
	margin: 1em 0;
}

.grid-profil .item-image img {
	width: 20rem;
	height: auto;
	margin-top: -1rem;
}

.grid-profil .entry-content {
	font-size: 1.6em;
}

.grid-profil .entry-content p {
	margin: 0.5em 0;
}

.grid-profil .entry-content p:first-child {
	margin-top: 1em;
}


/*--- GridProfil ---*/

.grid-contact {
	padding: 15em 1.5em;
}

.grid-contact .entry-content {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	column-gap: 1.5em;
}

.grid-contact .entry-content ul:nth-child(1),
.grid-contact .entry-content ul:nth-child(3) {
	grid-column: span 2;
}

.grid-contact .entry-content ul li {
	font-size: 1.6em;
	list-style-type: none;
}


/*--- Single ---*/

.single .post {
	position: absolute;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: 100%;
	height: 100vh;
}

.single .entry-content {
	font-size: 1.6em;
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	column-gap: 1.5rem;
	padding: 1rem 1.5rem;
}

.single .list {
	grid-column: span 5;
}

.single .list ul {
	display: flex;
}

.single .list li {
	list-style-type: none;
}

.single .list li.label {
	min-width: 10em;
}

.single .content {
	grid-column: span 6;
}

.single .content p {
	margin: 0;
}

.single .back {
	text-align: right;
}


/*--- Image ---*/

.entry-image .item-image {
	margin: 0 0.75em;
}

.entry-image .item-image:first-child {
	padding-left: 1.5em;
}

.entry-image .item-image:last-child {
	padding-right: 1.5em;
}

.entry-image .item-image figure img {
	width: auto;
	height: 40em;
}


.popup {
  position: fixed;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bkgrd);
  z-index: 9999;
}

.popup .nav {
	display: flex;
	justify-content: space-between;
	padding: 1em 1.5em;
}

.popup .buttons button {
	font-size: 1.6em;
	color: var(--color);
	padding: 0;
	margin-right: 1em;
	background: none;
	border: none;
	transition: color .3s;
	cursor: pointer;
}

.popup .back span {
	font-size: 1.6em;
	color: var(--color);
	transition: color .3s;
	cursor: pointer;
}

.popup .back span:hover {
	font-size: 1.6em;
	color: var(--color-grey);
}

.popup .popup-content {
	position: absolute;
	top: 2.5em; 
  left: 0;
  width: 100%;
  height: calc(100% - 2.5em);
	display: flex;
  align-items: center;
  justify-content: center;
  padding: 1em 8em;
  pointer-events: none;
}

.popup .popup-content img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}


/*--- Page ---*/

#footer {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	column-gap: 1.5em;
	padding: 1em 1.5em;
}

#footer ul li {
	font-size: 1.6em;
	color: var(--color-grey);
	list-style-type: none;
}

#footer ul li a {
	color: var(--color-grey);
}


/*--- Others ---*/

.__admin {
	position: fixed;
	bottom: 1.25em;
	right: 1.5em;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 4.5em;
	height: 4.5em;
	border: 2px solid var(--color);
	border-radius: 50%;
	background: rgba(255, 255, 255, .75);
	z-index: 9999;
}

.__admin a {
	font-size: 2.5em;
	transform: translate(0, 0.25rem);
}


/*--- Media Queries ---*/

@-ms-viewport {
	width: device-width;
}

@viewport {
	width: device-width;
}


/*--- 10.1 - >= 710px ---*/

@media screen and (min-width: 1600px) {
	html {
		font-size: 68.8%;
	}
}

@media screen and (min-width: 1920px) {
	html {
		font-size: 75.0%;
	}
}

@media screen and (max-width: 960px) {
	html { 
		font-size: 58%;
	}
	.site-title,
	.error-404 .entry-title {
		padding: 0 0.25em;
	}
	.grid-list .list__item {
	  grid-template-columns: repeat(6, 1fr);
	}
	.grid-list .list__item {
	  margin-bottom: 1em;
	}
	.grid-list .list__item li.name,
	.grid-list .list__item li.localisation,
	.grid-list .list__item li.statut {
	  grid-column: span 2;
	}
	.grid-list .list__item li.secteur {
		grid-column: span 1;
	}
	.grid-list .list__item li.fonction {
		grid-column-start: 2;
		grid-column-end: 4;
	}
	.grid-list .list__item li.secteur {
		text-align: right;
	}
}

@media screen and (max-width: 782px) {
	#masthead, 
	.error404 .entry-header {
		height: calc(35vh + 5em);
	}
	.animate-home #masthead .site-title span:nth-of-type(1) {
		animation: mazzi-mobile 2s forwards;
	}
	.animate-home #masthead .site-title span:nth-of-type(2) {
		animation: archi-mobile 2s forwards;
	}
	section.grid-list,
	section.grid-profil,
	section.grid-contact {
		padding: 1.5em;
	}
	section.grid-contact {
		margin-bottom: 64vh;
	}
	.grid {
		grid-template-columns: repeat(3, 1fr);
	}
	.grid__item:nth-child(odd) {
	  grid-column: 1 / 3 !important;
	}
	.grid__item:nth-child(even) {
	  grid-column: 2 / 4 !important;
	}
	.grid-contact .entry-content,
	#footer {
		grid-template-columns: repeat(2, 1fr);
	}
	.grid-contact .entry-content ul:nth-child(1),
	.grid-contact .entry-content ul:nth-child(3) {
		grid-column: span 1;
	}
	.single .entry-content {
		grid-template-columns: repeat(3, 1fr);
		gap: 1.5em 0;
	}
	.single .list {
		grid-column: span 2;
	}
	.single .content {
		grid-row: 2;
		grid-column: 1 / -1;
	}
}

@media screen and (max-width: 600px) {
	.grid-profil,
	.grid-contact .entry-content,
	#footer {
		grid-template-columns: 1fr;
	}
	.grid__item .entry-caption h3 {
		opacity: 1;
	}
	.grid-list .list__item {
		margin-bottom: 0;
	}
	.grid-list .list__item li.name {
		grid-column: span 5;
	}
	.grid-list .list__item li:nth-child(n+3) {
		display: none;
	}
	.single .entry-content {
		grid-template-columns: 1fr;
	}
	.single .list {
		grid-row: 2;
	}
	.single .list li.label {
		width: 8em;
	}
	.single .list li.value {
		width: calc(100% - 8em);
	}
	.single .content {
		grid-row: 3;
		margin-bottom: 1em;
	}
	.grid-profil .entry-content p:first-child {
		margin-top: 0;
	}
	.grid-contact .entry-content ul.social {
		grid-column: 1 / -1;
  	grid-row: 3;
  	margin-top: 0.75em;
	}
	.popup .popup-content {
	  padding: 3.5em 1.5em 1.5em 1.5em;
	}
}

@media (hover: none) and (pointer: coarse) {
	.grid__item .entry-caption h3 {
		opacity: 1;
	}
}
