/* 
Alexandre
Morais
22.03.24
*/

/*-------------------- Font -------------------- */


@font-face {
	font-family: 'SuisseIntl';
	src: url(assets/fonts/SuisseIntl-Regular-WebXL.woff2) format('woff2');
	font-weight: normal;
}

@font-face {
	font-family: 'SuisseIntl-bold';
	src: url(assets/fonts/SuisseIntl-Bold-WebXL.woff2) format('woff2');
	font-weight: normal;
}

@font-face {
	font-family: 'SuisseIntl-light';
	src: url(assets/fonts/SuisseIntl-light-WebXL.woff2) format('woff2');
	font-weight: normal;
}

/*-------------------- Initialisation -------------------- */

/* FULLWIDTH BLOCK */

.alignfull {
	width: 100vw;
	margin-left: calc(50% - 50vw);
}


.alignwide {
	width: calc(100% + 240px);
	position: relative;
	left: -120px;
}



.site-title,
.edit-link {
	display: none;
}

.single img {
	height: fit-content;
}

/* color */

:root {
	--primary: #F3F2F2;
	--secondary: #136B4C;
	--accent: #F4D4AE;
	--text: #0d0d0d;
}


/* divers */

html,
body,
.site {
	min-height: 100dvh;
	/* background-color: red !important; */
}

.site {
	display: grid;
	grid-template-rows: 1fr auto auto;
}

body {
	background-color: #fff;
	color: var(--text) !important;
	overflow-x: hidden;
	font-family: 'SuisseIntl', sans-serif;
	font-weight: normal;
}

::selection {
	background-color: #136b4c55;
	opacity: .5;
}

.entry-content,
.page,
figure,
footer ul,
footer li,
a {
	margin: 0;
	list-style-type: none;
	text-decoration: none;
}

.inner,
.alignfull .wp-block-cover__inner-container {
	width: 100%;
	padding: 0 15em;
	margin: 0 auto;
	/* border: solid 1px #000; */
}

.inner:not(.home .inner) {
	margin: 98px auto 0 auto;
}

textarea {
	resize: none;
}

figure {
	width: 100%;
	height: 100%;

}

figure img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
}

.post {
	margin: 0;
}

@media (min-width: 2000px) {
	.inner {
		max-width: 1400px;
		padding: 0;
	}
}

.flex {
	display: flex;
}

svg {
	pointer-events: all;
}

/* cta */

.wp-block-button__link {
	border-radius: 0;
	background-color: var(--secondary);
	font-size: 1em;
	padding: .5em 3em;
	cursor: pointer;
	margin-top: 2em;

}

.wp-block-button__link.wp-element-button:hover {
	opacity: .7;
}

#page {
	position: relative;
	overflow: hidden;
}



/* -------------------- Typographie-------------------- */



h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: 'SuisseIntl-bold', sans-serif;
	font-weight: normal;
	margin: 0;

}

h1 {
	font-size: 4em;
	text-transform: uppercase;
}

h3 {
	text-transform: uppercase;
	font-size: 2em;
	margin: 0;
}

h4 {
	margin: 0;
}

p {
	max-width: 40em;
	line-height: 20px;
	margin: 1em 0;
}

a:visited,
a {
	color: var(--primary);
	transition: all .3s;
}

a:hover {
	color: var(--primary);
}

header a:hover::after {
	display: block;
	opacity: 0;
	transition: .3s;
}


header li a:after {
	display: block;
	content: ' ';
	width: 5px;
	height: 5px;
	background-color: var(--primary);
	border-radius: 100%;
	margin: 0 auto;
	opacity: 0;
}

header li a[aria-current="page"]::after,
header li a:hover::after,
header li.current-post-ancestor a::after {
	opacity: 1;
}



header .logo a::after {
	display: none;
}

/* -------------------- .site-header-------------------- */


.logo {
	width: 80px;
}

.site-header {
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 10;
	background-color: none;
	padding: 1em 0;
	mix-blend-mode: difference;

}

.site-header.blend-mode {
	mix-blend-mode: normal;
}

.site-header .inner-fluid {
	display: flex;
	align-items: center;
}

#primary-menu {
	margin: 0 auto;
	max-width: 1800px;
	width: 50%;
	justify-content: space-between;
}

header a,
header a:visited {
	color: var(--primary);
}

/* -------------------- #primary -------------------- */

#primary .alignfull h1 {
	text-transform: uppercase;
	font-size: 6em;
	width: 11em;
	line-height: 96px;
	position: relative;
}

.inner-fluid {
	padding: 0 15px;
}

.home .wp-block-columns {
	margin-top: 10em;
	margin-bottom: 10em;
}

/* -------------------- .home -------------------- */

.home .alignfull {
	height: 100dvh;
	top: 0;
}

.home-hero h1 {
	margin: 0 !important;
	padding: 0;

}

.home-hero {
	margin-bottom: 7em;
	/* position: relative; */
	z-index: 1;
}

