/*
 Theme Name: Maison des Femmes Nancy - 2025
 Description: Un thème enfant décliné du thème parent RemSEO Flexo. Le thème parent intègre la gestion des éléments vitrines + actualités + évènements + lieux d'accueil. Le thème enfant intègre du style CSS + code JS personnalisés et modifie certains gabarits du thème parent. L'ensemble est développé autour d'ACF + Elementor + Gutenberg
 Author: Rémi COLIN
 Template: remseowoocommerce
 Version: 1.0.0
*/

/*------------------------
 ##OVERWRITE Primary HTML
--------------------------*/
:root {
	--main-bg: #ffffff;
	--alt-bg: #F5F4F9; /*Grey ~light*/
	--secondary-bg: #EEEBFE; /*Violet ~Light*/
	--dark-txt-color: #131313; /*Black*/
	--hovered-dark-txt: #868683; /*Black*/
	--light-txt-color: #f5f5f5; /*White ~greyish*/
	--hovered-light-txt: #E0E0E0; /*White ~more greyish*/
	--title-color: #000000; /*Full Black*/
	--featured-color: #9F84BB; /*Violet*/
		--featured-color-50: rgba(159, 132, 187, 0.5);
		--featured-color-90: rgba(159, 132, 187, 0.9);
		--featured-color-80: rgba(159, 132, 187, 0.8);
		--featured-color-darker: #484393;
		--featured-color-lighter: #EEEBFE; /*#D5C8E1*/
	--alt-featured-color: #FACEC3; /*Rose ~Light skin*/
	--alt-dark-feat-color : #E8461F; /*Red ~Nancy Metropole*/
	--ctas-color: #9F84BB; /*Same as featured color*/
	--ctas-darker-color: #484393;
	--cf-submit-color: #9F84BB;
	--dev-feedbacks-color : #F39200;
}

/*New fonts - Body*/
@font-face {
	font-family:'Roboto-Regular';
	src: url('./assets/fonts/Roboto-Regular.ttf') format('TrueType');
	font-display: swap;
}

@font-face {
	font-family:'Roboto-Bold';
	src: url('./assets/fonts/Roboto-Bold.ttf') format('TrueType');
	font-display: swap;
}

@font-face {
	font-family:'Roboto-Light';
	src: url('./assets/fonts/Roboto-Light.ttf') format('TrueType');
	font-display: swap;
}

/*New fonts - Titles*/
@font-face {
	font-family:'InterstateRegular';
	src: url('./assets/fonts/InterstateRegular.otf') format('OpenType');
	font-display: swap;
}

@font-face {
	font-family:'InterstateBlack';
	src: url('./assets/fonts/InterstateBlack.otf') format('OpenType');
	font-display: swap;
}

body {font-weight: 400; font-size: 1.1em; font-family: 'Roboto-Regular', sans-serif;}
em {font-family: 'Roboto-Light', sans-serif;}
h1 {font-family: 'InterstateBlack', sans-serif;}
h2,
h3,
h4,
h5,
h6 {
	font-family: 'InterstateRegular', sans-serif;
}

/*---------------------
  ##FAST custom/fix
----------------------*/
/*Fix image cover object-position*/
.img-cover {object-position: center center;}
/*FIX elementor word wrap/break on small screen/container*/
.mdfncy-wrap-fix p,
.mdfncy-wrap-fix li,
.mdfncy-wrap-fix a,
.mdfncy-wrap-fix span {
	word-wrap: anywhere;
}
.mdfncy-wrap-fix h1,
.mdfncy-wrap-fix h2,
.mdfncy-wrap-fix h3,
.mdfncy-wrap-fix h4,
.mdfncy-wrap-fix h5,
.mdfncy-wrap-fix h6 {
	word-break: break-all;
}
/*Ensure reservation btn is always visible in remseo-event single page template*/
a.resa-trigger {z-index: 10;}
/*FIX post feed with custom MdF (borders) design*/
.post-feed {margin-top: 5rem !important;}
.post-feed > div.loop-title {padding: 12px 0 48px 12px;}
.post-feed > div.loop-title > h2 {font-size: 2rem;}
.panel-post.card .card-description {bottom: -24px;}

