/*
Theme Name: A-GO-RA
Author: Gaël Gouault 
Author URI: https://studiodesformes.net/
Description: Thème original pour Atelier Godet Rabecq Architecte
Version: 1.0
Scan: https://wave.webaim.org | https://accessibe.com
*/

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


/*--- Root ---*/

:root {
	--color: #000;
	--color-grey: #aaa;
	--bkgrd: #fff;
	--line-height: 1.2;
	--font-reg: 'Abordage-Regular';
	--font-big: 5em;
	--padding: 3em;
}


/*-- Typography ---*/

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


/*--- Normalize ---*/

html {
	font-family: var(--font-reg), 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-reg), sans-serif;
	font-size: 16px;
	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: var(--font-big);
	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;
	text-transform: lowercase;
	cursor: none;
}


hr {
	background: var(--color);
	border: 0;
	height: 1px;
	margin: 0 0 1em;
}

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

.hidden {
	display: none;
	visibility: hidden;
}

.home .visit:not(.first-visit) {
	animation: visit 1.5s forwards;
}

.home .visit.first-visit {
	animation: firstVisit 4s forwards;
}

@keyframes visit {
	0%, 25% { opacity: 0; }
	100% { opacity: 1; }
}

@keyframes firstVisit {
	from, to { opacity: 0; }
}


/*--- Links ---*/

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

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


/*--- Header ---*/

#masthead {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 8em;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 var(--padding);
	color: var(--color);
	background: var(--bkgrd);
	z-index: 9;
}

#masthead .site-title p,
#masthead .view-list a {
	font-size: var(--font-big);
	margin: 0;
}

#site-navigation .menu {
	display: flex;
	color: var(--color-grey);
}

#site-navigation .menu li {
	font-size: var(--font-big);
	list-style: none;
}

#site-navigation .menu li a {
	color: var(--color-grey);
}

#site-navigation .menu li.current-menu-item a,
#site-navigation .menu li.current-page-ancestor a {
	color: var(--color);
}

#site-navigation .menu li.current-menu-item a:hover,
#site-navigation .menu li.current-page-ancestor a:hover {
	color: var(--color-grey);
}


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

.content-area {
	width: 100%;
	min-height: calc(100vh - 8em);
	padding-top: 11em;
}

.site-content {
    -webkit-transition: opacity .3s ease-in-out;
    -ms-transition: opacity .3s ease-in-out;
    -o-transition: opacity .3s ease-in-out;
    transition: opacity .3s ease-in-out;
}

.slide-out .site-content {
    opacity: 0;
}


/*--- Grid content ---*/

.content-grid {
	width: 100%;
	height: auto;
	display: flex;
	flex-wrap: wrap;
	animation: fade 1s forwards;
}

@keyframes fade {
	0%, 50% { opacity: 0; }
	100% { opacity: 1; }
}

.content-grid .grid {
	padding: 3em var(--padding);
	width: 25%;
}

.grid .entry-content {
	position: relative;
	width: 100%;
	height: 0;
	padding-bottom: 56.25%;
	overflow: hidden;
}

