/*
Theme Name: Salient Child Theme
Description: This is a custom child theme for Salient
Theme URI:   https://themeforest.net/item/salient-responsive-multipurpose-theme/4363266
Author: ThemeNectar
Author URI:  https://themeforest.net/user/themenectar
Template: salient
Version: 1.0
*/




.pll-parent-menu-item img {
	width: 16px !important;
	height: 11px !important;
	margin-bottom: 0 !important;
}

.page-submenu li {
	display: inline-block;
	margin: 0 25px 0 0;
}






#case {
	padding-top: 5%;
	z-index: 2;
}

#case p, 
#case li {
	text-align: justify;
}


#case-facts {
	width: 100%;
	/*border: 2px solid grey; */
}

#case-facts td:nth-of-type(1) {
	width: 30%;
}
#case-facts td:nth-of-type(2) {
	width: 70%;
}



.detail {
	display: grid;
	grid-template-columns: 30% calc(70% - 10px);
	gap: 10px;
}

.detail div {
	padding: 20px;
	border: 1px solid #ccc;
	background: #f9f9f9;
}

@media (max-width: 768px) {
	.detail {
		grid-template-columns: 1fr;
	}
}




/* navigation entre les CPT/retour menu */
.post-navigation {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	padding: 20px 0;
}
.post-navigation-2 {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	padding: 20px 0;
}

.btn-nav {
	display: inline-block;
	padding: 10px 15px;
	background: #22509b;
	color: #fff;
	text-decoration: none;
	border-radius: 5px;
	transition: background 0.3s ease-in-out;
	text-align: center;
	white-space: nowrap;
}

.btn-nav:hover {
	background: #2b5394;
	color: #fff;
}

.back-to-list {
	margin: 0 auto;
}


.post-navigation-2 .prev {
	justify-self: start;
}

.post-navigation-2 .back-to-list {
	justify-self: center;
}

.post-navigation-2 .next {
	justify-self: end;
}














#filter-form fieldset {
	margin-top: 30px;
}

.filter-group {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.filter-group label {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 14px !important;
	padding-top: 5px;
}

/*
#cases-container {
	width: 100%;
	position: relative;
}
*/


.case-item {
	/* width: calc(33.33% - 14px); */
	width: calc(25% - 16px);
	
	margin-bottom: 20px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	transition: box-shadow 0.3s ease-in-out;
}

@media screen and (max-width: 768px) {
	.case-item {
		width: calc(100% - 10px);
	}
}


.case-item:hover {
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.case-item img {
	width: 100%;
	height: auto;
	object-fit: cover;
	display: block;
	border-bottom: 1px solid #ddd;
}

.case-item h3 {
	padding: 10px;
	font-size: 1.2em;
	text-align: center;
}

.case-item-link {
	display: block;
	height: 100%;
	text-decoration: none;
	color: inherit;
}




.filter-counter {
	margin-top: 15px;
	padding: 10px;
	background: #f5f5f5;
	border-radius: 4px;
	font-size: 0.9em;
}
#items-count {
	font-weight: bold;
}






.image2 {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.image2 img {
	width: 100%;
	height: auto;
	object-fit: cover;
	border-radius: 15px;
	aspect-ratio: 16 / 9;
}

/* 2 colonnes sur tablette */
@media (max-width: 1024px) {
	.image2 {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* 1 colonne sur mobile */
@media (max-width: 600px) {
	.image2 {
		grid-template-columns: 1fr;
	}
}


.fancybox-slide--image .fancybox-image {
	border-radius: 20px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
	transition: border-radius 0.3s ease;
}



.simple-related-cases-grid {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -15px; 
}






/* Case studies */
.filter-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	padding-top: 50px;
}
.filter-col {
	flex: 0 0 18%;
	max-width: 18%;
	padding-top: 30px;
}
.cases-col {
	flex: 0 0 82%;
	max-width: 82%;
}

.related-cases-grid {
	display: block; 
	position: relative;
}



@media (max-width: 1024px) {
	.filter-col {
		flex: 0 0 25%;
		max-width: 25%;
	}
	.cases-col {
		flex: 0 0 75%;
		max-width: 75%;
	}	
}

@media (max-width: 768px) {
	.filter-col {
		flex: 0 0 100%;
		max-width: 100%;
	}
	.cases-col {
		flex: 0 0 100%;
		max-width: 100%;
	}	
}


.related-case {
	width: 100%;
	padding: 0 15px;
	box-sizing: border-box;
	margin-bottom: 30px;
	text-align: center;
	overflow: hidden;
}
@media (min-width: 768px) {
	.related-case {
		width: 50%;
	}
}
@media (min-width: 1024px) {
	.related-case {
		width: 33.33%;
	}
}

.filter-list {
	padding-top: 5px;
}
.filter-list label {
	font-size: 14px !important;
}


.filter-list label {
	display: block;
	padding: 2px 0;
	width: 100%;
	line-height: 1;   	
}



.related-case .thumbnail {
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 15px;
	/* opacity: 0.9; */
}
.related-case .thumbnail:hover {
	opacity: 1;
}

.related-case .thumbnail img {
	width: 100% !important;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.4s ease;
}

.related-case .thumbnail:hover img {
	transform: scale(1.1);
}

.related-case h3 {
	font-size: 26px;
	margin: 0.5rem 0 0;
}
.related-case-studies h2 {
	text-align: center;
	font-size: 40px;
	margin: 60px 0 20px;
}

.related-case .thumbnail {
	position: relative;
}

.related-case .thumbnail h3 {
	position: absolute;
	bottom: 0;
	padding: 0 0 28px 50px;
	color: white;
	text-align: left;
}




/* ========== ========== ========== ========== */
/* Carte "Worlwide" */
/* ========== ========== ========== ========== */

#mapContainer {
	position: relative;
}
#carte {
	position: relative;
}

ul {
	margin-left: 1px;
	margin-bottom: 0;
}
#mapContainer ul li {
	list-style-type: none;
	padding: 2px 5px;
}
.pays-liste {
	cursor: pointer;
	transition: background-color 0.3s ease;
	padding: 5px 0 1px 10px;
}

