/*
Theme Name: Méridien
Theme URI: https://www.sohappy-studio.com
Author: Agence So'Happy
Author URI: hhttps://www.sohappy-studio.com
Description: Theme for Meridien - Astra child theme
Template: astra
License: GNU General Public License v3
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Version: 1.0.0
*/
/******************************/
/********** Variables CSS *****/
/******************************/
:root {
	--main-color: #EE7501;
	--sub-color: #149D85;
    --white : #fff;
    --transparent-white : #ffffffc7;
	--grey: #C7C6C6;
	--black : #000;
    
	--raleway:'Raleway', sans-serif;
	--arial : "Arial Narrow", Arial, sans-serif;
}

/* --------------- GENERAL ---------------- */
html {
	font-size: 62.5%;
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
}
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
	font-size: 1.5rem;
	font-family: var(--raleway);
	color: #000;

}

h1, .entry-content h1 {
	
}
h2, .entry-content h2 {
	font-size: 2.5rem;
	text-transform: uppercase;
	font-weight: 800;
	color: var(--black);
}
h3, .entry-content h3 {
	text-transform: uppercase;
	font-weight: 800;
	color: var(--main-color);
}
h4, .entry-content h4 {

}
h5, .entry-content h5 {

}

/* définit un style commun pour les paragraphes */
p, a, ul li {
	font-family: var(--raleway);
	font-weight: 400;
	line-height: 23px;
	font-size: 1.6rem;
	color: var(--black);
}
p, .entry-content p {
	margin-top: 0;
	margin-bottom: 2rem;
}
p a, .entry-content li a {
	padding-bottom: 2px;
	border-bottom: var(--main-color) dotted 1px;
	text-decoration: none!important;
	color: inherit;
	font-weight: inherit;
}
.entry-content p a, .entry-content li a {
	color: var(--main-color);
	
}
.entry-content p a:hover, .entry-content li a:hover, .entry-content h4 a:hover{
	color: var(--sub-color);
	border-bottom-color: var(--sub-color);
}

strong {
	font-weight: 700;
}
em {
    font-style: italic;
}
.color-black {
	color: var(--black);
}
.color-white {
	color: var(--white);
}

/*********BOUTON**********/
.wp-block-button .wp-element-button {
	position: relative;
	padding: 10px 40px 10px 20px;
	background-color: var(--black);
	border: 1px solid var(--black);
	box-sizing: border-box;
	line-height: normal;

	color: var(--white);
	font-family: var(--raleway);
	font-size: 1.6rem;
	font-weight:400;
	text-decoration: none!important;

	transition: all .3s ease-in-out;
}
.wp-block-button .wp-element-button:hover {
	background-color: var(--main-color);
	border: 1px solid var(--main-color);
}
.wp-block-button .wp-element-button::after {
	position: absolute;
	display: block;
	content: "";

	top: 50%;
	right: 10px;
	transform: translate(0, -50%);

	width: 20px;
	height: 20px;

	background-color: var(--main-color);
	-webkit-mask-image: url("./assets/svg/small_arrow.svg");
	-webkit-mask-position: center;
	-webkit-mask-size: contain;
	-webkit-mask-repeat: no-repeat;

	transition: all .3s ease-out;
}
.wp-block-button a:hover::after {
	background-color: var(--white);
	right: 7px;
}
/****************************/
/**********TOP MENU**********/
/****************************/
#espace {
	cursor: pointer;
	cursor: pointer;
}
.submega {
	position: absolute;
	top: 100px;
	left: 50%;
	transform: translate(-50%, 0);
	margin: 0;
	opacity: 0;
	visibility: hidden;
    background-color: var(--black);
    padding: 20px;
    display: flex;
	align-items: center;
    justify-content: center;
	max-width: 1640px;
	width: 100%;
	height: 650px;
	z-index: 8;
	color: var(--white);
}
.submega ul {
	margin: 0;
	padding: 0;
}
.submega li {
	list-style: none;
	margin: 15px 0;
	text-align: center;
	color: var(--white);
}
.submenu-close {
	position: absolute;
	top: 30px;
	right: 30px;
	font-size: 3.4rem;
	color: var(--main-color);
	cursor: pointer;
}
.submega .wp-block-button.big-button a {
    position: relative;
    border-radius: 5px;
    padding: 15px;
    width: 400px;
    height: 400px;
    background-color: transparent;
    border: 2px solid var(--grey);
	margin: 20px;
}
.submega .wp-block-button.big-button a img {
	width: 100%;
	height: 100%;
	filter: grayscale(100%);
	object-fit: cover;
}
.submega .wp-block-button.big-button a .sub-image {
    width: 100%;
	height: 100%;
}
.submega .wp-block-button.big-button a:hover img {
	filter:none;
}
.submega .wp-block-button.big-button a span{
    color: var(--main-color);
    font-size: 2rem;
    text-transform: uppercase;
}
.sub-image{
   overflow: hidden;
}
.espace h3 {
	background-color: var(--black);
	position: absolute;
    left: 0;
    bottom: 0;
    height: 80px;
    width: 250px;
	line-height: 65px;
}

