/**
 * searchbar - Display a Search Bar as a popup.
 * @version v1.0.3
 * @link https://github.com/ergopix-sarl/JS-Search-Bar
 */
.searchbar {
	background-color:rgba(0,0,0,0.7);
	opacity: 0;
	transition: opacity .3s linear;
	z-index:9999;
}

.searchbar--visible {
	position:fixed;
	top:0;
	left:0;
	right:0;
	bottom:0;
	display: block;
	opacity: 1;
}

.search-table{
	display: table;
	height: 100%;
	width: 100%;
}

.search-table-cell{
	display: table-cell;
	height: 100%;
	width: 100%;
	vertical-align: top;
}

.searchbar--visible .search-table-cell {
	padding-top: 15vh;
}

.searchbar__form {
	width:90%;
	max-width:1170px;
	height:60px;
	background:#fff;
	margin: 0 auto;
	box-shadow:0 2px 4px rgba(0,0,0,0.5);
	display:-webkit-box;
	display:-ms-flexbox;
	display:flex;
	-webkit-box-orient:horizontal;
	-webkit-box-direction:normal;
	-ms-flex-direction:row;
	flex-direction:row;
	-webkit-box-align:center;
	-ms-flex-align:center;
	align-items:center;
	display: none;
	transition: all .3s linear;
	border-radius: 4px;
}

.searchbar--visible .searchbar__form {
	display:-webkit-box;
	display:-ms-flexbox;
	display:flex;
}

.searchbar__field {
	height:60px;
	font-size:1.5em;
	background:none;
	border:0;
	padding-left:15px;
	color:#333;
	margin-right:auto;
	width:80%;
}

.searchbar__field::-ms-clear {
	display:none;
}

.searchbar__field:focus {
	outline:0;
}

.searchbar__button {
	position:relative;
	height: 60px;
	width: 65px;
	padding:0;
	border:0;
	background:none;
	cursor: pointer;
}

.searchbar__button:focus {
	outline:0;
}

.searchbar__button .far {
	font-size:1.5em;
	color:#000;
	position: relative;
	top:2px;
}

@media screen and (min-width: 768px) {
	.searchbar__form {
		height:96px;
	}

	.searchbar__field {
		padding-left:45px;
		height:96px;
		font-size:2em;
	}

	.searchbar__button {
		height: 95px;
		width: 90px;
	}

	.searchbar__button .far {
		font-size:2em;
	}
}

/* SearchWP Live Ajax Search — autocomplete dropdown */
/* Override de la position inline (left + width) calculée en JS par le plugin
   pour que le dropdown couvre toute la largeur du formulaire de recherche. */
.searchwp-live-search-results {
	left: 50% !important;
	transform: translateX(-50%);
	width: 90% !important;
	max-width: 1170px !important;
	background: #fff;
	border-radius: 0 0 4px 4px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.5);
	max-height: 500px;
	overflow-y: auto;
	z-index: 10000;
}

.searchwp-live-search-results .searchwp-live-search-results-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.searchwp-live-search-result {
	border-bottom: 1px solid #eee;
}

.searchwp-live-search-result:last-child {
	border-bottom: 0;
}

.searchwp-live-search-result__link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 15px;
	width: 100%;
	box-sizing: border-box;
	color: #333;
	text-decoration: none;
	transition: background-color .15s linear;
}

.searchwp-live-search-result__link:hover,
.searchwp-live-search-result__link:focus,
.searchwp-live-search-result.swp-live-search-result-hover .searchwp-live-search-result__link {
	background-color: #f5f5f5;
	color: #000;
}

.searchwp-live-search-result__thumb {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	overflow: hidden;
	border-radius: 3px;
	background: #f0f0f0;
}

.searchwp-live-search-result__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.searchwp-live-search-result__body {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.searchwp-live-search-result__title {
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.3;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.searchwp-live-search-result__meta {
	font-size: 0.8rem;
	color: #777;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-top: 2px;
}

.searchwp-live-search-no-results,
.searchwp-live-search-no-min-chars {
	padding: 16px 20px;
	color: #777;
	font-style: italic;
	margin: 0;
}

@media screen and (min-width: 768px) {
	.searchwp-live-search-result__link {
		padding: 14px 45px;
	}

	.searchwp-live-search-result__thumb {
		flex: 0 0 60px;
		width: 60px;
		height: 60px;
	}

	.searchwp-live-search-result__title {
		font-size: 1.1rem;
	}
}