/*FIX posts archive CTA color (see more) | Accessibility WCAG*/
.article-feed-thumbnail figure figcaption .show-more-link {
	color: var(--dark-txt-color) !important;
}

/*FIX absolute title in elementor (above img)*/
div.elementor-element.elementor-absolute.mdfncy-abs-title {width: 80%;text-align: center;left: calc(10% + 20px) !important;}

nav.site-navigation a.mdfncy-emergency-help-btn {
	height: 100%;
	text-align: center;
	font-size: 1rem;
	text-transform: uppercase;
	background-color: var(--featured-color-darker);
	color: var(--light-txt-color);
	transition: 400ms all ease-in-out;
}

nav.site-navigation a.mdfncy-emergency-help-btn:hover {
	background-color: var(--alt-dark-feat-color);
	color: var(--dark-txt-color);
}

/*---------------------
  ##Izmir custom
----------------------*/
.c4-izmir {
  --primary-color: var(--featured-color);
  --secondary-color: var(--featured-color-darker);
  --transition-duration: 500ms;
  --border-width: 6px;
  --overlay-opacity: .5;
  --padding: 0;
}

/*---------------------
  ##Emergency exit
----------------------*/
/*Body custom classes*/
body.mdfncy-first-visit {overflow-y: hidden;}
body.mdfncy-first-visit.overlay-closed {overflow-y: auto;}

/*First visit overlay*/
body:not(.mdfncy-first-visit) div.first-visit-overlay {display: none;}
body.mdfncy-first-visit div.first-visit-overlay {
	position: fixed;
	width: 100vw;
	height: 100vh;
	background-color: rgba(0, 0, 0, 0.75);
	z-index: 9998;
	transition: 400ms all ease-in-out;
}
body.mdfncy-first-visit.overlay-closed div.first-visit-overlay {height: 0vh;}

/*First visit overlay CONTENT*/
div.first-visit-overlay > p.emerg-exit-helper-txt {
	position: absolute;
	top: 50%;
	right: 72px;
	color: var(--light-txt-color);
	padding-top: 8px;
}
div.first-visit-overlay > p.emerg-exit-helper-txt > i.fas.fa-share {
	position: absolute;
	top: -16px;
	right: 0px;
	font-size: 24px;
	color: var(--light-txt-color);
}
body.mdfncy-first-visit.overlay-closed div.first-visit-overlay > p.emerg-exit-helper-txt {display: none;}

/*FIXED (right) Emergency button*/
div.first-visit-overlay a.close-overlay {
	display: block;
	color: var(--light-txt-color);
	background-color: var(--featured-color-darker);
	width: max-content;
	padding: 6px 12px;
	margin: 16px 0;
}

body > a.emergency-exit {
	position: fixed;
	display: flex;
	right: 0px;
	top: 50%;
	z-index: 9999;
	width: 64px;
	background-color: var(--alt-dark-feat-color);
	padding: 12px 24px;
	border: none;
	border-radius: 20px 0 0 20px;
	font-family: 'SourceSans3-Bold', sans-serif;
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: var(--light-txt-color);
	cursor: pointer;
	transition: 400ms all ease-in-out;
}

body > a.emergency-exit > i {padding: 0 6px;}

body > a.emergency-exit > span {
	display: none;
	opacity: 0;
	transition: 300ms all ease-in-out;
}

body > a.emergency-exit:hover {
	right: 0px;
	width: 148px;
	background-color: var(--featured-color-darker);
}

body > a.emergency-exit:hover > span {display: block;opacity: 1;}