/****************************/
/**********SPECIFIC**********/
/****************************/
.FlexContainer {
	display: flex!important;
	flex-flow: row wrap;
}
.ContainerFlex {
	display: flex;
	flex-flow: column;
}
.center-row {
	display: flex!important;
	flex-flow: row wrap;
	align-items: center;
}
.align-center-row {
	align-items: center;
}
.justify-center-row {
	justify-content: center;
}
.align-end-row {
	align-items: flex-end!important;
}
.justify-end-row {
	justify-content: end;
}
.justify-between-row {
	justify-content: space-between;
}
.justify-around-row {
	justify-content: space-around;
}
.fixed {
	position: fixed;
}
/* enlève la marge interne*/
.no-padding {
	padding: 0!important;
}
/* enlève la marge externe*/
.no-margin {
	margin: 0!important;
}
/* bouton non cliquable */
.no-click {
	pointer-events: none;
	cursor: none;
}
.no-overflow {
	overflow: hidden;
}
/* sections en fullwidth */
.fullwidth {
	width: 100%!important;
	max-width: 100%!important;
}
/* Centre le background et remplit la div */
.full-background-fit {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}
/* cache le after et le before */
.no-after:after {
	visibility: hidden!important;
}
.no-before:before {
	visibility: hidden!important;
}
.no-desktop {
	display: none!important;
}
@media (max-width: 980px) {
	.no-desktop {
		display: unset!important;
	}
	.no-tablet {
		display: none!important;
	}
}
@media (max-width: 768px) {
	.no-tablet {
		display: unset!important;
	}
	.no-mobile {
		display: none!important;
	}
}
.min-width {
	width: 60%!important;
	margin: auto;
}

.text_image {
	height: 2.5rem;
	padding: 0 10px;
}
.img-zoom, .img-zoom * {
	overflow: hidden;
}
.img-zoom img {
	transition: all .5s ease-out;
}
.img-zoom:hover img {
	transform: scale(1.1);
}

/****************************/
/********** HEADER **********/
/****************************/
#masthead .site-above-header-wrap.ast-container {
	max-width: calc(var(--wp--custom--ast-container-width) - 160px);
	width: calc(100% - 100px);
}
#masthead .ast-primary-header-bar .site-primary-header-wrap {
	min-height: unset;
}
#masthead #ast-desktop-header > div > div {
	border: none;
}
#masthead #primary-site-navigation > div {
	display: flex;
}
/* SEARCH FIELD */
#masthead .ast-search-menu-icon {
	visibility: visible;
	opacity: 1;
	position: relative;
}
#masthead .ast-search-menu-icon > form {
	visibility: visible;
	opacity: 1;
	border-radius: 500px;
}
#masthead .ast-search-menu-icon > form .search-field {
	width: 235px;
	margin-right: 8px;
	border: none;
	background-color: transparent;
}