.grid .entry-content .entry-title {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.grid .entry-content .entry-title > a > * {
	font-size: 2em;
	margin: 0;
}

.grid .entry-content .entry-title > a {
	color: var(--color);
}

.grid .entry-content .thumb {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 1;
	transition: opacity .3s;
	z-index: 1;
}

.grid .entry-content::before,
.grid .entry-content::after {
	position: absolute;
	content: "";
	left: 0;
	width: 100%;
	height: 2px;
	background: var(--color);
}

.grid .entry-content::before {
	top: 0;
}

.grid .entry-content::after {
	bottom: 0;
}

.grid .entry-content .thumb img {
	position: absolute;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.grid > div:hover .entry-content .thumb {
	opacity: 0;
}


/*--- List content ---*/

.content-list {
	width: 100%;
	height: auto;
	display: flex;
	flex-wrap: wrap;
	padding: 3em 0;
}

.content-list .list {
	width: 100%;
	padding: 0 var(--padding);
}

.list ul {
	display: flex;
	flex-wrap: wrap;
	margin-bottom: .5em;
}

.list ul li {
	position: relative;
	font-size: 2em;
	color: var(--color);
	list-style-type: none;
	width: 20%;
	padding: 0 1.5rem;
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
	transition: color .3s;
}

.list ul li:first-child {
	padding-left: 0;
}

.list ul li:last-child {
	text-align: right;
	padding-right: 0;
}

.list ul li > span {
	position: relative;
}

.list ul li > h2 {
	position: relative;
	font-size: 1em;
	display: initial;
}

.list ul li > h2::before,
.list ul li > span::before {
	position: absolute;
	left: -1.5rem;
	top: 0;
	display: inline-block;
	content: "";
	width: calc(100% + 3rem);
	height: 100%;
	background: var(--bkgrd);
	z-index: -1;
}

.list ul li::after {
	position: absolute;
	left: 0;
	top: 0.525em;
	display: inline-block;
	content: "";
	width: 100%;
	height: 0.085em;
	background: var(--color);
	transition: background .3s;
	z-index: -2;
}

.list:hover ul li {
	color: var(--color-grey);
}

.list:hover ul li::after {
	background: var(--color-grey);
}


/*--- Filter ---*/

#filters {
	position: fixed;
	top: 8em;
	left: 0;
	background: var(--bkgrd);
	z-index: 8;
}

.filter-nav,
#filters .menu {
	width: 100%;
	height: auto;
	padding: 0.5em var(--padding);
	display: flex;
	flex-wrap: wrap;
}

#filters .menu {
	padding: 0;
}

.filter-nav .button {
	font-size: 2em;
	padding: 0;
	border: 0;
	border-bottom: 2px solid transparent;
	margin-right: 0.66em;
	background: transparent;
	transition: border-color .3s;
}

#filters .menu .menu-item {
	font-size: 2em;
	list-style-type: none;
	padding: 0;
	margin-right: 0.66em;
}

#filters .menu .menu-item a {
	color: var(--color);
	border-bottom: 2px solid transparent;
	transition: border-color .3s;
}

.filter-nav .button:not(.hover):hover,
.filter-nav .button.is-checked,
#filters .menu .menu-item a:hover,
#filters .menu .current-menu-item a {
	border-bottom-color: currentColor;
}

.filter-nav .button:not(.button:last-child)::after,
#filters .menu .menu-item:not(.menu-item:last-child)::after {
	position: absolute;
	content: "–";
}

.grid, 
.list {
	opacity: 1;
	transition: opacity .6s ease;
}

.grid.dimmed, 
.list.dimmed {
	opacity: 0.2;
	filter: grayscale(1);
	pointer-events: none;
}


/*--- Single ---*/

#masthead.is-single {
	display: none;
}

article.single .entry-content {
	position: fixed;
	top: 8em;
	width: 100%;
	height: calc(100vh - 8em);
	overflow: hidden;
}

article.single .entry-header {
	position: relative;
	width: 100%;
	height: 8em;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 var(--padding);
	color: var(--color);
}

article.single .entry-title {
	margin-right: 2em;
}

article.single .entry-title p {
	font-size: var(--font-big);
}

article.single .under-title {
	display: flex;
}

article.single .under-title h1,
article.single .under-title h2 {
	padding-right: 1em;
}

article.single .under-title h1,
article.single .under-title h2,
article.single .number p {
	font-size: 2em;
}

article.single .number p {
	white-space: nowrap;
}

/*article.single .under-title h2:before {
	content: ", ";
}*/

article .slider {
	list-style: none;
	margin: 0;
	padding: 0;
}

article .slider .item {
	width: 100%;
	height: calc(100vh - 8em);
	padding: 0 var(--padding) 3em var(--padding);

	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

article .slider .item img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	width: auto;
	height: auto;
	display: block;
	margin: 0 auto;
}

article .slider-content {
	width: 100%;
	height: 100%;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0 6em;
	padding-top: .5em;
	overflow-y: auto;
	overflow-x: hidden;
}

article .slider-text p {
	position: relative;
	font-size: 2em;
}

article .slider-text p:first-child {
	margin-top: 0;
}

article .slider-list li {
	position: relative;
	font-size: 2em;
	list-style: none;

	display: flex;
	justify-content: space-between;
}

article .slider-list li > span {
	position: relative;
}

article .slider-list li > span.value {
	text-align: right;
	max-width: 65%;
}