@media all and (max-width: 580px) {
	body > a.emergency-exit {right: -12px;padding-left: 12px;}
	div.first-visit-overlay > p.emerg-exit-helper-txt {font-size: 1rem;padding-left: 6px;}
}

/*-----------------------------
  ## Forminator Custom
-------------------------------*/
/*FIX vertical alignment between consentment checkbox and label*/
div.forminator-checkbox__label.forminator-consent__label > p {margin-top: 0;}

/*FIX auto width fields*/
div.forminator-col-12.w50 {max-width: min(50%,var(--width));}

@media all and (max-width: 580px) {
	div.forminator-col-12.w50 {max-width: initial;}
}

/*-----------------------------
  ## Elementor - Generic
-------------------------------*/
.elementor-element.elem-custom-cta > a {width: 100%;}
.elementor-element.elem-custom-cta > a:after {
	content: '';
	position: relative;
	display: block;
	bottom: -6px;
	left: 50%;
	width: 0%;
	border-bottom: 2px solid;
	transition: 400ms all ease-in-out;
}
.elementor-element.elem-custom-cta:hover > a:after {width: 100%;left: 0%;}

.elementor-element.title-icons-fa .fa {padding-right: 12px; margin-bottom: auto;}
.elementor-element.title-icons-fa .fas {padding-right: 12px; margin-bottom: auto;}
.elementor-element.title-icons-fa .far {padding-right: 12px; margin-bottom: auto;}

.elementor-widget-video.img-disabled .elementor-custom-embed-image-overlay img {opacity: 0}
.elementor-element > .elementor-widget-shortcode > .elementor-widget-container > .elementor-shortcode > .theme-widget {
	padding: 0;
	margin: 0;
}
.elementor-testimonial-wrapper .elementor-testimonial-content {font-size: 1rem; font-style: italic;}
.elementor-counter .elementor-counter-number {
	font-size: 2.5rem;
	font-weight: 700;
	background: var(--alt-featured-color);
	color: var(--light-txt-color);
	padding: 6px 12px;
	border-radius: 12px;
}

.elementor-element.elementor-widget-counter.custom-counter .elementor-counter .elementor-counter-number-wrapper .elementor-counter-number-prefix,
.elementor-element.elementor-widget-counter.custom-counter .elementor-counter .elementor-counter-number-wrapper .elementor-counter-number-suffix {
	align-content: center;
	font-size: 1rem;
	font-weight: 400;
}

/*-------------------------------
  ## Elementor MdF Nancy partners temoignage
---------------------------------*/
div.elementor-widget.elementor-widget-text-editor.remseo-custom {
	max-height: 280px;
	overflow-y: auto;
	scrollbar-color: var(--featured-color) var(--alt-featured-color);
	scrollbar-width: thin;
}
div.elementor-widget.elementor-widget-text-editor.remseo-custom i.fas {display: none;}
div.elementor-widget.elementor-widget-text-editor.remseo-custom > p:first-child:before {
	content: '\f10d';
	font-family: 'Font Awesome 5 Free';
	font-weight: 900;
	color: var(--featured-color);
	margin: 0 12px 0 0;
}

/*
This custom property invalidates styles on hover, thereby enforcing a style recomputation. 
This is needed to work around a bug in Safari for scrollbar properties.
*/
div.elementor-widget.elementor-widget-text-editor.remseo-custom:hover {--fix: ;}

div.elementor-widget.elementor-widget-text-editor.remseo-custom > hr {
	position: relative;
	left: -7.5%;
	min-height: 4px;
	max-width: 20%;
	background-color: var(--alt-featured-color);
	border: none;
}

/*-------------------------------
  ## Elementor MdF Nancy partner Gallery
---------------------------------*/
div.elementor-element.mdfncy-logo-partners.elementor-widget-image-gallery .gallery {display: flex;flex-wrap: wrap;}
div.elementor-element.mdfncy-logo-partners.elementor-widget-image-gallery figure.gallery-item {max-width: initial;flex-basis: 20%;}
div.elementor-element.mdfncy-logo-partners.elementor-widget-image-gallery figure.gallery-item > div {
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 24px auto;
}
div.elementor-element.mdfncy-logo-partners.elementor-widget-image-gallery figure.gallery-item img {width: 225px;height: auto;}