#masthead .main-header-menu li {
	padding: 10px 15px;
}
#masthead .main-header-menu li a {
	position: relative;
	padding: 0;
	text-transform: uppercase;
}
#masthead .main-header-menu li:hover a , #masthead .main-header-menu li.current-menu-item a {
	color: var(--black);
}
#masthead .main-header-menu li a::after {
	position: absolute;
	display: block;
	content: "";

	background-color: var(--main-color);
	width: calc(100% + 20px);
	height: 0px;
	bottom: -10px;
	left: 50%;
	transform: translate(-50%, 0);
	transition: all .1s ease-out;
}
#masthead .main-header-menu li a:hover::after , #masthead .main-header-menu li.current-menu-item a::after {
	height: 4px;
}
#masthead .home-btn {
	width: 30px;
	height: 100%;

	background-color: var(--black);
	-webkit-mask-position: center;
	-webkit-mask-size: contain;
	-webkit-mask-repeat: no-repeat;

	transition: all .1s ease-out;
}
#masthead .home-btn:hover {
	background-color: var(--main-color);
}
#masthead .menu-toggle svg {
	width: 25px;
	height: 25px;
} 
#masthead .menu-toggle {
	position: relative;
}
#masthead .menu-toggle::after {
	position: absolute;
	content: "MENU";
	display: block;

	font-size: 1rem;
	width: max-content;

	bottom: -5px;
	left: 50%;
	transform: translate(-50%, 0);
} 
/* FIXED MENU */
#fixed-menu {
	right: 0;
	top: 50%;
	transform: translate(0, -50%);
	z-index: 500;
}
#fixed-menu:not(.open) {
	pointer-events: none;
}
#fixed-menu a {
	position: relative;
	padding: 7px;
	width: 50px;
	height: 50px;
	background-color: var(--black);
	margin: 1px 0;
	cursor: pointer;

	transition: all .2s ease-out;
}
#fixed-menu a:hover {
	background-color: var(--main-color);
}
#fixed-menu a:hover img {
	filter: invert(100%);
}
#fixed-menu:not(.open) a:not(.toggle) {
	transform: translate(100%, 0);
}
#fixed-menu:not(.open) a.toggle::after {
	position: absolute;
	display: block;
	content: "accès rapide";
	bottom: -4px;
	left: 50%;
	transform: translate(-50%, 100%);

	font-weight: 800;
	text-align: center;
	font-size: 1.1rem;
	line-height: 1rem;
	text-transform: uppercase;

	opacity: 1;
	transition: all .2s ease-out;
}
#fixed-menu a.toggle {
	pointer-events: all;
}
#fixed-menu a.toggle img {
	padding: 7px;
	position: absolute;
	top: 0;
	left: 0;
	opacity: 1;
	pointer-events: all;
	transition: all .2s ease-out;
}
#fixed-menu a.toggle img.hidden {
	opacity: 0;
	pointer-events: none;
}
#fixed-menu a img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/****************************/
/********** CONTENT *********/
/****************************/
.slide_up {
	transform: translateY(50%); /*ANIMATION GSAP*/
	opacity: 0; /*ANIMATION GSAP*/
}
.slide_down {
	transform: translateY(-50%); /*ANIMATION GSAP*/
	opacity: 0; /*ANIMATION GSAP*/
}
.slide_right {
	transform: translateX(-50%); /*ANIMATION GSAP*/
	opacity: 0; /*ANIMATION GSAP*/
}
.slide_left {
	transform: translateX(50%); /*ANIMATION GSAP*/
	opacity: 0; /*ANIMATION GSAP*/
}

