.sg-filter-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* .sg-filter-button {
	display: inline-block;
	cursor: pointer;
	border: 2px solid #ccc;
	border-radius: 20px;
	padding: 10px 15px;
	transition: all 0.3s ease-in-out;
	font-size: 14px;
	background-color: #f9f9f9;
} */
.sg-filter-button {
	display: inline-block;
}
.sg-filter-button input {
	display: none;
}

.sg-filter-button span {
	display: inline-block;
	cursor: pointer;
	transition:all 160ms cubic-bezier(0.4, 0, 0.2, 1) 0s;
}

.sg-filter-acf-title{
	display: block;
	position: relative;
	overflow: hidden;
	width: 100%;
}

.sg-filter-acf-title.add-customm-svg::after{
	transform: none;
	margin-left: 10px;
	background-size: 55%;
	background-position: bottom left;
}

.elementor-widget-sg_logiciels_filters .sg-filter-acf-title.add-customm-svg::after{
	background-image: url('/wp-content/themes/sgstargraf-child/public/heading-custom-yellow.svg');
}

@media only screen and (max-width: 768px) {
	.sg-filter-acf-title.add-customm-svg::after{
		background-size: 630px 13px;
	}
}
/* .sg-filter-button input:checked + span {
	background-color: #0073e6;
	color: #fff;
	border-color: #0073e6;
} */ 


.sg-reset-filters {
	display: flex;
	align-items: center;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 14px;
	position: absolute;
	top: -40px;
	right: 0;
}

body[data-elementor-device-mode="mobile"] .sg-reset-filters{
	position: relative;
	top: -10px;
	margin-bottom: 10px;
}

.sg-reset-filters.sg-hidden{
	display: none;
}

.sg-reset-filters svg {
	margin-right: 10px;
	margin-top: -2px;
}

.sg-loading::before{
	content: '';
	position: absolute;
	display: block;
	top: 0;
	right: 0;
	left: 0;
	bottom: 0;
	background-color: #fff;
	opacity: 0.7;
	backdrop-filter: blur(20px);
	z-index: 9;
}
.sg-loading:after {
	content: '';
	position: absolute;
	display: block;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 40px;
	height: 40px;
	border: 4px solid rgba(0, 0, 0, 0.2);
	border-left-color: #000;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
	z-index: 10;
}

