/*
Theme Name: Buxum child
Theme URI: https://buxum.ch
Author: Buxum Communication
Author URI: https://buxumlunic.ch
Description: Custom theme made with love
Version: 2.0.9
Text Domain: buxum-child
Template: twentyseventeen
*/

/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/

@import url("css/general.css");

/*******************************************/
/* MENU */
/*******************************************/

#menu {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 99;
}

#menu .svg-logo {
	width: 235px;
}
#menu button {
	background: none;
	outline: none !important;
	text-transform: uppercase;
	font-size: 12px;
}

#menu button svg {
	width: 32px;
}
#menu button span {
	display: block;
	margin-top: 0.5rem;
}

.menu__hr {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 20dvh;
	opacity: 0.5;
	pointer-events: none;
}

.menu__hr,
.menu__header button,
.menu__header svg path {
	transition: 0.35s;
}

[data-menu="dark"] .menu__hr {
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0.5),
		rgba(0, 0, 0, 0)
	);
}

[data-menu="dark"] .menu__header button {
	color: white;
}

[data-menu="dark"] .menu__header svg path {
	fill: white;
}

[data-menu="light"] .menu__hr {
	background: linear-gradient(
		to bottom,
		rgba(255, 255, 255, 1),
		rgba(255, 255, 255, 0)
	);
}

[data-menu="light"] .menu__header button {
	color: var(--color-grey-900);
}

[data-menu="light"] .menu__header svg path {
	fill: var(--color-grey-900);
}

.menu__content {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100dvh;
	z-index: 999999999999999999;
}

#menu.menu--inactive .menu__content {
	pointer-events: none;
	opacity: 0;
}

.menu__content > hr {
	background: black;
	opacity: 0.3;
	height: 100%;
}

.menu__content > div {
	width: 100%;
	max-width: 628px;
	background: white;
	height: 100%;
}

/* Only keep the burger visible on scroll */
.menu__burger {
	position: fixed;
	top: 16px;
	right: 40px;
	z-index: 1000;
}

.menu__nav {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
}

.menu__nav ul {
	gap: 0.75rem;
}

.menu__nav a {
	display: inline-block;
	position: relative;
	padding-right: 2.75rem;
	font-weight: 700;
	color: var(--color-grey-600);
}

.menu__nav a:after {
	content: "";
	position: absolute;
	right: 0;
	top: calc(50% - 13px);
	width: 26px;
	height: 26px;
	background: url("img/arrow.svg") center / 24px no-repeat;
	transition: 0.35s;
	transform-origin: center;
}

.menu__nav a:hover:after {
	transform: rotate(45deg);
}

.menu__search {
	position: relative;
	border-top: 1px solid var(--color-grey);
}

.menu__search input {
	border-radius: 5px;
	background: var(--color-grey);
	color: var(--color-grey-400);
	border: none;
	outline: none !important;
	padding: 1rem 3.5rem;
	display: block;
	width: 100%;
}

.menu__search input::placeholder {
	color: var(--color-grey-400);
}

#menu .menu__search button {
	font-size: 0 !important;
	width: 22px;
	height: 22px;
	background-position: center;
	background-size: 22px;
	background-repeat: no-repeat;
	position: absolute;
	top: calc(50% - 11px);
	padding: 0 !important;
}

#menu .menu__search [type="submit"] {
	background-image: url("img/search.svg");
	left: 1.25rem;
}
#menu .menu__search__close {
	background-image: url("img/close.svg");
	right: 1.25rem;
}

.menu__search--inactive .menu__search__close {
	display: none;
}

.menu__results {
	max-height: calc(100dvh - 300px);
	overflow: auto;
}

.menu__container {
	height: 100dvh;
}

/*******************************************/
/* HEADER */
/*******************************************/

.header-page,
.header-post {
	position: relative;
	min-height: 60dvh;
}
.header-page hr,
.header-post hr {
	background: black;
	opacity: 0.3;
}

.header-post svg,
.arrow {
	width: 18px;
	margin-right: 0.5rem;
}

.header-page h1 {
	position: relative;
}

.header-frontpage {
	min-height: 100dvh;
	height: auto;
}

.header-frontpage .py {
	padding-top: 50px;
	padding-bottom: 50px;
}

/* Keep hero title clear of fixed mobile header/logo */
.header-frontpage > .position-relative.space-x.py {
	padding-top: 110px;
}

.header-frontpage__actions {
	padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
}

.header-frontpage__slider hr,
.header-frontpage__hr {
	opacity: 0.5;
}

.header-frontpage__slider {
	opacity: 0;
	transition: 0.35s;
}

.header-frontpage__slider div {
	height: 100%;
}

.header-frontpage hr {
	position: absolute;
}

.header-frontpage__timer,
.header-frontpage__hr {
	left: 0;
	bottom: 0;
	width: 100%;
	height: 1px;
	background: white;
}

.header-frontpage__timer {
	z-index: 9;
	transform-origin: left center;
}