/* BIG BUTTONS */
.wp-block-button.big-button a, .wp-block-button.big-button a *  {
	transition: all .3s ease-out;
}
.wp-block-button.big-button a {
	position: relative;
	border-radius: 5px;
	padding: 15px;
	width: 200px;
	height: 200px;

	background-color: transparent;
	border: 2px solid var(--grey);
}
.wp-block-button.big-button a::after {
	position: absolute;
	display: block;
	content: "";

	top: unset;
	right: unset;
	transform: unset;

	bottom: 10px;
}
.wp-block-button.big-button a img {
	width: 70px;
	height: 55px;
	object-fit: contain;
	margin-bottom: 20px;
}
.wp-block-button.big-button a span {
	color: var(--black);
	min-height: 35px;
	font-size: 1.4rem;
	text-transform: uppercase;
}

.wp-block-button.big-button a:hover {
	background-color: var(--black);
	border: 2px solid var(--black);
}
.wp-block-button.big-button a:hover img {
	filter: invert(100%);
	-webkit-filter: invert(100%);
	-moz-filter: invert(100%);
}
.wp-block-button.big-button a:hover span {
	color: var(--white);
}
/* OVER IMAGE BUTTON */
.wp-block-button.overimg-button a {
	
	background-color: #ffffffc7;
	border-radius: 0;
	border: none;
	color: var(--main-color);
}
.wp-block-button.overimg-button a:hover {
	background-color: #000000c7;
	border-radius: 0;
	border: none;
	color: var(--white);
}

/******************/
/* CONTACT FORM 7 */
/******************/
.CForm {
	width: 100%;
	gap: 20px;
}
.CForm .CF-full {
	width: 100%;
}
.CForm .CF-half { width: calc(50% - 10px); }
.CForm .CF-onethird { width: calc(33% - 10px); }
.CForm .CF-twothird { width: calc(66% - 10px); }
.CForm .CF-onequarter {	width: calc(24% - 10px); }
.CForm .CF-threequarter { width: calc(74% - 10px); }

.CForm input, .CForm textarea {
	font-size: 1.5rem;
}
.CForm input:focus, .CForm textarea:focus {
	border: 1px solid var(--main-color)!important;
}
.CForm .CF-highlight {
	color: var(--main-color);
	font-weight: 800;
}

.CForm .CF-checkbox .wpcf7-checkbox {
	display: flex;
	flex-wrap: wrap;
}
.CForm .CF-checkbox .wpcf7-list-item {
	margin: 0 0 5px 1%;
	width: 32%;
	min-width: 250px;
}
.CForm .CF-radio .wpcf7-radio {
	display: block;
}
.CForm .CF-radio .wpcf7-list-item {
	margin: 0 1% 0 0;
}
.CForm .wpcf7-not-valid {
	border: 1px solid #dc3232;
}
.CForm .wpcf7-not-valid-tip {
	position: absolute;
	font-size: 1rem;
	bottom: 0;
	transform: translate(0,80%);
}
.CForm .CF-number label > span {
	width: 150px;
	display: block;
}
.CForm .CF-textarea .wpcf7-textarea  {
	resize: vertical;
}
.CForm .wpcf7-acceptance .wpcf7-list-item {
	margin: 0;
}
.CForm .CF-hr {
	position: relative;
}
.CForm .CF-hr h3 {
	display: inline-block;
	padding-right: 20px;
	margin: 0;
	background-color: var(--white);
}
.CForm .CF-hr::before {
	position: absolute;
	content: "";
	display: block;

	width: 100%;
	height: 2px;
	background-color: var(--main-color);

	top: 50%;
	left: 0;
	transform: translate(0, -50%);
	z-index: -1;
}
/***********************************/
/********** ENSEIGNES GRID *********/
/***********************************/
/* FILTER CONTAINER */
.filter-section {
	margin-top: 60px;
	margin-bottom: 100px;
}
.filter-section .filtrage {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 200px 1fr;
	grid-template-rows: 1fr;
	grid-column-gap: 40px;
	grid-row-gap: 0px; 
}
.filter-section .filtrage::after{
	position: absolute;
	content: "";
	display: block;
	width: 100%;
	height: 2px;

	left:0;
	top:50%;
	transform: translate(0, -50%);
	
	background-color: var(--grey);
	z-index: -1;
}
.filter-section .filtrage > .title {
	width: fit-content;
	height: 100%;
	padding: 0 20px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center; 
	background-color: var(--white);
}
.filter-section .filtrage > .site-subnav {
	display: flex;
	align-items: center;
	width: 100%;
	height: 100%;
	justify-content: end; 
}
.filter-section .filtrage .filter-container {
	width: max-content;
	justify-content: end; 
	background-color: var(--white);
	padding: 0 20px;
	gap: 10px;
}

