/* ------
SOMMAIRE
---------*/
/*
@AUTHOR : Elodie

01 - SPRITE
02 - CONTENU WYSIWYG
03 - MENU SCROLL UP
04 - POPUP FORMULAIRE
05 - MENU HAMBURGERS
06 - ICONES SOCIALES
07 - CLASS GENERIQUES
08 - ANIMATION SCROLL
09 - MODULE ET PAGE RECHERCHE

*/


/* ----------
01 - SPRITE
-------------*/

.ico-top {
    display: block;
    width: 40px !important;
    height: 40px;
    top: auto!important;
    bottom: 100px;
    right: 20px;
    background-position: -195px -36px;
    z-index: 100;
    position: fixed!important;
    opacity: 0;
	background-image: url(/wp-content/themes/mediapilote/img/charte/icon-select.svg);
	background-repeat: no-repeat;
    background-position: center;
	background-color: var(--color-secondary-light);
	-webkit-transition: background .1s;
	-o-transition: background .1s;
	transition: background .1s;
	rotate: 180deg;
}
.ico-top:hover {
	background-color: var(--color-secondary-x-light);
	background-position: -245px -36px;
}
.ico-top.is_stuck {
    opacity: 1;
}

/* ------------
06 - CONTENU WYSIWYG
--------------*/


table{
	border-collapse:collapse;
	border-spacing:0;
	border:1px solid #ccc;
	margin:auto;
	width:100%;
	margin-bottom:15px;
}
table caption{
	color: #ccc;
	font-size: 14px;
	font-weight:bold;
	margin:5px 0;
	text-align:left;
}
th{
	color:#fff;
	border:1px solid #ccc;
	color:#666;
	font-size:14px;
	font-weight:bold;
	padding:2px;
}
td{
	border:1px solid #ccc;
	padding:2px;
}
td img{
	padding:3px;
}


/* ------------------------
08 - MENU SCROLL UP
--------------------------*/
.scrollUp{
	position: fixed;
	top: 0;
	width: 100%;
	z-index : 3;
	-webkit-transition: top 0.2s ease-in-out;
	-o-transition: top 0.2s ease-in-out;
	transition: top 0.2s ease-in-out;
}
.scrollUp.nav-up{
	-webkit-transition: top 0.2s ease-in-out;
	-o-transition: top 0.2s ease-in-out;
	transition: top 0.2s ease-in-out;
	top: -130px !important;
}


/*--------------------------------------
09- POPUP FORMULAIRE + REALISATION -----
----------------------------------------*/
.contactPopup.popup,
.realisationPopup.popup {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 101;
}
.contactPopup.popup .popup-inner {
	width: 80%;
    max-width: 632px;
}
.contactPopup.popup .img-intervention {
	background-image: url(/wp-content/themes/mediapilote/img/charte/popup-contact-img.png);
	background-repeat: no-repeat;
	background-size: 91px;
	width: 91px;
	height: 91px;
}
.contactPopup .popup-content {
    background: #FCFAF7;
    padding: 32px;
    border-radius: 24px;
    position: relative;
    width: 100%;
    max-height: 80vh; /* Limite la hauteur de la popup */
    overflow-y: auto; /* Ajoute un défilement vertical si nécessaire */
}

.contactPopup .close,
.realisationPopup .close {
	position: absolute;
	top: -38px;
    right: 0px;
	background-image: url(/wp-content/themes/mediapilote/img/charte/icon-cross.svg);
	background-repeat: no-repeat;
	background-size: 20px;
	font-size:26px;
	height: 20px;
	width: 20px;
	color: var(--white);
	cursor: pointer;
	text-indent: -999px;
}
.contactPopup .popupForm {
    background-color: var(--white);
    padding:24px;
    border-radius: 24px;
}

/*-----------------------
10- POPUP REALISATIONS-----
------------------------*/