@media all and (max-width: 1024px) {
	div.elementor-element.mdfncy-logo-partners.elementor-widget-image-gallery figure.gallery-item {flex-basis: 25%;}
}

@media all and (max-width: 768px) {
	div.elementor-element.mdfncy-logo-partners.elementor-widget-image-gallery figure.gallery-item {flex-basis: 33%;}

	div.elementor-element.mdfncy-logo-partners.elementor-widget-image-gallery figure.gallery-item img {width: 190px;}
}

@media all and (max-width: 580px) {
	div.elementor-element.mdfncy-logo-partners.elementor-widget-image-gallery figure.gallery-item {flex-basis: 100%;}
}
/*-------------------------------
  ## Elementor MdF Nancy
  SVG Baseline
---------------------------------*/
div.elementor-element.e-con.mdfncy-baseline-lefted:before {
	content: url('./assets/images/elements_-01.svg');
	position: absolute;
	height: 80%;
	top: 10%;
	left: 32px;
}
svg.mdfnct-left-label {height: 340px;}

/*-------------------------------
  ## Elementor MdF Nancy
  Borders TOP-LEFTED
---------------------------------*/
div.elementor-element.e-con.mdfncy-border-top:before {
	content: '';
	position: relative;
	top: -16px;
	left: -32px;
	width: 150px;
	height: 90px;
	border-top: 6px solid var(--featured-color);
	border-left : 6px solid var(--featured-color);
	border-radius: 12px 0 0 0;
}

.mdfncy-border-top:before,
div.elementor-element.elementor-widget.mdfncy-border-top:before {
	content: '';
	position: absolute;
	top: -32px;
	left: -32px;
	width: 150px;
	height: 90px;
	border-top: 6px solid var(--featured-color);
	border-left : 6px solid var(--featured-color);
	border-radius: 12px 0 0 0;
}

/*-------------------------------
  ## Elementor MdF Nancy
  Borders TOP-RIGHTED
---------------------------------*/
div.elementor-element.e-con.mdfncy-border-top-right:before {
	content: '';
	position: relative;
	top: -16px;
	right: -32px;
	width: 150px;
	height: 90px;
	border-top: 6px solid var(--featured-color);
	border-right: 6px solid var(--featured-color);
	border-radius: 0 12px 0 0;
}

div.elementor-element.elementor-widget.mdfncy-border-top-right:before {
	content: '';
	position: absolute;
	top: -32px;
	right: -32px;
	width: 150px;
	height: 90px;
	border-top: 6px solid var(--featured-color);
	border-right : 6px solid var(--featured-color);
	border-radius: 0 12px 0 0;
}

/*-------------------------------
  ## Elementor MdF Nancy
  Borders BOTTOM-RIGHTED
---------------------------------*/
div.elementor-element.e-con.mdfncy-border-bottom-right:before {
	content: '';
	position: relative;
	bottom: -16px;
	right: -32px;
	width: 150px;
	height: 90px;
	border-bottom: 6px solid var(--featured-color);
	border-right: 6px solid var(--featured-color);
	border-radius: 0 0 12px 0;
}

div.elementor-element.elementor-widget.mdfncy-border-bottom-right:before {
	content: '';
	position: absolute;
	bottom: -32px;
	right: -32px;
	width: 150px;
	height: 90px;
	border-bottom: 6px solid var(--featured-color);
	border-right : 6px solid var(--featured-color);
	border-radius: 0 0 12px 0;
}