article .slider-list li > span::before {
	position: absolute;
	left: -1.5rem;
	top: 0;
	display: inline-block;
	content: "";
	width: calc(100% + 3rem);
	height: 100%;
	background: var(--bkgrd);
	z-index: -1;
}

article .slider-list li::after {
	position: absolute;
	left: 0;
	top: 0.525em;
	display: inline-block;
	content: "";
	width: 100%;
	height: 0.085em;
	background: var(--color);
	z-index: -2;
}


/*--- Page ---*/

article.page {
	padding: 1em var(--padding);
	padding-bottom: 6em;
}

article.page .entry-header {
	width: 78em;
	max-width: 100%;
	margin: 0 auto;
}

article.page .entry-header p {
	font-family: var(--font-reg);
	font-size: var(--font-big);
	text-align: center;
	color: var(--color);
}

/*article.page .entry-header p::before {
	content: "«";
	margin-right: .125em;
}

article.page .entry-header p::after {
	content: "»";
	margin-left: .125em;
}*/

article.page .col-2 {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0 6em;
}

article.page .column {
	position: relative;
	margin-bottom: 3em;
}

article.page .column * {
	font-size: 2rem;
}

article.page .column-wysiwyg h2 {
	margin-top: 3em;
}

article.page .column p {
	/*text-transform: none;*/
	margin-left: 3rem;
}

article.page .column p.title-list {
	margin-bottom: 0;
}

article.page .column p.title-list span.toggle-btn {
	color: var(--color-grey);
}

article.page .column a:not(.unlink) {
	border-bottom: 2px solid currentColor;
	transition: color .3s, border-color .3s;
}

/*article.page .column a[target=_blank]::after {
	content: "";
}*/

article.page .column ul {
	display: none;
	margin: 0 2.5em;
	margin-left: 1.5em;
}

article.page .column ul li {
	list-style-type: "– ";
	margin-left: 1em;
}

/*article.page .column-txt div {
	margin-bottom: 2em;
}*/

/*article.page .column-img img {
	position: absolute;
	width: 100%;
	height: auto;
	z-index: 1;
	opacity: 0;
	transition: opacity .3s;
}*/

article.page .column-img:not(.full) {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0 6em;
}

article.page .column-img .thumb {
	grid-column: 2;
}

article.page .column-img:nth-of-type(4n) .thumb {
	grid-column: 1;
}

article.page .column-img .thumb {
	position: relative;
	width: 100%;
	height: 0;
	margin-top: 2.33em;
	padding-bottom: 56.25%;
	overflow: hidden;
}

article.page .column-img img {
	position: absolute;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

article.page .column-img:last-child img  {
	bottom: 0;
}

article.page .column:nth-child(2) img {
	opacity: 1;
}

article.page .entry-content.col-1 {
	width: 78em;
	max-width: 100%;
	margin: 0 auto;
	padding: 0 var(--padding);
	text-align: center;
	margin-bottom: 6em;
}

article.page .entry-content.col-1 h2 {
	font-size: var(--font-big);
}

article.page .entry-content.col-1 img {
	width: 100%;
	height: auto;
	margin-bottom: 3em;
}

article.page .entry-content.col-1 p {
	font-size: 2em;
}

article.page .logo-oa {
	width: 8em;
	max-width: 100%;
	height: auto;
	margin: 1.5em;
}


/*--- Not Found ---*/

.not-found .entry-header {
	text-align: center;
}

.not-found .entry-content p {
	font-size: 2em;
}

/*--- Site map ---*/

.sitemap .entry-content h2 {
	font-weight: bold;
}

.sitemap .entry-content ul {
	margin-top: 0;
	margin-bottom: 2rem;
}

.sitemap .entry-content ul > ul {
	padding-left: 2rem;
}

.sitemap .entry-content li {
	font-size: 1.6rem;
	line-height: 1.6;
}

.sitemap .entry-content > ul li:before {
	content: none;
	text-underline-position: under;
}

.sitemap .entry-content li a {
	text-underline-position: under;
}


/*--- Page ---*/

#footer {
	padding: 3em var(--padding);
}

.footer-navigation .menu {
	display: flex;
	flex-wrap: wrap;
}