.realisationPopup .popup-inner {
	width: 75%;
    max-width: 95%;
}
.realisationPopup .popup-content {
    padding: 32px;
    border-radius: 24px;
    position: relative;
    max-height: 80vh; /* Limite la hauteur de la popup */
    overflow-y: auto; /* Ajoute un défilement vertical si nécessaire */
}
.contactPopup .gform-footer input[type=submit] {
    background-position: calc(31% - 10px) center;
}


/* ------------------------
09 - POPUP ACTUALITE
--------------------------*/
.popup-wrap{
	background: rgba(0, 0, 0, 0.7);
	bottom: 0;
	left: 0;
	padding: 15% 30%;
	position: absolute;
	right: 0;
	top: 0;
	z-index: 99;
}
.box-simple-popup{
	background: #fff;
	position: relative;
}
.box-simple-popup .box-titre{
	background: #46a1bf;
	color: #fff;
	padding: 15px 30px;
}
.box-simple-popup .popup-btn-close{
	cursor: pointer;
	height: 40px;
	position: absolute;
	right: -20px;
	top: -20px;
	width: 40px;
}
.box-simple-popup .popup-btn-close span{
	display: none;
}


/* ----------
11 - ICONES SOCIALES
-------------*/

/**
* alert
*/
.alert
{
	background: green;
	color:#FFF;
	padding:10px;

	width:100%;
	text-align: center;
}

.alert.alert-error
{
	background: rgb(194, 24, 12);
}

/* 12 - CLASS GENERIQUES */

/* Position */

.relative {
	position: relative;
}

.absolute {
	position: absolute;
}


/* Box shadow */

.box-shadow {
	-webkit-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.47);
	box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.47);
}

/* MEDIA // Cover */

.cover {
	overflow: hidden;
}
	.cover img{
		-o-object-fit: cover;
		   object-fit: cover;
		font-family: 'object-fit: cover';
		height: 100%;
		width: 100%;
	}


/* ------
15 - ANIMATION SCROLL
---------*/
/*
Opacité seule : classSectionToAnimate
Opacité + top : classSectionToAnimate animateTop
Opacité + bottom : classSectionToAnimate animateBottom
Opacité + top Left : classSectionToAnimate animateTopLeft
Opacité + top Right : classSectionToAnimate animateTopRight
Opacité + bottom Left : classSectionToAnimate animateBottomLeft
Opacité + bottom Right : classSectionToAnimate animateBottomRight
*/
.animate-elem{
	opacity: 0.1;
	position: relative;
}
.animate-elem-25{
	opacity: 1;

	-o-transition-duration: 2s;

	   transition-duration: 2s;
	-webkit-transition-duration: 2s;
}

.animate-elem.animateTop{ top: -30px; }
.animate-elem-25.animateTop{ top: 0; }

.animate-elem.animateBottom{ bottom: -30px; }
.animate-elem-25.animateBottom{ bottom: 0; }

.animate-elem.animateTopLeft{ left: -30px; top: -30px; }
.animate-elem-25.animateTopLeft{ left: 0; top: 0; }

.animate-elem.animateTopRight{ right: -30px; top: -30px; }
.animate-elem-25.animateTopRight{ right: 0; top: 0; }

.animate-elem.animateBottomLeft{ left: -30px; bottom: -30px; }
.animate-elem-25.animateBottomLeft{ left: 0; bottom: 0; }

.animate-elem.animateBottomRight{ right: -30px; bottom: -30px; }
.animate-elem-25.animateBottomRight{ right: 0; bottom: 0; }
	