/*-------------------------------
  ## Elementor MdF Nancy
  Borders TOP-BOTTOM
---------------------------------*/
div.elementor-element.e-con.mdfncy-borders-tb:before {
	content: '';
	position: relative;
	top: -16px;
	left: 25%;
	width: 50%;
	height: 36px;
	border-top: 6px solid var(--alt-featured-color);
	border-left : 6px solid var(--alt-featured-color);
	border-right : 6px solid var(--alt-featured-color);
	border-radius: 12px 12px 0 0;
}

div.elementor-element.e-con.mdfncy-borders-tb:after {
	content: '';
	position: relative;
	top: -16px;
	left: 25%;
	width: 50%;
	height: 36px;
	border-bottom: 6px solid var(--alt-featured-color);
	border-left : 6px solid var(--alt-featured-color);
	border-right : 6px solid var(--alt-featured-color);
	border-radius: 0 0 12px 12px;
}

div.elementor-element.elementor-widget.mdfncy-borders-tb:before {
	content: '';
	position: absolute;
	top: -24px;
	left: -2.5%;
	width: 105%;
	height: 36px;
	border-top: 6px solid var(--alt-featured-color);
	border-left : 6px solid var(--alt-featured-color);
	border-right : 6px solid var(--alt-featured-color);
	border-radius: 12px 12px 0 0;
}

div.elementor-element.elementor-widget.mdfncy-borders-tb:after {
	content: '';
	position: absolute;
	bottom: -24px;
	left: -2.5%;
	width: 105%;
	height: 36px;
	border-bottom: 6px solid var(--alt-featured-color);
	border-left : 6px solid var(--alt-featured-color);
	border-right : 6px solid var(--alt-featured-color);
	border-radius: 0 0 12px 12px;
}

/*-------------------------------
  ## Elementor Carrousel Custom
---------------------------------*/
/*Absolute height for our slider*/
div.elementor-widget-image-carousel.mdfncy-slider-custom-1 {height: 540px;}
div.elementor-widget-image-carousel.mdfncy-slider-custom-1 > .elementor-image-carousel-wrapper {height: 100%;}

/*No arrow controls*/
div.elementor-widget-image-carousel.mdfncy-slider-custom-1 > .elementor-image-carousel-wrapper > .elementor-swiper-button-prev,
div.elementor-widget-image-carousel.mdfncy-slider-custom-1 > .elementor-image-carousel-wrapper > .elementor-swiper-button-next {
	display: none !important;
}
/*Bullet controls on top*/
div.elementor-widget-image-carousel.mdfncy-slider-custom-1 > .elementor-image-carousel-wrapper > .swiper-pagination-bullets {
	position: absolute;
	top: -24px;
}

/*Adapt image to cover container*/
div.elementor-widget-image-carousel.mdfncy-slider-custom-1 > .elementor-image-carousel-wrapper > .swiper-wrapper > .swiper-slide > figure.swiper-slide-inner {
	height: 100%;
	display: flex;
	justify-content: center;
	align-content: center;
}

div.elementor-widget-image-carousel.mdfncy-slider-custom-1 > .elementor-image-carousel-wrapper > .swiper-wrapper > .swiper-slide > figure.swiper-slide-inner > img.swiper-slide-image {
	object-fit: contain;
	object-position: center bottom;
	height: 100%;
}

/*---------------------
  ## Elementor Modal
----------------------*/
/*Elementor modal management with materialize.css*/
body:not(.elementor-editor-active) div.e-con.e-child > .modal {position: fixed;}

.elementor > .elementor-element.e-con.e-parent .e-con.e-child.modal {
	display: none;
	width: 55%;
	padding: 0;
	margin: 0 auto;
	overflow-y: auto;
	border-radius: 2px;
}

/*-----------------------------
  ## Posts archive
-------------------------------*/
section.post-feed > div.post-container {margin-top: 12px;margin-bottom: 12px;}
.panel-post.classic .post-thumbnail figure img {height: 275px;}
.panel-post.classic .post-main-datas {padding: 24px 12px;}
.panel-post .post-main-datas .archive-post-title {transition: 400ms all ease-in-out;}
.panel-post:hover .post-main-datas .archive-post-title {color: var(--featured-color-darker) !important;}