/* FILTER */
.filter-section .filtrage select {
	font-family: var(--raleway);
	font-size: 1.2rem;
	background-color: var(--black);
	color: var(--white);
	height: 100%;
	border: none;
	padding: 10px 20px 10px 10px;

	appearance: none;
	background-image: url("./assets/svg/picto_drowdown_arrow.svg");
	background-repeat: no-repeat;
	background-position: right -0.2rem top 50%;
	background-size: 25px auto;
}
.filter-section .recherche * {
	height: 100%;
	width: 250px;
}
.filter-section .recherche p {
	position: relative;
	pointer-events: none;
}
.filter-section .recherche input {
	position: relative;
	pointer-events: all;
	font-family: var(--raleway);
	font-size: 1.2rem;
	color: #111;
	padding: 10px 50px 10px 10px;
	border-radius: 50px;
}
.filter-section .recherche p::after {
	position: absolute;
	content: "";
	display: block;

	width: 20px;
	height: 20px;
	right: 10px;
	top: 50%;
	transform: translate(0,-50%);

	background-color: var(--main-color);
	-webkit-mask-image: url("./assets/svg/picto_loupe.svg");
	-webkit-mask-position: center;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-size: contain;
}

/* GRID */
.enseignes_liste {
	display: flex;
	flex-wrap: wrap;
}
.enseignes_liste .enseigne-item {
	width: 23%;
	height: 200px;
	margin: 0 1% 125px;
	position: relative;
	padding: 20px;
	transition: all .3s ease-out;
}
.enseignes_liste .enseigne-item a > *{
	z-index: 1;
	position: absolute;
	transition: all .3s ease-out;
}
.enseignes_liste .enseigne-item .enseigne-logo {
	top: 0;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 80%;
	height: 100px;
	background-color: var(--white);
}
.enseignes_liste .enseigne-item:hover .enseigne-logo {
	top: 10px;
}
.enseignes_liste .enseigne-item .enseigne-logo img {
	width: 200px;
	max-width: 100%;
	height: 100%;
	padding: 10px 10px;
	object-fit: contain;
}
.enseignes_liste .enseigne-item .enseigne-title {
	bottom: -10px;
	left: 0;
	transform: translate(0, 100%);
}
.enseignes_liste .enseigne-item .enseigne-cat {
	display: block;
	bottom: 10px;
	left: 10px;
	padding: 5px 10px;
	
	font-size: 1.4rem;
	background-color: var(--black);
	color: var(--white);
}

.enseignes_liste .enseigne-item .enseigne-background {
	display: block;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	overflow: hidden;
	z-index: 0;
}
.enseignes_liste .enseigne-item .enseigne-background img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: all .3s ease-out;
}
.enseignes_liste .enseigne-item:hover .enseigne-background img {
	scale: 1.1;
}


/***********************************/
/********** ENSEIGNES PAGE *********/
/***********************************/
.single-enseigne .col.enseigne-infos-container {
	display: grid;
	grid-template-columns: 400px 1fr;
	grid-template-rows: 1fr;
	grid-column-gap: 100px;
	grid-row-gap: 0px;

}
.single-enseigne .enseigne-logo {
	height: 150px;
	padding: 20px 50px;
}
.single-enseigne .enseigne-logo img {
	height: 100%;
	width: 100%;
	object-fit: contain;
}
.single-enseigne .enseigne-infos {
	background-color: var(--black);
	padding: 20px;
	height: calc(100% - 150px);
}
.single-enseigne .enseigne-infos > * {
	color: var(--white);
}
.single-enseigne .enseigne-infos .cat {
	font-style: italic;
	font-size: 1.2rem;
}
.single-enseigne .enseigne-infos .social span {
	display: block;
}
.single-enseigne .enseigne-infos .social a {
	display: inline-block;
	width: 30px; 
	height: 30px;
	margin-right: 5px; 

	background-color: var(--white);
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	-webkit-mask-position: center;
}
.single-enseigne .enseigne-infos .social a:hover {
	background-color: var(--main-color);
}