.header-frontpage__ville {
	text-transform: uppercase;
	padding-left: 36px !important;
	font-size: 20px;
	background: url("img/circle.svg") left center / 16px no-repeat;
}

.header-team__content {
	padding-top: 60px;
	padding-bottom: 60px;
}

.header-team .linkedin {
	width: 27px;
}

.header-team .wysiwyg p,
.header-team .wysiwyg ul,
.header-team .wysiwyg ol,
.header-team .wysiwyg blockquote,
.header-team .wysiwyg h1,
.header-team .wysiwyg h2,
.header-team .wysiwyg h3,
.header-team .wysiwyg h4,
.header-team .wysiwyg h5,
.header-team .wysiwyg h6,
.header-team .wysiwyg img {
	padding-bottom: 1rem;
}

/*******************************************/
/* FOOTER */
/*******************************************/
#footer {
	border-top: 1px solid var(--color-grey-50);
}

#footer .footer__nav {
	border-top: 1px solid var(--color-grey-50);
}

#footer .svg-logo {
	max-width: 340px;
}

#footer .svg-logo path {
	fill: var(--color-grey-900);
}

#footer .svg-linkedin {
	width: 23px;
}

#footer .svg-linkedin path {
	fill: var(--color-gold-500);
	transition: 0.35s;
}

#footer .svg-linkedin:hover path {
	fill: var(--color-gold-700);
}

#footer nav a {
	display: inline-block;
	color: var(--color-grey-600);
	line-height: 2em;
	transition: 0.35s;
}

#footer nav a:hover {
	color: var(--color-gold-500);
}

/*******************************************/
/* MARQUEE */
/*******************************************/

.marquee-container {
	width: 100%;
	background-color: var(--color-gold-500);
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	z-index: 99999999999999999999;
	padding: 0 1rem;
}
.marquee-container .close {
	text-shadow: none;
	color: white;
	display: block;
	cursor: pointer;
	font-size: 30px;
	font-weight: normal;
	opacity: 1;
}

.marquee {
	margin: 0 auto;
	line-height: 50px;
	color: white;
	white-space: nowrap;
	overflow: hidden;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	width: 100%;
	flex-wrap: wrap;
}

.marquee-content {
	width: calc(100% - 38px);
	overflow: hidden;
}

.marquee a {
	color: white;
}
.marquee p {
	color: white;
	display: inline-block;
	padding-left: 100%;
	animation: marquee 20s linear infinite;
}

@keyframes marquee {
	0% {
		transform: translate(0, 0);
	}
	100% {
		transform: translate(-100%, 0);
	}
}

body .axeptio_mount {
	z-index: 1 !important;
}

/*******************************************/
/* PAGES */
/*******************************************/

/* EXPERTISE */
.post-type-archive-expertise .expertises ul {
	display: flex;
	flex-wrap: wrap;
	margin-top: -40px;
}

/* HOME */
.header-frontpage__video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.home-news__content .posts {
	gap: 30px;
}

.pagination svg {
	width: 18px;
}

.page-numbers {
	padding: 0.15em 0;
	margin: 0 0.25em;
	transition: 0.35s;
}

.page-numbers:hover {
	color: var(--color-grey-600);
}

.page-numbers.current {
	color: var(--color-grey-600);
	border-top: 1px solid var(--color-grey-600);
	border-bottom: 1px solid var(--color-grey-600);
}

/* Single team */
.header-team {
	overflow: hidden;
}

.header-team__thumbnail {
	position: relative;
	background: var(--color-gold-50);
}

.header-team__thumbnail figure {
	border-radius: 5px;
	border-bottom-left-radius: 135px;
	padding-bottom: 120%;
}

.header-team__bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 200%;
	height: 100%;
	background: var(--color-gold-50);
}

/* Single post */
.single-post__infos {
	border-top: 1px solid var(--color-grey-50);
	border-bottom: 1px solid var(--color-grey-50);
	padding: 20px 0;
}

.single-post__share ul {
	display: flex;
	gap: 10px;
}

.single-post__share img {
	width: 1rem;
	flex-shrink: 0;
}

.single-post__aside > div,
.single-post__aside > a {
	flex-basis: 0;
	-ms-flex-positive: 1;
	flex-grow: 1;
	max-width: 100%;
	padding: 20px;
	background: var(--color-gold-50);
	color: var(--color-gold-500);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border-radius: 5px;
}

.single-post__aside span,
.single-post__aside strong {
	display: block;
}

.single-post__more {
	padding-right: 1.5rem;
	background: url("img/more.svg") right center / 10px no-repeat;
	text-decoration: underline;
}

.single-post__morecontent {
	display: none;
	padding-top: 30px;
}

/* Team Archive */
.team__fonctions {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	border-bottom: 1px solid var(--color-gold-50);
	padding-bottom: 1rem;
}

.team__fonctions input {
	display: none;
}

.team__fonctions label {
	line-height: 1.5em;
	transition: color 0.35s;
}

.team__fonctions label:hover,
.team__fonctions input:checked + label {
	color: var(--color-gold-500);
}