.panel-post .card-title {text-align: center;}
.panel-post .card-title > span.access-type {
	font-size: 1rem;
	font-weight: 400;
	padding-bottom: 12px;
}

.panel-post .card-body > div.card-subtitle {
	width: max-content;
	font-size: 0.9rem;
	background-color: var(--featured-color-darker);
	color: var(--light-txt-color);
	padding: 4px 12px;
	margin: 0 auto;
}

.panel-post .card-resa-metas {
	position: absolute;
	top: 12px;
	left: 0;
	font-size: 0.9rem;
	background-color: var(--featured-color);
	color: var(--light-txt-color);
	text-align: center;
	padding: 6px;
}

/*-----------------------------
  ## ACF widget - Teams
-------------------------------*/
.team-section .team-cards .acf-block-slider .team-content .card.show-more .text {background-color: var(--featured-color-80)}
div.elementor-element.elementor-widget-shortcode div.theme-widget.team-section button,
div.elementor-element.elementor-widget-shortcode div.theme-widget.team-section button:hover {background-color: transparent;}
div.elementor-element.elementor-widget-shortcode div.theme-widget.team-section button.slick-prev {left: 0;}
div.elementor-element.elementor-widget-shortcode div.theme-widget.team-section button.slick-next {right: 2rem;}

/*---------------------
  ## Header
----------------------*/
/*Main navigation*/
nav.site-navigation {height: 90px;}
ul.branding-logos-nav {list-style: none; margin: 0 auto 0 12px;}
ul.branding-logos-nav li.logo-container-nav a.site-branding img.custom-logo {max-height: 105px; width: auto; padding: 12px 0;}

nav.site-navigation ul.main-menu {background-color: var(--featured-color-lighter);}
nav.site-navigation ul.main-menu li {margin: 0 36px;}

.site-navigation .menu-item.featured-nav {background: var(--featured-color-darker);}

.main-menu li.current-menu-item:not(.featured-nav) a {border-color: transparent;}

/*Sticky navigation*/
.site-navigation .menu-item.fixed-only {
	width: 0px;
	margin: 0px;
	opacity: 0;
	transition: 400ms all ease-in-out;
}

.site-navigation.sticky .menu-item.fixed-only {width: 100%;margin: 0 auto;opacity: 1;}

/*Navigation submenus*/
.site-navigation ul.main-menu ul.sub-menu {background-color: var(--featured-color);}

.site-navigation ul.main-menu > li.menu-item-has-children > .sub-menu::before {border-left-color: var(--alt-featured-color);border-bottom-color: var(--featured-color);}

/*MOBILE NAV*/
.main-menu li.menu-item-hamburger {margin: 12px 36px 12px 6px;}

/*---------------------
  ## Footer
----------------------*/
.main-footer {background-color: var(--featured-color-darker)}
.main-footer div > img.footer-logo {max-width: 125px;height: auto;}
.main-footer div.footer-multiple-imgs > svg {max-width: 240px;height: auto; margin: 0 auto;}
.main-footer div.footer-multiple-imgs > svg path.st0 {fill: var(--main-bg);}

.main-footer div.widget-address.multiple.col-12_sm-12_xs-12 {
	margin-bottom: 36px;
}

.main-footer div.main-logo-branded > p {margin: 0; text-align: center;}
.main-footer div.main-logo-branded > p:last-child {margin-top: 16px;}

@media all and (max-width: 580px) {
	.main-footer div.widget-address.multiple > div:first-child {
		width: 80%;
		margin: 0 auto;
	}
	.main-footer div.footer-multiple-imgs > img.footer-logo {
		max-width : calc(33% - 24px);
	}
}