#liste-pays {
	width: 20%;
	max-height: 60vh;
	overflow-y: auto;
	background: #eee;
}


#liste-pays ul li {
	/*font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif !important; */
}

.pays-liste .flag-wrapper {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
}

.pays-liste img {
	width: 30px !important;
	height: 20px !important;
	margin-bottom: 0 !important;
	XXdisplay: block;
	object-fit: cover; 
}

.pays-liste.highlight {
	background-color: #192d73;
	color: white;
	font-weight: bold;
}
#worldwide path {
	cursor: crosshair;
}
#worldwide path.country-active {
	fill: #90aaf7;
	transition: fill 0.3s ease;
}
#worldwide path.country-active:hover,
#worldwide path.hover-highlight {
	fill: #192d73 !important;
}
#worldwide path.country-inactive {
	fill: #ccc;
}
#worldwide path.highlight {
	fill: #192d73 !important;
	transition: fill 0.3s ease;
}
.country-circle {
	position: absolute;
	border: 3px solid #192d73;
	border-radius: 50%;
	background-color: rgba(25, 45, 115, 0.2);
	pointer-events: none;
	z-index: 1000;
	animation: pulse 1.5s infinite;
	transform: translate(-50%, -50%);
}

@keyframes pulse {
	0% {
		transform: translate(-50%, -50%) scale(1);
		opacity: 1;
	}
	50% {
		transform: translate(-50%, -50%) scale(1.2);
		opacity: 0.7;
	}
	100% {
		transform: translate(-50%, -50%) scale(1);
		opacity: 1;
	}
}





/* ========== ========== ========== ========== */
/* popup "représentant" */
/* ========== ========== ========== ========== */
#country-pop {
	width: 400px;
}

.popup-close-btn {
	margin-top: 15px;
	padding: 8px 16px;
	background-color: #22519a;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
}
.popup-representant {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	padding: 20px;
	background-color: #fff;
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
	z-index: 9999;
	display: none;
	/*max-width: 400px;*/
	border-radius: 15px;
	text-align: center;
}
.img-representant {
	width: 320px;
	height: 320px;
	border-radius: 15px;
	margin-bottom: 10px;
}















/* ========== ========== ========== ========== */
/* ========== Récup de CSS Salient */
/* ========== ========== ========== ========== */


/* Ajoute une bordure inférieure de 2px au menu item actif */
#header-outer nav ul.sf-menu li.current-menu-item {
border-bottom: 2px solid #22509b; /* Utilisation de la couleur principale que tu utilises */
}

/* Pour s'assurer que la bordure est bien visible même au survol */
#header-outer nav ul.sf-menu li.current-menu-item hover {
border-bottom: 2px solid #22509b;
}

#footer-outer #footer-widgets .col ul li a,
#sidebar div ul li a {
	display: inline-block;
}

.sf-menu li {
	cursor: pointer;
}
.sf-menu>li ul {
	width: unset;
}

@media only screen and (min-width: 1000px) and (max-width: 1350px) {
	.container {
		padding: 0 40px !important;
	}
}

.breadcrumb {
	background: #22509b;
	display: inline-block;
	padding: 5px 10px !important;
	border-radius: 15px;
}

body:not([data-header-format="left-header"]) #header-outer .sf-menu li ul,
#header-outer nav > ul > .megamenu > .sub-menu,
body:not([data-header-format="left-header"]) #top .sf-menu li ul {
	/*background-color: white !important;*/
	border-bottom-left-radius: 50px !important;
	border-bottom-right-radius: 50px !important;
}







/*
.zone-hover {
	stroke: black;
	stroke-width: 0.8;
	opacity: 1;
	filter: brightness(1.2);
}
*/
.zone-hover {
	XXXopacity: 1;
	filter: brightness(0.8);
	border: 2px solid red;
}







/* product map */














.related-case .thumbnail {
	position: relative;
	overflow: hidden;
}