/*******************************************/
/* BLOCKS */
/*******************************************/

/* Image and Text */
.block-imagetext__image {
	min-height: 50dvh;
}

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

/* Text */
.block-text__twocolumns {
	display: flex;
	gap: 40px;
}

/* List accordion */
.block-list details > summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	list-style: none;
}

.block-list details > summary h3 {
	padding-bottom: 0 !important;
	margin: 0;
}

.block-list details > summary::-webkit-details-marker {
	display: none;
}

.block-list details > summary::after {
	content: "";
	width: 30px;
	height: 30px;
	flex: 0 0 30px;
	background: url("img/next.svg") center / 30px no-repeat;
	filter: brightness(0) invert(1);
	transform: rotate(90deg);
	transition: transform 0.25s ease;
}

.block-list details[open] > summary::after {
	transform: rotate(-90deg);
}

.block-list details[open] > *:not(summary) {
	margin-top: 40px;
}

.block-list details {
	border-top: 1px solid rgba(255, 255, 255, 0.5);
	padding: 40px 0;
}

.block-list details:last-of-type {
	border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

/* Testimonies */

.slider.slider--testimonies .slick-track {
	display: block !important;
	min-width: 100%;
}

.slider.slider--testimonies .slick-list {
	border-left: 1px solid var(--color-gold-500, #b08c5a);
	margin: 0;
	position: relative;
	text-align: left;
}

.slider.slider--testimonies .slick-list::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 1px;
	background: var(--color-gold-500, #b08c5a);
}

.slider.slider--testimonies .slick-slide {
	padding-inline: 20px;
}

.slider.slider--testimonies .slick-slide q {
	display: block;
	padding-bottom: 30px;
}

.slider.slider--testimonies .slick-dots {
	margin-top: 30px;
	display: flex;
	gap: 10px;
}

.slider.slider--testimonies .slick-dots li button {
	width: 8px;
	height: 8px;
	border-radius: 100%;
	font-size: 0;
	background: var(--color-grey-400);
	display: block;
	padding: 0;
}

.slider.slider--testimonies .slick-dots li.slick-active button {
	background: var(--color-grey-600);
}

/*******************************************/
/* COMPONENTS */
/*******************************************/

/* Expertise */
.component-expertise img {
	transition: 0.35s;
}

.component-expertise:hover img {
	filter: blur(15px);
}

.component-expertise .button {
	position: absolute;
	left: 16px;
	width: calc(100% - 32px);
	top: 100%;
	transition: 0.35s;
	background-color: white !important;
}

.component-expertise:hover .button {
	top: calc(100% - 80px);
}

/* Ville */
.component-ville {
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

/*******************************************/
/* MEDIA QUERIES */
/*******************************************/
@media screen and (min-width: 768px) {
	/*******************************************/
	/* HEADER */
	/*******************************************/

	.header-frontpage {
		height: 100dvh;
	}

	.header-frontpage .py {
		padding-top: 60px;
		padding-bottom: 60px;
	}

	.header-frontpage > .position-relative.space-x.py {
		padding-top: 60px;
	}

	.header-frontpage__actions {
		padding-bottom: 0;
	}

	/*******************************************/
	/* FOOTER */
	/*******************************************/

	#footer .footer__nav {
		border-top: none;
		border-left: 1px solid var(--color-grey-50);
	}

	/*******************************************/
	/* MENU */
	/*******************************************/

	.menu__nav a:after {
		background: url("img/arrow.svg") center / 26px no-repeat;
	}

	/*******************************************/
	/* COMPONENTS */
	/*******************************************/

	/*******************************************/
	/* BLOCKS */
	/*******************************************/

	/* Image and Text */
	.block-imagetext__image--right {
		left: 40px;
	}

	.block-imagetext__image--left {
		right: 40px;
	}
	/*******************************************/
	/* PAGES */
	/*******************************************/

	/* EXPERTISE */
	.post-type-archive-expertise .expertises ul {
		margin-top: -70px;
	}

	/* HOME */
	.blog #post-filter select {
		width: 260px;
	}

	/* Team Archive */
	#team-filter select {
		width: 260px;
	}

	.team__fonctions {
		flex-direction: row;
		column-gap: 70px;
		row-gap: 0px;
		padding-bottom: 0;
		flex-wrap: wrap;
	}

	.team__fonctions label {
		line-height: 2.25em;
		border-bottom: 3px solid white;
		cursor: pointer;
	}

	.team__fonctions label:hover,
	.team__fonctions input:checked + label {
		border-bottom: 3px solid var(--color-gold-500);
	}

	/* Single team */

	.header-team__content {
		padding-top: 180px;
		padding-bottom: 115px;
	}

	.header-team__thumbnail {
		background: none;
	}

	.header-team__thumbnail img {
		position: absolute;
		object-position: top;
	}

	.header-team__thumbnail figure {
		border-bottom-left-radius: 210px;
	}

	/* Single post */
	.single-post__expertises {
		border-right: 2px solid var(--color-gold-500);
	}
}