@keyframes spin {
	from { transform: translate(-50%, -50%) rotate(0deg); }
	to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Style du popup (masqué par défaut) */
body[data-elementor-device-mode="mobile"] .sg-popup-filters-mobile,
body[data-elementor-device-mode="tablet"] .sg-popup-filters-mobile{
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background: rgba(0, 0, 0, 0.8); /* Fond semi-transparent */
	z-index: 9999;
	display: flex;
	justify-content: center;
	align-items: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
	display: none;
}
.sg-popup-filters-mobile .add-customm-svg::after{
	z-index: 1;
}
/* Contenu du popup */
body[data-elementor-device-mode="mobile"] .sg-popup-filters-mobile .sg-popup-content,
body[data-elementor-device-mode="tablet"] .sg-popup-filters-mobile .sg-popup-content
{
	background: #fff;
	padding: 30px;
	max-width: 90%;
	max-height: calc(100% - 60px);
	margin: 30px 0;
	overflow-y: auto;
	border-radius: 20px;
}

/* Quand le popup est actif */
body[data-elementor-device-mode="mobile"] .sg-popup-filters-mobile.sg-active,
body[data-elementor-device-mode="tablet"] .sg-popup-filters-mobile.sg-active
 {
	opacity: 1;
	visibility: visible;
	display: flex;
}

body[data-elementor-device-mode="mobile"] .sg-popup-close {
	position: absolute;
	top: 7px;
	right:7px;
	width: 15px;
	height: 15px;
	background: none;
	border: none;
	cursor: pointer;
	z-index: 10001;
}
body[data-elementor-device-mode="tablet"] .sg-popup-close
 {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 15px;
	height: 15px;
	background: none;
	border: none;
	cursor: pointer;
	z-index: 10001;
}

body[data-elementor-device-mode="mobile"] .sg-popup-close svg,
body[data-elementor-device-mode="tablet"] .sg-popup-close svg
 {
	width: 13px;
	height: 12px;
	fill: #303030;
}

.elementor-nav-menu--layout-horizontal .elementor-nav-menu>li ul.mega-menu ul, .elementor-nav-menu--layout-horizontal .elementor-nav-menu>li>.scroll-down{
	top: 0 !important;
}

.sub-menu.mega-menu > li.menu-item-shortcode ul.elementor-sitemap-list.elementor-sitemap-categorie-list {
  display: block;
  top: initial;
  position: relative;
  width: auto;
}

.sub-menu.mega-menu > li.menu-item-shortcode ul.elementor-sitemap-list.elementor-sitemap-categorie-list.elementor-icon-list-items {
  display: block;
}

.sub-menu.mega-menu > li.menu-item-shortcode ul.elementor-sitemap-list.elementor-sitemap-categorie-list .elementor-sitemap-item {
  padding: 0 !important;
}

.sub-menu.mega-menu > li.menu-item-shortcode ul.elementor-sitemap-list.elementor-sitemap-categorie-list .elementor-sitemap-item a {
  padding: 0;
  margin: 0;
  border: 0;
  white-space: initial;
  background-color: transparent !important;
}

.sub-menu.mega-menu > li.menu-item-shortcode .sg-button-classic .elementor-button-link{
	border-width: 2px 2px 2px 2px !important;
	border-color: var(--e-global-color-primary) !important;
	border-radius: 40px 40px 40px 40px !important;
	padding: 18px 25px 18px 25px !important;
}
.sub-menu.mega-menu > li.menu-item-shortcode .sg-button-classic .elementor-button-link:hover, .sub-menu.mega-menu > li.menu-item-shortcode .sg-button-classic .elementor-button-link:focus{
	background-color: var(--e-global-color-d5f667d) !important;
	border-color: var(--e-global-color-d5f667d) !important;
}
.sub-menu.mega-menu > li.menu-item-shortcode .sg-button-outline .elementor-button-link{
	border-width: 2px 2px 2px 2px !important;
	border-color: var(--e-global-color-primary) !important;
	color: var(--e-global-color-primary) !important;
	background-color: transparent !important;
	border-radius: 40px 40px 40px 40px !important;
	padding: 18px 25px 18px 25px !important;
}
.sub-menu.mega-menu > li.menu-item-shortcode .elementor-button-link{
	display: inline-block;
}
.sub-menu.mega-menu > li.menu-item-shortcode .sg-button-outline .elementor-button-link:hover, .sub-menu.mega-menu > li.menu-item-shortcode .sg-button-outline .elementor-button-link:focus{
	background-color: var(--e-global-color-primary) !important;
	color: #fff !important;
}

.sub-menu.mega-menu > li.menu-item-shortcode .elementor-widget-image a:hover, .sub-menu.mega-menu > li.menu-item-shortcode .elementor-widget-image a:focus{
	background-color: transparent;
}

body[data-elementor-device-mode="desktop"] .sub-menu.mega-menu{
	margin-top: 20px !important;
}
body[data-elementor-device-mode="mobile"] .elementor-nav-menu--dropdown .elementor-sub-item.elementor-sub-item.elementor-sub-item,
body[data-elementor-device-mode="tablet"] .elementor-nav-menu--dropdown .elementor-sub-item.elementor-sub-item.elementor-sub-item{
	text-transform: none;
}

.elementor-nav-menu--dropdown {
	padding-top: 15px;
	padding-bottom: 15px;
}

.elementor-nav-menu--layout-horizontal .elementor-nav-menu > li > a {
  position: relative;
}

.elementor-nav-menu--layout-horizontal .elementor-nav-menu > li > a::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -25px; /* Ajuste selon l'espace souhaité */
  transform: translateX(-50%);
  width: 42px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg width='42' height='18' viewBox='0 0 42 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 0L41.7846 17.25H0.215391L21 0Z' fill='white'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
	background-color: transparent !important;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.elementor-nav-menu--layout-horizontal .elementor-nav-menu > li > a[aria-expanded="true"]::before {
  opacity: 1;
}

.sg-cat-svg-link{
	position: relative;
	display: inline-block;
	padding-left: 45px;
}
.sg-cat-svg-link svg{
	position: absolute;
	left: 0;
	width: 30px;
	height: auto;
	top: 50%;
	transform: translateY(-50%);
}

body[data-elementor-device-mode="mobile"] .sg-cat-svg-link svg{
	width: 20px;
}


body[data-elementor-device-mode="mobile"] .sg-cat-svg-link{
	padding-left: 30px;
}

.sg-current-svg-cat svg{
	width: 48px;
	height: auto;
}

.elementor-sitemap-item a, .elementor-sitemap-item a svg{
	transition: all .3s;
}

.sg-predictive-search-wrapper{
	position: relative;
	max-width: none;
}

.sg-predictive-search-wrapper .ui-autocomplete{
	position: absolute;
	max-width: none;
	border-radius: 15px;
	padding-top: 10px;
	padding-bottom: 10px;
	font-family: var(--e-global-typography-text-font-family);
}

.ui-autocomplete .ui-menu-item .ui-menu-item-wrapper{
	padding-top: 8px;
	padding-bottom: 8px;
}

.sg-predictive-search-wrapper{
	position: relative;
}


.sg-predictive-search-wrapper .sg-predictive-search-input{
	width: 100%;
	border: none;
	outline: none;
	box-shadow: none;
	appearance: none;
}

.sg-predictive-search-wrapper .sg-predictive-search-input:focus {
	outline: none;
	box-shadow: none;
}


.sg-predictive-search-wrapper .sg-search-icon{
	position: absolute;
	top:50%;
	transform: translateY(-50%);
	right: 10px;
	width: 58px;
	height: 58px;
	border-radius: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 8;
	transition: all .3s;
	font-size: 30px;
}

.sg-predictive-search-wrapper .sg-search-icon svg{
	width: 30px;
}
.sg-predictive-search-wrapper .sg-search-loading svg{
	width: 20px;
}
.sg-predictive-search-wrapper .sg-search-loading{
	display: none;
	position: absolute;
	right: 20px;
	top:50%;
	transform: translateY(-50%);
	height: 20px;
	z-index: 8;
	animation: spin 2s linear infinite;
}


.sg-predictive-search-wrapper.sg-is-loading .sg-search-icon i{
	display: none;
}
.sg-predictive-search-wrapper.sg-is-loading .sg-search-loading{
	display: block;
}

body[data-elementor-device-mode="mobile"] .sg-predictive-search-wrapper .sg-search-icon{
	right: 6px;
	width: 55px;
	height: 55px;
}
body[data-elementor-device-mode="mobile"] .sg-predictive-search-wrapper .sg-search-loading{
	right:14px;
}

.sg-hidden-gallery{
	display: none !important;
}


.sg-nb-filters-active {
	background: white;
	color: var(--e-global-color-primary);
	font-size: 12px;
	font-weight: bold;
	padding: 1px 3px;
	border-radius: 10px;
	margin-left: 5px;
	width: 15px;
	height: 15px;
	display: inline-block;
	text-align: center;
}
.post-type-archive-logiciel  .sg-nb-filters-active {
	color: var(--e-global-color-d5f667d);
}


.easepick-wrapper{
	display: block;
	max-width: 100%;
}

.sggl-calendar{
	display: none;
}


.elementor-nav-menu--main .elementor-nav-menu ul.sub-menu > li:not(.menu-item-shortcode) a{
	border-left: 0;
	min-width: 205px;
}
.elementor-nav-menu--main .elementor-nav-menu ul.sub-menu > li.menu-item-shortcode .elementor-widget-image a{
padding: 0;
}

.cf7mls-btns, .cf7mls-btns.cf7mls-btns-last-step.cf7mls-btns-last-step{
	display: none;
}

.fieldset-cf7mls p:empty{
	display: none;
}

.sg-form-inscription-trigger-submit, .sg-form-inscription-trigger-prev{
	display: none;
}

.sg-submit-dn{
	display: none;
}

.wpcf7 label{
	display: block;
	margin-top: 10px;
}
.wpcf7 .wpcf7-list-item label{
	margin-top: 0;
}
.wpcf7 .wpcf7-text, .wpcf7 .wpcf7-email{
	width: 100%;
}

.sg-hidden-fields{
	opacity: 0;
	height: 0;
	visibility: hidden;
}


.elementor-widget-text-editor table {
	width: 100%;
	border-collapse: collapse;
	color: var(--e-global-color-text);
}

.elementor-widget-text-editor table th,
.elementor-widget-text-editor table td {
	padding: 12px;
	border: 1px solid #c8c5c5;
}

.elementor-widget-text-editor table th {
	color: var(--e-global-color-d5f667d);
	font-weight: bold;
	text-align: left;
}

.elementor-widget-text-editor table tbody tr:nth-child(even) {
	background-color: #fff;
}


/* Center the icon and add a transition effect */
.sg-taxonomy-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: .4s; /* Applies to all properties on hover */
}

.sg-taxonomy-text, .sg-taxonomy-term{
	transition: .4s;
}
.sg-taxonomy-item{
	display: flex;
}