/* ----- .animaux-col ----- */

#animaux-col {
	position: relative;
	z-index: 2;
	padding: 0;
	background: none;
}

.activities {
	position: relative;
	z-index: 5;
}

#animaux-col .post-item {
	/* aspect-ratio: 1/1; */
	max-width: 350px;
}

#animaux-col p {
	font-size: 2em;
	bottom: 0;
	margin: 1em;
}

/*---------- animaux-post-single ---------- */

.animaux-post-single {
	display: flex;
	gap: 5em;
}

/*---------- #foot-print ---------- */

#foot-print {
	position: absolute;
	top: 50vh;
	transform: scale(.45);
	transform-origin: left top;
	left: -20%;
	z-index: 4;
	pointer-events: none;
}

.activities {
	position: relative;
}

#foot-print-2 {
	position: absolute;
	top: 150vh;
	transform: scale(1.3);
	z-index: 4;
	pointer-events: none;
}




/* ----- activites ----- */

.activities.wp-block-columns {
	gap: 0;
	position: relative;
	overflow: hidden;
	height: 60dvh;
	margin-bottom: 0;

}

.activities figure {
	height: 100%;
}

.activities img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.activities::before {
	content: ' ';
	position: absolute;
	width: 100%;
	height: 20px;
	background-image: url(assets/images/intersection.svg);
	background-repeat: no-repeat;
	background-size: cover;
	z-index: 3;

}

.activities::after {
	content: ' ';
	position: absolute;
	width: 100%;
	height: 20px;
	background-image: url(assets/images/intersection.svg);
	background-repeat: no-repeat;
	background-size: cover;
	bottom: 0;
	transform: rotateX(180deg);
}

.activities .wp-block-column {
	position: relative;
	display: flex;


}

.activities h3 {
	position: absolute;
	top: 0;
	color: var(--primary);
	margin-top: 50%;
	left: 50%;
}


/* -----  actualites .post-grid ----- */

.post-grid.alignfull {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 1em;
	height: fit-content;
	padding: 10em 0;
	background-color: var(--primary);
}

.post-item {
	position: relative;
	width: calc(100%/4 - 1em);
}

.post-item p {
	position: absolute;
	margin: 0;
	margin-left: 1em;
	color: var(--primary);
	bottom: 1em;
}

.post-item p:first-of-type {
	bottom: 2.3em;
}

p.post-title {
	text-transform: uppercase;
	font-family: 'SuisseIntl-bold';
	font-weight: normal;
}

p.post-date {
	font-family: 'SuisseIntl-light';
	font-weight: normal;
}

.post-grid .post-thumbnail {
	object-fit: cover;
	width: 100%;
	height: auto;
}

.post-grid .post-thumbnail img {
	width: 100%;
	height: auto;
}


/* -------------------- .animaux-grid-------------------- */


.animaux-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-template-rows: repeat(3, 1fr);
	grid-column-gap: 1em;
	grid-row-gap: 1em;
}

.animaux-post,
.bg {
	position: relative;
}

.bg {
	position: absolute;
	bottom: 6px;
	width: 100%;
	height: auto;
	padding: 1em;
	background: var(--text);
	background: linear-gradient(0deg, rgba(13, 13, 13, 0.50) 0%, rgba(243, 242, 242, 0) 100%);
}

.bg h4,
.bg h3 {
	color: var(--primary);
}


h4.actualite-date {
	font-family: 'SuisseIntl-light';
	font-weight: normal;

}



/*---------- animaux-single ---------- */

.single .animaux-post .bg {
	position: relative;
	background-color: transparent;
	background: none;
	padding: 1em 0;
}

.single .bg h3,
.single .bg h4 {
	color: var(--text);
}

/* -------------------- .actualites-grid-------------------- */
.actualites-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-column-gap: 1em;
	grid-row-gap: 1em;
}

.actualites-grid p {
	color: var(--text);
}

.actualites-post {
	background-color: #fff;
	padding: 1em;
}

.actualites-post.post {
	margin: 0;
}

.actualite-groupe {
	position: relative;
}

.actualite-groupe .text {
	position: absolute;
	width: 100%;
	bottom: 6px;
	background: var(--primary);
	background: linear-gradient(0deg, rgba(13, 13, 13, 0.50) 0%, rgba(243, 242, 242, 0) 100%);
	padding: 1em;
	color: var(--primary);

}


.actualites-grid a:hover,
.animaux-grid a:hover,
.post-grid a:hover {
	color: var(--text);
	opacity: .8;
}

.actualites-grid h3 {
	font-size: 24px;
}

.actualites-post-single .post-thumbnail {
	width: 50%;
}

.actualites-post-single .flex {
	gap: 5em;
}

/*-------------------- formulaires activites -------------------- */

.jquery-modal.current {
	z-index: 999999;
}

/* --------------------.site-footer-------------------- */
.site-footer {
	position: relative;
	z-index: 999;
	bottom: 0;
	width: 100%;
}