.related-case .thumbnail h3 {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 1rem;
	color: #fff;
	font-size: 1rem;
	z-index: 2;
	line-height: 1.2rem;
}

/* Overlay gradient */
.related-case .thumbnail::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 80%;
	/* background: linear-gradient(to top, rgba(34, 81, 154, 0.9) 30%, rgba(34, 81, 154, 0) 100%);*/
	background: linear-gradient(to top, rgba(21, 28, 96, 0.9) 30%, rgba(34, 81, 154, 0) 100%);
	z-index: 1;
}



.load-more-cases {
	display: inline-block;
	padding: 12px 25px;
	margin: 20px auto;
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	color: #22519a;
	background: #fff;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 12px rgba(255, 255, 255,0.2);
}

.load-more-cases:hover {
	background: white;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
	transform: translateY(-2px);
}

.load-more-cases:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}




#country-tooltip {
	padding: 8px 16px;
	background: #22519a;
	color: #fff;
	border-radius: 20px;
	font-size: 16px;
	pointer-events: none;
	z-index: 1000;
}

.single-case p {
	text-align: justify;
}

.single-case .vc_row.vc_row-o-content-bottom > .span_12 {
	align-items: flex-start !important;
}







/*  carte des produits */
.image-map {
	position: relative;
	background-image: url('/wp-content/uploads/product-map-6.png');
	background-size: cover;
	width: 100%;
	/* aspect-ratio: 1600 / 430;*/
	aspect-ratio: 1920 / 1200;
	margin: auto;
}

.marker {
	position: absolute;
	width: 18px;
	height: 18px;
	background-color: rgba(255, 255, 255, 0.6);
	border-radius: 50%;
	transform: translate(-50%, -50%);
	z-index: 2;
	cursor: crosshair;
}

.marker .pulse {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 0.8);
	border-radius: 50%;
	transform: translate(-50%, -50%);
	animation: pulse 1.5s ease-out infinite;
	z-index: 1;
}

@keyframes pulse {
	0% {
		transform: translate(-50%, -50%) scale(0.6);
		opacity: 0.8;
	}
	70% {
		transform: translate(-50%, -50%) scale(1.5);
		opacity: 0;
	}
	100% {
		opacity: 0;
		transform: translate(-50%, -50%) scale(2);
	}
}

.marker .label {
	position: absolute;
	font-size: 16px;
	background: rgba(255, 255, 255, 0.8);
	padding: 2px 6px;
	border-radius: 4px;
	white-space: nowrap;
	pointer-events: none;
}

.marker.label-bottom .label {
	top: 30px;
	left: 50%;
	transform: translateX(-50%);
}
.marker.label-top .label {
	top: auto;
	bottom: 30px;
}
.marker.label-left .label {
	top: 50%;
	left: auto;
	right: 30px;
	transform: translateY(-50%);
}
.marker.label-right .label {
	top: 50%;
	left: 30px;
	transform: translateY(-50%);
}

.marker-dark {
	background-color: rgba(34, 81, 154, 0.9);
}

.marker-dark .pulse {
	background: rgba(34, 81, 154, 0.6);
}

.marker-dark .label {
	background: rgba(34, 81, 154, 0.9);
	color: #fff;
}


.marker-dark.label-bottom .label {
	top: 30px;
	left: 50%;
	transform: translateX(-50%);
}

.marker-dark.label-top .label {
	top: auto;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
}

.marker-dark.label-left .label {
	top: 50%;
	left: auto;
	right: 30px;
	transform: translateY(-50%);
}

.marker-dark.label-right .label {
	top: 50%;
	left: 30px;
	transform: translateY(-50%);
}

.marker-dark .popup {
	top: 100%;
	bottom: auto;
	margin-top: 60px;
	margin-bottom: 0;
}

.popup {
	position: absolute;
	bottom: 100%;
	margin-bottom: 60px;
	left: 50%;
	transform: translateX(-50%);
	background: white;
	border: 1px solid #ccc;
	padding: 12px;
	border-radius: 20px;
	box-shadow: 0 5px 15px rgba(0,0,0,0.2);
	min-width: 400px;
	z-index: 1000;
	display: none;
	text-align: center;
}

.popup img {
	display: inline;
	padding: 20px 0;
}

.popup a {
	color: #fff;
	text-decoration: none;
	font-weight: bold;
}

.marker.active {
	z-index: 1000;
}





/* logout */
.menu-item-logout a {
	display: inline-block;
	padding: 8px 18px !important;
	border-radius: 999px;
	/*background-color: #e74c3c;*/
	border: 2px solid #e74c3c;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease !important;
    transform: scale(1); 
    transform-origin: center center; 
}

.menu-item-logout a:hover {
    transform: scale(1.02);
}

.menu-item-logout.menu-item-logout a,
.menu-item-logout.menu-item-logout a:hover {
    color: white !important;	
}

#menu-main .menu-item-logout a,
.menu-item-logout a,
.menu-item-logout > a {
    color: #fff !important; 
}

header nav .menu-item-logout a {
    color: #fff !important;
}