.footer-navigation .menu li {
	font-size: var(--font-big);
	list-style: none;
	margin-right: 0.66em;
}

.footer-navigation .menu li:not(.menu li:last-child)::after {
	position: absolute;
	content: "–";
}

.footer-contact .socials {
	display: flex;
	flex-wrap: wrap;
}

.footer-contact .socials li:not(.socials li:last-child)::after {
	position: absolute;
	content: "–";
}

.footer-contact .socials li {
	margin-right: 0.66em;
}

.footer-contact ul li {
	font-size: 2em;
	list-style: none;
}



/*--- Others ---*/

#cursor {
	position: fixed;
	top: -0.75em;
	left: -0.75em;
	width: 0;
	height: 0;
	border-radius: 50%;
	background: var(--color);
	mix-blend-mode: multiply;
	pointer-events: none;
	will-change: transform;
	opacity: 0;
	transition: width .3s, height .3s, opacity .3s;
	z-index: 9999;
}

#cursor.visible {
	width: 1.5em;
	height: 1.5em;
	opacity: 1;
}

.__admin {
	position: fixed;
	right: var(--padding);
	bottom: 2em;
	z-index: 7;
}

.__admin a {
	font-size: var(--font-big);
}

.fish p {
	font-size: var(--font-big);
	margin: 1.5em 0 .5em 0;
}

.mapbox {
	position: relative;
	width: 100%;
	height: 0;
	padding-bottom: 56.25%;
	overflow: hidden;
}

.mapbox #acf-map {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.mapbox #acf-map * {
	font-size: 1rem !important;
}

.mapbox #acf-map a {
	border-bottom: none !important;
}

.mapboxgl-ctrl-bottom-left {
    display: none !important;
}



/*--- Viewport ---*/

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

@viewport {
	width: device-width;
}


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

@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: 56.25%;
	}
	.content-grid .grid {
		width: 50%;
	}
	article.page .col-2 {
		display: block;
	}
	article.page .entry-content.col-1 {
		padding: 0;
	}
	article.page .column-img {
		margin-bottom: 6em;
	}
	article .slider-content {
		display: block;
	}
}

@media screen and (max-width: 782px) {
	.site-title .step span,
	.menu-item .step span {
		display: none !important;
	}
	.list ul {
		margin-bottom: 1.5em;
	}
	.list ul li {
		width: 100%;
		padding: 0;
	}
	article .slider .flickity-button {
		display: none;
	}
	article.page .column-img:not(.full) {
		display: block;
	}
	article.page .column-img .thumb {
		margin-top: 0;
	}
	:root {
		--font-big: 3.6em;
		--padding: 2em;
	}
}

@media screen and (max-width: 600px) {
	html { 
		font-size: 50%;
	}
	.content-area {
		min-height: auto;
	}
	.content-grid .grid {
		width: 100%;
		padding: 1.5em var(--padding);
	}
	article.single {
		position: relative;
		padding-top: 0 !important;
	}
	article.single .entry-header {
		flex-wrap: wrap;
		height: auto;
		gap: 0 1.5em;
		margin-bottom: 3em;
	}
	article.single .entry-title p {
		margin: .5em 0;
	}
	article.single .under-title {
		display: block;
		width: 100%;
		order: 3;
	}
	article.single .under-title h2 {
		display: inline;
	}
	article.single .entry-content {
		position: relative;
		top: 0;
		height: auto;
	}
	.flickity-viewport {
	  transition: height .3s;
	}
	article .slider .item {
		width: 100%;
		height: auto;
		align-items: start;
	}
	article .slider .item img {
		max-width: 100%;
		max-height: auto;
		object-fit: none;
		width: 100%;
		height: auto;
	}
	article .slider-content {
		width: 100%;
		height: auto;
	}
	article.page {
		padding-bottom: 3em;
	}
	article.page .column-img {
		display: block;
	}
	article.page .column p {
		margin-left: 0;
	}
	article.page .logo-oa {
		margin: 1.5em 0;
	}
	:root {
		--padding: 1.5em;
	}
}

@media (hover: none) and (pointer: coarse) {
    #cursor {
        display: none !important;
    }
    #site-navigation .menu li.menu-item a:hover {
    	color: var(--color);
    }
}