.site-footer,
.site-footer a {
	color: var(--primary);
	background-color: var(--text);
}

.site-footer a:hover {
	color: var(--secondary);
}

.site-footer .inner {
	justify-content: space-between;
}

.site-footer .box {
	width: 50%;
}

.site-footer .box:nth-child(2) {
	justify-content: space-between;
	align-items: end;
}

.site-footer .box:nth-child(2) a {
	width: 8em;
}

.site-footer .nav-footer {
	gap: 32px;
}

.site-footer ul {
	margin: 0;
	padding: 0;
}

.site-footer h1 {
	text-transform: uppercase;
	font-size: 6em;
	margin: 0;
}

.site-footer p {
	font-family: 'SuisseIntl-bold', sans-serif;
	font-weight: normal;
	text-transform: capitalize;
}

.site-footer ul:nth-child(2) p {
	color: transparent;
	pointer-events: none;
	user-select: none;
}

/*-------------------- formulaire -------------------- */

/*---------- modal ---------- */

.modal {
	border-radius: 0;
}

.modal label {
	font-family: 'SuisseIntl-bold', sans-serif;
	font-weight: normal;
}

.modal input:not(input[type="radio"]) {
	width: 100%;
	border-radius: 0;
	margin: 1em 0;
}

.modal input:focus {
	outline: 2px solid var(--secondary);
}

.modal .wpcf7-submit {
	display: none;
}

.wpa-test-msg {
	display: none;
}

/*-------------------- Phone Media Query-------------------- */
@media (max-width: 768px) {


	/*---------- Initialisation ---------- */

	/* cta */
	.wp-block-button {
		margin-top: 1em !important;
	}

	/* divers */

	body {
		font-size: 12px;
	}

	.inner,
	.alignfull .wp-block-cover__inner-container {
		padding: 0 1em;
	}

	/*---------- Burger Menu ---------- */
	#site-navigation {
		display: flex;
		justify-content: flex-end;
	}


	#primary-menu {
		padding: 2em 0 !important;
		margin: 0;
		padding: 0;
		height: 100dvh;
		width: 100vw;
		position: absolute;
		top: 0;
		left: 100%;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		align-items: center;
		isolation: auto !important;
		background-color: var(--secondary);
	}


	.menu-toggle {
		position: relative;
		z-index: 999;
		color: transparent;
		width: 30px;
		height: 4px;
		padding: 0;
		margin-right: 1em;
		background-color: var(--primary);
		border-radius: 0;
		border: none;
	}

	.menu-toggle:before,
	.menu-toggle:after {
		position: absolute;
		content: ' ';
		top: 8px;
		left: 0;
		width: 30px;
		height: 4px;
		color: var(--primary);
		background-color: var(--primary);
		display: inline-block;
		transition: .3s;
		transform-origin: center center;
	}

	.menu-toggle:before {
		top: 16px;
	}

	.toggled .menu-toggle {
		background-color: transparent;
	}

	.toggled .menu-toggle:after {
		transform: rotate(45deg);
		top: 0;
	}

	.toggled .menu-toggle::before {
		transform: rotate(-45deg);
		top: 0;
	}

	.toggled .menu-toggle .toggled {
		z-index: 9999;
	}

	.toggled #primary-menu {
		left: 0;
	}

	#primary-menu li {
		font-size: 2.7em;
		text-transform: uppercase;
	}

	/*---------- primary ---------- */

	#primary .entry-content .alignfull h1 {
		font-size: 2.7em !important;
		line-height: 1em;
	}

	.home .alignfull:first-child {
		max-height: 100vh;
	}

	/*---------- .home ---------- */

	/* activites */

	.activities.wp-block-columns {
		height: auto;
	}

	.activities::after,
	.activities::before {
		display: none;
	}

	/*---------- .animaux-col ---------- */

	#foot-print {
		display: none;
		transform: scale(1);
		top: 70%;
		left: -200%;
	}

	/*---------- animaux-grid ---------- */

	.animaux-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.actualites-grid {
		grid-template-columns: repeat(1, 1fr);
	}

	/*---------- .animaux-post-single ---------- */

	.animaux-post-single {
		flex-direction: column;
	}

	/*---------- actualites .post-grid ---------- */

	.post-grid.alignfull {
		gap: 0;
		padding: 0;
	}

	.post-item {
		width: 100%;
	}

	/*---------- Footer ---------- */

	footer .flex {
		flex-wrap: wrap;
	}

	.site-footer .box {
		width: 100%;
	}

	.site-footer .nav-footer {
		gap: 0;
		justify-content: space-between;
	}

	.site-footer .box:nth-child(2) a {
		width: calc(100%/4 - 1em);
	}

}

/*-------------------- Mac 14'' media query-------------------- */

/*Media query*/
@media (max-width: 1515px) {

	/*---------- #foot-print ---------- */
	#foot-print-2 {
		position: absolute;
		top: 190%;
		transform: scale(1.3);
		z-index: 4;
	}


}