/****************************/
/***********FOOTER***********/
/****************************/
#main-footer .footer-hr {
	margin-top: 30px;
	border-top: 2px solid var(--grey) ;
}
#main-footer .footer-hr span {
	padding: 5px 20px;
	margin-top: -17px;
	background-color: var(--white);
}
#main-footer .social img {
	width: 30px;
	height: 30px;
	margin: 10px 5px;
}
#main-footer .infos {
	margin-top: 0;
}
#main-footer .horaires {
	max-width: 500px;
}
#main-footer .horaires h3:not(:first-child) {
	margin-top: 15px;
}
#main-footer .horaires .wp-block-buttons {
	margin-top: 15px;
}
#main-footer .footer-menu {
	list-style: none;
}
#main-footer .footer-menu li a {
	padding: 5px 5px;
	margin: 5px;
}
#main-footer .row.bandeau img {
	margin-top: 20px;
	height: 300px;
	width: 100%;
	object-fit: cover;
}


/****************************/
/********DESKTOP ONLY********/
/****************************/
@media (min-width: 1200px) {
	.filter-section {
		margin-top: 0px;
	}
}
/****************************/
/**********TABLETTE**********/
/****************************/
@media (max-width: 980px) {
	.submega {
		position: absolute;
		top: 0;
		left: 0;
		transform: translate(0, 0);
		width: 100vw;
		height: calc(100vh - 100px);
		flex-wrap: wrap;
	}
	.submega .container {
		width: 100%;
		height: 100%;
	}
	.submega .wp-block-button.big-button a {
		width: 200px; 
		height: 200px;
	}
	.submega .espace h3 {
		height: 70px;
		width: 190px;
		line-height: 36px;
		font-size: 1.4rem;
	}
	
	#main-footer .infos {
		margin-top: 20px;
	}
	#main-footer .row {
		justify-content: center;
	}
	#main-footer .wp-block-buttons {
		justify-content: center;
	}
	.enseignes_liste .enseigne-item {
		width: 48%;
	}
	.filter-section .filtrage {
		grid-template-columns: 1fr 200px;

	}
	.single-enseigne .col.enseigne-infos-container {
		grid-template-columns: 1fr;
		grid-row-gap: 50px;
	}
	.single-enseigne .enseigne-liens > div {
		justify-content: center;
	}

}
/****************************/
/*********SMARTPHONE*********/
/****************************/
@media (max-width: 768px) { 
	.filter-section .filtrage {
		grid-template-columns: 1fr;
	}
	.filter-section .filtrage > .title {
		display: none;
	}
	.filter-section .filtrage > .site-subnav {
		justify-content: center;
	}
	.single-enseigne .enseigne-liens .site-btn {
		display: none;
	}

	/* CONTACT FORM 7 */
	.CForm .CF-half, .CForm .CF-onethird, .CForm .CF-twothird, .CForm .CF-onequarter, .CForm .CF-threequarter  {
		width: calc(100% - 10px);
	}

	.CForm .CF-checkbox .wpcf7-list-item {
		width: 99%;
	}
}
@media (max-width: 480px) {
	.enseignes_liste .enseigne-item {
		width: 98%;
	}
	
	.filter-section .filtrage .filter-container {
		flex-direction: column-reverse;
    	align-items: center;
	}
	.filter-section .filtrage::after {
		display: none;
	}
}
/****************/
/** KEYFRAMES ***/
/****************/