/* 16 - MODULE ET PAGE RECHERCHE */
span.ico.loupe{
	width: 40px;
	height: 40px;
	background-position: -157px -95px;
	position: relative;
}
span.ico.loupe::before, span.ico.loupe::after{
	content: "";
	position: absolute;
	top: 0;
	width: 1px;
	height: 100%;
	background-color: var(--color00);
	left: -5px;
}
span.ico.loupe::before{
}
span.ico.loupe::after{
	left: inherit;
	right: -5px;
}
.box-search{
	padding-right: 50px;
}	
	.box-search .loupe{
		cursor: pointer;
	}
	.box-search .loupe:hover, .box-search.active .loupe{
		background-position: -207px -95px;
	}
	.box-search .loupe:hover::after, .box-search .loupe:hover::before, .box-search.active .loupe::after{
		background-color: var(--color01);
	}
	.box-search.active .loupe::before{
		display: none;
	}
	.box-search #search-2{
		display: none;
	}
	.box-search.active #search-2{
		display: block;
	}
	.box-search #search-2 .screen-reader-text{
		display: none;
	}
	.box-search #search-2 .screen-reader-text, .box-search #search-2 input#s {
		opacity: 0;
		-webkit-transition: opacity 0.5s ease-in-out;
		-o-transition: opacity 0.5s ease-in-out;
		transition: opacity 0.5s ease-in-out;
	}
	.box-search input#searchsubmit {
		background-color: transparent;
		border: transparent!important;
		text-indent: -5000px;
		width: 0;
		height: 0;
		padding: 0;
		margin: 0;
	}
	.box-search.active div.widget_search input#s {
		opacity: 1!important;
		padding: 6px 10px;
		border: 2px solid var(--color01);
		border-radius: 5px;
		outline: none;
		margin-right: 10px;
	}
/* page résultats */
#resultats-recherche .resultatItem{
	background-color: var(--color00);
	padding: 25px 30px;
    -webkit-box-shadow: -5px 5px 36px -18px rgba(0,0,0,0.5);
	box-shadow: -5px 5px 36px -18px rgba(0,0,0,0.5);
	margin-bottom: 30px;
	border-left: 4px solid var(--color02);
}
#resultats-recherche .resultatItem::before{
	display: none;
}
	#resultats-recherche .resultatItem h2{
		margin-bottom: 20px;
	}
body.search-results .titreRecherche{
	margin-bottom: 30px;
}

/* ------
17 - MODULE AVIS
---------*/

.ti-widget.ti-goog .ti-review-item>.ti-inner {
	background: #F6F7F9!important;
	background-color: #F6F7F9!important;
}
.ti-widget.ti-goog .ti-widget-container .ti-name {
	color: var(--neutral-800)!important;
	font-size: 20px!important;
	font-weight: 700!important;
}
.ti-widget.ti-goog .ti-widget-container .ti-date {
	color: var(--neutral-500)!important;
	font-size: 16px!important;
}
.ti-widget.ti-goog .ti-review-content {
	font-size: 16px!important;
	color: var(--neutral-700);
}
.ti-widget.ti-goog .ti-read-more span {
	margin-top:10px!important;
	font-size: 16px!important;
	color: var(--neutral-500)!important;
}

/*---------
10 - FILTRE
-----------*/

