/*
Theme Name: Yan 2021
Description: Theme
Author:  Nathalie Bergeron
Version: 1.0
*/

:root {
	--white: #fff;
	--bgColor: #f8f9fa;
	--textColor: #666;
	--linkColor: #000;
	--dark: #111;
	--alert: #fc660b;
	--fadeTime: 22s;
}

/* width */
::-webkit-scrollbar {
	width: 1px;
}

/* Handle */
::-webkit-scrollbar-thumb {
	background: #000;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
	background: #e9edf1;
}

/* FLEX LAYOUT */
html,
body {
	width: 100%;
	height: 100%;
	overflow-x: hidden;
}

body {
	min-height: 100%;
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

.flex-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	/* min-height: 100%; */
}

body {
	/*font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;*/
	font-family: 'Poppins', sans-serif;
	font-weight: 200;
	font-size: 15px;
	letter-spacing: 1px;
	line-height: 1.4;
	background-color: var(--bgColor);
	color: var(--textColor);
}

@media (max-width: 767px) {
	body {
		font-size: 18px;
	}
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: inherit;
}

.container-fluid,
.more-container-fluid {
	max-width: 1000px;
	margin: 0 auto;
}

/* .page-template-page-actualites .container-fluid,
.page-template-page-actualites .more-container-fluid,
.page-template-page-atelier .container-fluid,
.page-template-page-atelier .more-container-fluid,
.page-template-default .container-fluid,
.page-template-default .more-container-fluid,
.page-template-page-revue .container-fluid,
.page-template-page-revue .more-container-fluid {
	max-width: 720px;
} */

.more-container-fluid,
.bottom-text {
	margin-top: 20px;
}

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

.entry-title {
	font-size: 135%;
	margin: 15px auto 40px;
	color: var(--dark);
	letter-spacing: 2px;
}
@media (max-width: 767px) {
	.entry-title {
		margin: 5px auto 15px;
	}
}

.entry-subtitle {
	font-size: 70%;
}

.actualite-title,
.presse-title {
	font-size: 115%;
	letter-spacing: 2px;
	color: var(--dark);
}

.actualite-title {
	text-transform: uppercase;
}

.actualite-title span {
	font-size: 90%;
	letter-spacing: 1px;
}

.actualite-text {
	text-align: left;
}

.content-text,
.entry-content {
	margin: 0 auto;
	max-width: 700px;
	padding-right: 10px;
	padding-left: 10px;
}
@media (max-width: 767px) {
	.content-text,
	.entry-content {
		padding-right: 5px;
		padding-left: 5px;
	}
}

.entry-content b,
.content-text b,
strong {
	font-weight: 400;
}

p + p strong {
	display: inline-flex;
}

p:last-of-type {
	margin-bottom: 20px;
}

a.post-edit-link {
	color: blue;
	background: rgba(0, 0, 0, 0);
}

ul.presse {
	list-style-type: none;
	padding: 5px 0 5px 15px;
	margin: 0;
	margin-bottom: 20px;
}

ul.presse li {
	padding: 0 0 5px 15px;
	text-align: left;
}

a {
	color: var(--linkColor);
	text-decoration: none;
	outline: none;
	font-weight: 300;
	word-break: break-all;
}
@media (hover: hover) {
	a:hover {
		color: var(--linkColor);
	}
}

article a {
	transition: background 0.23s;
	background: var(--white);
}
@media (hover: hover) {
	article a:hover {
		background: transparent;
	}
}

a.button {
	transition: box-shadow 0.23s;
	display: inline-flex;
	margin-top: 20px;
	padding: 9px 24px;
	color: var(--dark);
	border: 2px solid var(--dark);
	background: transparent;
	font-size: 90%;
	letter-spacing: 2px;
}

a:hover.button {
	box-shadow: 2px 2px 0px 0px var(--dark);
}

.revue {
	margin-left: 5px;
}

/* NAT */
.container-fluid,
.more-container-fluid {
	padding-right: 10px;
	padding-left: 10px;
}

.navbar {
	/* justify-content: space-between; */
	padding-top: 0;
	padding-bottom: 0;
	background: rgba(248, 249, 250, 0.9) !important;
}

.navbar > .container-fluid {
	display: flex;
	flex-wrap: inherit;
	align-items: unset;
}

button .navbar-toggler {
	line-height: 1;
	background-color: transparent;
	border: 1px solid transparent;
	border-radius: 0.25rem;
	transition: box-shadow 0.15s ease-in-out;
}

@media (max-width: 767px) {
	.navbar-item a {
		width: 100%;
		text-align: center;
	}
}

