/*  

We do not recommend edit main style.css file.

All your custom style settings and tweaks can be placed here.

Backup this file before theme update - so after update can be restored!
 
*/

/* 
#topnav h1{margin: 24px 10px 21px 100px;} #topnav ul.social-menu {margin: 22px 95px 0 0;} 
*/

/* #topnav_holder {
	margin-top:0px;
	height:72px;
} */

#topnav {
	border-bottom: 5px solid #E3E3E3;
}

/* #topnav .container_v {
	min-height: 250px;
} */

#topnav .header-top {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	padding-left: 30px;
	position: absolute;
}

#topnav .iframe {
	/* position: relative; */
	flex-grow: 1;
	/* max-width: 620px; */
	max-width: 335px;
}

/* #topnav .iframe::before {
	content: "";
	position: absolute;
	inset: 0;
	border: 20px solid #44AA20;
	pointer-events: none;
} */

#topnav .header-bottom {
	/* margin-top: -124px; */
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 2rem;
	padding-right: 30px;
}

#topnav .header-bottom #top-navigation {
	flex-grow: 1;
}

#topnav .header-bottom #widget_connexion {
	display: none;
}

img#logo {
	max-width: 80%;
}

.entry>p a {
	border-bottom: 2px solid #ddd;
}

ul.social-menu li a {
	color: #fff !important;
}

.fblock:hover .imgwrap img,
.journal_big:hover .imgwrap img,
.journal_small:hover .imgwrap img {
	opacity: .2;
}

.slides li:hover .imgwrap img {
	opacity: .2;
}

#sequence {
	border-bottom: 5px solid #E3E3E3;
}

.sequence-pagination {
	background: #313131 !important;
}

.custom-nav {
	padding-top: 100px;
}

/* Responsive navigation */

@media (max-width: 980px) {

	#menu-top {
		flex-direction: column !important;
		align-items: flex-start !important;
	}

	#menu-top p {
		text-align: left !important;
	}

	/* Cache les réseaux sociaux en responsive */
	.social-warp,
	ul.social-menu {
		display: none !important;
	}

	/* Header layout */
	#topnav .header-top {
		position: relative !important;
		padding-right: 30px !important;
		gap: 16px !important;
	}

	#topnav .header-bottom {
		flex-wrap: wrap !important;
		align-items: center !important;
		gap: 12px !important;
		padding-right: 30px !important;
	}

	/* Show burger */
	a#triggernav {
		display: block !important;
		margin: 10px 0 !important;
	}

	/* Menu container takes full width */
	#topnav .header-bottom #top-navigation {
		width: 100% !important;
		flex: 0 0 100% !important;
	}

	/* Hide menu by default */
	#top-navigation .nav {
		display: none;
		width: 100%;
		flex-direction: column;
		padding: 0;
		margin: 0;
		padding-left: 0;
		padding-bottom: 10px;
	}

	/* Menu ouvert (selon ce que toggle le thème) */
	#top-navigation .nav.shownav,
	#top-navigation.shownav .nav,
	#topnav.shownav #top-navigation .nav {
		display: flex !important;
	}

	/* Mobile look */
	#top-navigation .nav>li {
		display: block !important;
		width: 100% !important;
	}

	#top-navigation .nav>li>a {
		display: block !important;
		padding: 14px 12px !important;
		margin: 0 !important;
		border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
	}

	/* Sous menus fermés par défaut */
	#top-navigation .nav li ul,
	#top-navigation .nav li ul ul {
		display: none !important;
		position: static !important;
		left: auto !important;
		margin: 0 !important;
		width: 100% !important;
		border: 0 !important;
		visibility: visible !important;
	}

	/* Sous menu ouvert quand Superfish met sfHover (tap mobile) */
	#top-navigation .nav li.sfHover>ul,
	#top-navigation .nav li:focus-within>ul {
		display: block !important;
	}

	#top-navigation .nav li ul li a {
		margin: 0 !important;
		padding: 12px 12px 12px 24px !important;
		border-bottom: 1px solid rgba(255, 255, 255, 0.10) !important;
		font-size: 12px !important;
	}

	/* Remove the small arrow background that expects hover dropdown */
	.nav li.menu-item-has-children>a,
	.nav li.page_item_has_children>a {
		background-image: none !important;
		padding-right: 12px !important;
	}
}

@media (max-width: 600px) {

	/* Optional: stack logo + newsletter area nicely */
	#topnav .iframe {
		max-width: 100% !important;
		width: 100% !important;
	}

	img#logo {
		max-width: 220px !important;
		width: 100% !important;
	}
}

/* POP UP */

.popup-overlay {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(0, 0, 0, 0.55);
	z-index: 999999;

	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

.popup-overlay.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition: opacity 0.25s ease;
}

.popup-box {
	position: relative;
	width: 100%;
	max-width: 530px;
	background: #fff;
	padding: 70px 40px 70px 40px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);

	transform: translateY(12px) scale(0.98);
	opacity: 0;
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.popup-overlay.is-open .popup-box {
	transform: translateY(0) scale(1);
	opacity: 1;
}

.popup-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 42px;
	height: 42px;
	border: 0;
	background: transparent;
	font-size: 45px;
	line-height: 1;
	cursor: pointer;
}

.popup-box h2 {
	margin: 0 0 32px 0;
	color: #44AA20;
	font-size: 32px;
	line-height: 1.1;
	text-align: left !important;
}

.popup-box p {
	margin: 0 0 18px 0;
	color: #000000;
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	text-align: left !important;
	line-height: 24px;
    font-weight: 400;
}

.popup-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 14px 0;
}

.popup-btn {
	display: inline-block;
	background: #44AA20;
	color: #fff;
	padding: 22px 22px;
	width: 100%;
	text-align: center;
	text-decoration: none;
	font-weight: bold;
}

.popup-btn {
color: white !important;
font-weight: 700;
font-family: roboto;
font-size: 18px;
}

.popup-btn:hover {
	color: white !important;
}

.popup-btn:hover {
	opacity: 0.9;
}

.popup-link {
	display: inline-block;
	padding: 12px 6px;
	text-decoration: underline;
	color: #222;
}

.popup-optout {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #333;
}

@media (max-width: 600px) {
	.popup-box {
		padding: 22px 18px 18px 18px;
	}

	.popup-box h2 {
		font-size: 24px;
	}
}

@media (prefers-reduced-motion: reduce) {

	.popup-overlay,
	.popup-box {
		transition: none;
	}
}

.btn{
	padding: 16px 32px;
	background-color: #44AA20;
	color: white !important;
}