.searchandfilter ul li, .searchandfilter ul{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.searchandfilter > ul > li {
	margin-bottom: 0!important;
	padding-left: 0 !important;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}
.searchandfilter > ul > li > ul > li {
	margin-bottom: 0!important;
}
.searchandfilter > ul > li > ul {
	gap:12px;
}
.searchandfilter ul li li {
	border-radius: 99px;
	border:1px solid var(--color-secondary);
    padding: 12px 24px !important;
    text-decoration: none !important;
    font-size: 1.4rem;
    background-color: var(--white);
    cursor: pointer;
	margin-right: 0;
}
.searchandfilter ul li li label {
	color: var(--neutral-500) !important;
}
.searchandfilter ul li.sf-option-active {
    border: 1px solid var(--color-secondary);
	background-color: var(--color-secondary-x-light);
}
.searchandfilter ul li.sf-option-active label {
    color: var(--color-secondary)!important;
}
.searchandfilter ul li li:hover{
    background-color: var(--color-secondary-light);
}
.searchandfilter ul li.sf-option-active:hover {
    background-color: var(--color-secondary-x-light); /* Garde la couleur active */
}
.searchandfilter ul li li:focus{
    background-color: #F0F4F9;
    color: var(--color-secondary) !important;
}
.searchandfilter ul li::before{
	display: none;
}
.searchandfilter label{
    cursor: pointer;
    padding-left: 0 !important;
}
.searchandfilter ul li li::before, .searchandfilter ul li li input {
    display: none;
}


/* modale */
.modaal-close {
    background-color: var(--color00) !important;
    border-radius: 20px !important;
    -webkit-border-radius: 20px !important;
    -moz-border-radius: 20px !important;
    -ms-border-radius: 20px !important;
    -o-border-radius: 20px !important;
}

.modaal-overlay{
	display: none !important;
}
.opacityOver{
	opacity: 0.3;
}
.opacityOver.active{
	opacity: 1;
}



/* Scrollbar */
::-webkit-scrollbar {
	width: 7px;
	height: 5px;
	cursor: pointer;
}

::-webkit-scrollbar-thumb {
	background: #e1e1e1;
	border: 31px none #ffffff;
	border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
	background: #a1a1a1;
}
::-webkit-scrollbar-thumb:active {
	background: #a3a3a3;
}
::-webkit-scrollbar-track {
	background: #f0f0f0;
	border: 1px solid #ffffff;
	border-radius: 5px;
}
::-webkit-scrollbar-track:hover {
	background: #f2f2f2;
}
::-webkit-scrollbar-track:active {
	background: #f5f5f5;
}
::-webkit-scrollbar-corner {
	background: transparent;
}

.bloc-double-colonne-titre-cta-texte h3::after{
	content: '';
    display: block;
    background-color: var(--color02);
    width: 30px;
    height: 4px;
	margin-top: 1rem;
	
}
.bloc-double-colonne-titre-cta-texte h3{
	color: var(--color02);
		font-family: "lato", sans-serif;
		text-transform: uppercase;
		font-size: 2rem;
		font-weight: 300;
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-orient: vertical;
		-webkit-box-direction: normal;
		    -ms-flex-direction: column;
		        flex-direction: column;
		-webkit-box-align: end;
		    -ms-flex-align: end;
		        align-items: flex-end;

}



/* Filtre de recherche */

.filter-offres form{
	background-image: none;
	-webkit-box-shadow: 0 0 #fff;
	        box-shadow: 0 0 #fff;
	border-radius: 0;
	-webkit-border-radius: 0;
	-moz-border-radius: 0;
	-ms-border-radius: 0;
	-o-border-radius: 0;
	max-width: 100% !important;
	padding: 0;
}
.searchandfilter ul{
	margin: 0;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}
.searchandfilter ul li{
	margin-right: 2rem;
}
.searchandfilter select.sf-input-select{
	border: none;
}


/* 18 - WIDGET JE M'INSCRIS */


.inscription-widget{
	position: fixed;
	right: 0;
	top: 220px;
	border-top-left-radius: 20px;
	border-bottom-left-radius: 20px;
	z-index: 100;
}
.inscription-widget a{
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;

}
.inscription-widget a::before{
	content: '';
    background-image: url(../img/charte/sprite-agence-active.svg);
    background-repeat: no-repeat;
    background-size: 400px auto;
    display: inline;
    margin: 0 auto;
    transition: 0.2s ease-in-out;
    -webkit-transition: 0.2s ease-in-out;
    -moz-transition: 0.2s ease-in-out;
    -ms-transition: 0.2s ease-in-out;
    -o-transition: 0.2s ease-in-out;
    background-position: -259px -90px;
    width: 40px !important;
    height: 20px !important;
    min-width: 40px !important;
    min-height: 20px !important;
}


/* 19 - AFFICHAGE ACF */

	
/*-----------------------------
---------- RESPONSIVE ---------
-------------------------------*/


/*01 - DESKTOP */
@media screen and (max-width: 999px){
	.realisationPopup .popup-content {
    	width: 88%;
	}
	.realisationPopup .popup-inner {
		width: 85%;
	}
}

@media screen and (max-width: 767px), (max-device-width: 767px){
	.searchandfilter ul li li {
		padding: 6px 15px !important;
		font-size: 1.3rem;
	}
	.contactPopup.popup .popup-inner {
		width: 90%;
	}

}

@media screen and (max-width:580px) {
    .contactPopup .popup-content {
        width: 95%;
        padding: 15px;
    }
}