.dropdown-item {
	font-weight: inherit;
}
@media (hover: hover) {
	.dropdown-item:focus,
	.dropdown-item:hover {
		color: var(--linkColor);
		background-color: var(--white);
	}
}

a.navbar-brand {
	font-size: 18px;
	line-height: 25px;
	text-transform: uppercase;
	flex: 1;
	padding: 17px 5px;
	text-align: left;
}

.navbar-item > .navbar-item {
	display: flex;
	align-items: center;
}

.menu-item {
	display: flex;
	flex-direction: column;
}
@media (max-width: 767px) {
	.menu-item {
		align-items: center;
		width: 100%;
	}
}

.menu-item.dropdown:last-of-type .dropdown-menu[data-bs-popper] {
	right: 0;
	left: auto;
}

.navbar-expand-md .navbar-nav .nav-link {
	padding: 17px 12px;
}

@media (max-width: 767px) {
	.navbar-expand-md .navbar-nav .nav-link {
		width: 100%;
		text-align: center;
	}
}
.menu-item > a.nav-link {
	flex: 1;
}

.navbar-toggler:focus {
	box-shadow: none;
}

.navbar-light .navbar-toggler {
	border-color: transparent;
}

.navbar-toggler {
	position: relative;
	right: -12px;
	height: 49px;
	width: 61px;
	cursor: pointer;
	z-index: 100;
	border: 18px solid transparent;
	border-top-width: 27px;
	border-bottom-width: 27px;
	border-radius: 0;
	z-index: 3;
	transition: opacity 0.25s ease;
	transition: color 0.23s ease-in-out;
}
.navbar-toggler:hover {
	opacity: 0.7;
}
.navbar-toggler.active .top {
	transform: translateY(11px) translateX(0) rotate(45deg);
	transform: translateY(4px) rotate(45deg);
	background: var(--linkColor);
}
.navbar-toggler.active .middle {
	opacity: 0;
	background: var(--linkColor);
}
.navbar-toggler.active .bottom {
	transform: translateY(-11px) translateX(0) rotate(-45deg);
	transform: translateY(-4px) rotate(-45deg);
	background: var(--linkColor);
}
.navbar-toggler span {
	background: rgba(0, 0, 0, 0.7);
	border: none;
	height: 1px;
	width: 100%;
	position: absolute;
	top: 0;
	left: 0;
	transition: all 0.35s ease;
	cursor: pointer;
}
.navbar-toggler span.middle {
	top: 50%;
	transform: translateY(-50%);
}
.navbar-toggler span.bottom {
	top: 100%;
}

@media (max-width: 767px) {
	.navbar-collapse {
		position: fixed;
		background: var(--bgColor);
		/* background: #f0f2f5; */
		top: 0;
		right: -1px;
		bottom: 0;
		left: 0;
		height: 100%;
		margin: auto !important;
		visibility: hidden;
		opacity: 0;
		transition: opacity 0.23s;
		overflow: auto;
		padding: 50px 0;
	}
	.navbar-collapse.active {
		visibility: visible;
		opacity: 1;
	}
}

.navbar-light .navbar-nav .nav-link {
	color: var(--textColor);
}
@media (max-width: 767px) {
	.navbar-light .navbar-nav .nav-link {
		text-transform: uppercase;
		background: var(--white);
		margin-top: 2px;
	}
}

.navbar-light .navbar-nav .nav-link:focus,
.navbar-light .navbar-nav .nav-link:hover {
	color: var(--linkColor);
}

.footer {
	width: 100%;
	text-align: right;
	padding: 30px 15px;
	max-width: 1000px;
	margin: 0 auto;
}

.footer-droits {
	font-size: 55%;
	margin-bottom: 0;
}

ul.dropdown-menu {
	position: absolute;
	z-index: 1000;
	display: none;
	padding: 15px 0;
	margin: 0 !important;
	color: var(--textColor);
	text-align: left;
	list-style: none;
	background-clip: padding-box;
	opacity: 0.9;
	background-color: var(--bgColor);
	border: 0;
	border-radius: 0;
	max-height: calc(100vh - 141px);
	overflow: auto;
	font-size: inherit;
	font-weight: inherit;
	min-width: 300px;
}

@media (max-width: 767px) {
	.navbar-nav .dropdown-menu {
		position: static;
		display: flex;
		flex-direction: column;
		max-height: 37vh;
		align-items: center;
		width: 100%;
	}
}

.dropdown-item {
	padding: 5px 40px 5px 20px;
	white-space: normal;
	word-break: break-word;
}
@media (max-width: 767px) {
	.dropdown-item {
		padding: 17px;
	}
}

.slideshow-border {
	position: relative;
	font-size: 80%;
}

[class*='actualites'] .slideshow-border {
	margin: 10px auto;
	height: 50vh;
}

.slideshow-border button {
	border: 0;
	background: transparent;
	appearance: none;
	-moz-appearance: none;
}

.tns-nav,
.custom-nav {
	position: absolute;
	width: 50px;
	height: 40px;
	left: 40px;
	bottom: 10px;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 8px 0 6px;
	background: var(--bgColor);
}
/* .home .custom-nav,
.home .tns-nav {
	display: none;
} */
@media (max-width: 767px) {
	.custom-nav,
	.tns-nav {
		display: none;
	}
}

.tns-nav button {
	display: none;
}

.tns-outer {
	position: relative;
	width: 100%;
	height: 100%;
}

.tns-slider {
	height: 100%;
	overflow: hidden;
}

.tns-inner {
	height: 100%;
}

.custom-next {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 3;
	background: transparent !important;
}
@media (max-width: 767px) {
	.custom-next {
		display: none;
	}
}

.tns-controls {
	position: absolute;
	bottom: 10px;
	width: 40px;
	left: 0;
	z-index: 5;
	display: flex;
	align-items: flex-end;
	padding-left: 9px;
	background: var(--bgColor);
}
/* .home .tns-controls {
	display: none;
} */
@media (max-width: 767px) {
	.tns-controls {
		display: none;
	}
}

.tns-controls button {
	position: relative;
	display: flex;
	font-size: 0;
	width: 15px;
	height: 40px;
	padding: 0;
}

.tns-controls [data-controls*='next'] {
	flex: 1;
	text-align: right;
}

.tns-controls [data-controls*='prev']:before,
.tns-controls [data-controls*='next']:after {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	content: '';
	width: 0;
	height: 0;
	border-style: solid;
	cursor: pointer;
	transition: opacity 0.23s;
}

.tns-controls [data-controls*='prev']:before {
	border-width: 5px 8px 5px 0;
	border-color: transparent var(--linkColor) transparent transparent;
}

.tns-controls [data-controls*='next']:after {
	border-width: 5px 0 5px 8px;
	border-color: transparent transparent transparent var(--linkColor);
}

.tns-controls [data-controls*='prev']:hover:before,
.tns-controls [data-controls*='next']:hover:after {
	opacity: 0.5;
}

.tns-item .flex-item {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	overflow: hidden;
	height: 100%;
	flex: 1;
}

.tns-item {
	width: 100% !important;
	height: 100% !important;
	/* transition: opacity var(--fadeTime);
	opacity: 0; */
	overflow: hidden;
}

/* .tns-item.tns-normal {
	transition: opacity 11.5s;
	opacity: 0;
}

.tns-item.tns-fadeOut,
.tns-item.fadeOut {
	transition: opacity var(--fadeTime);
	opacity: 0;
}

.tns-item.tns-fadeIn,
.tns-item.fadeIn {
	opacity: 1;
	transition: opacity var(--fadeTime);
} */

/* ONLY FOR IMAGE ITSELF */
.tns-lazy-img {
	transition: opacity 2s;
	opacity: 0;
	object-fit: contain;
	max-width: 100%;
	height: 100%;
}
@media (max-width: 980px) {
	.tns-lazy-img {
		width: auto;
		height: auto;
		max-width: 100%;
		max-height: 100%;
	}
}
.tns-lazy-img.tns-complete {
	opacity: 1;
}

.image-list,
.image-caption {
	text-align: center;
}

.image-list {
	max-width: 700px;
	margin: 0 auto 7px;
}
.image-list img {
	width: 100%;
	height: auto;
}

.image-caption-opacity {
	transition: opacity 1.5s;
	opacity: 0;
	width: 100%;
	padding: 23px 80px;
	min-height: 63px;
}
@media (max-width: 980px) {
	.image-caption-opacity {
		padding: 23px;
	}
}
.image-caption-opacity.collapsed {
	min-height: 0;
}
.image-caption-opacity {
	opacity: 1;
}

.tns-item.tns-fadeIn .image-caption-opacity,
.tns-item.fadeIn .image-caption-opacity {
	opacity: 1;
}

.post-content {
	position: relative;
	margin-bottom: 20px;
}

.margin-top {
	margin-top: 40px;
}
/* TESTING PURPOSE */
.slideshow {
	/* background: rgba(0, 0, 0, 0.25); */
}
.post-content {
	/* border: 2px solid red; */
}
.image-caption {
	/* background: rgba(255, 255, 0, 0.8); */
}

.tns-slider,
.tns-item,
.tns-item .flex-item {
	/* overflow: visible; */
}
