/*
Theme Name: Maison Totale
Theme URI: https://maisontotale.example/
Description: Maison Totale.
Author: SUPERO
Author URI: https://maisontotale.example/
Template: hello-elementor
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: maison-totale
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Evenements shortcode accordion */
.evenements-container {
	border-top: 4px solid currentColor;
}

.evenement-item {
	border-bottom: 4px solid currentColor;
}

.elementor-tab-title {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	cursor: pointer;
	padding: 0.75rem 0;
}

.elementor-tab-title .elementor-accordion-title,
.elementor-tab-title .evenement-date-heures {
	margin: 0;
}

.evenement-date-heures {
	margin-bottom: 10px;
}

.evenement-titre-wrap {
	flex: 1;
	min-width: 0;
}

.evenement-etiquettes {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.5rem;
}

.evenement-etiquette {
	margin: 0;
	display: inline-block;
}



.evenement-etiquette-separateur {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.evenement-etiquette-separateur img {
	display: block;
	height: 25px;
	width: auto;
}

h1.evenement-etiquette{
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	line-height: 0 !important;
}

.evenement-prix-libre {
	display: block;
    max-width: 250px !important;
	height: auto;
	margin-left: auto;
	margin-top: 1rem;
}

.evenement-image-une {
	margin-top: 1rem;
}

.evenement-image-une img {
	display: block;
	max-width: 50%;
	width: 100%;
	height: auto;
}

.evenement-media-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	align-items: start;
	margin-top: 1rem;
}

.evenement-media-grid .evenement-prix-libre {
	order: 2;
	margin-top: 0;
	margin-left: 0;
	justify-self: end;
}

.evenement-media-grid .evenement-image-une {
	order: 1;
	margin-top: 0;
}

.evenement-media-grid .evenement-image-une img {
	max-width: 100%;
}

.evenement-accordion-indicator {
	flex-shrink: 0;
	font-size: 1.5em;
	line-height: 0.4;
	user-select: none;
	transition: transform 0.35s ease;
}

.evenement-contenu {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.2s ease, padding 0.2s ease;
	padding: 0;
}

.evenement-contenu.elementor-active {
	max-height: 2000px;
	padding-bottom: 1rem;
	transition: max-height 0.45s ease, padding 0.45s ease;
}

.evenement-contenu h2{
    margin-bottom: 0 !important;
}

.elementor-widget-text-editor a {
    color: #000000;
	border-bottom: 3px solid #000000;
}

footer .elementor-widget-text-editor a {
    color: var( --e-global-color-secondary );
}

.elementor-widget-text-editor ul {
	list-style: none;
	padding-left: 0;

}

.elementor-widget-text-editor ul li {
	position: relative;
	padding-left: 2.5em;
}

.elementor-widget-text-editor ul li::before {
	content: '';
	display: inline-block;
	position: absolute;
	left: 0;
	top: 0.1em;
	width: 2em;
	height: 2em;
	background-image: url('img/fleche2.svg');
	background-repeat: no-repeat;
	background-size: contain;
}

.elementor-widget-text-editor h2 {
	margin-bottom: 0;
	margin-top: 1em;

}

@media (max-width: 767px) {
	.evenement-etiquettes {
		margin-top: 0.1rem;
		gap: 0.25rem;
	}

	.evenement-media-grid {
		grid-template-columns: 1fr;
	}

	.evenement-media-grid .evenement-prix-libre {
		order: initial;
		justify-self: start;
	}

	.evenement-media-grid .evenement-image-une {
		order: initial;
	}
}

/* Global anti scroll horizontal */
html,
body {
	max-width: 100%;
	overflow-x: hidden;
}

/* Header desktop seulement: ajustements de position du menu et switch langue */
@media (min-width: 1025px) {
	.elementor-nav-menu .menu-item:not(.menu-item-language-switch) {
		transform: translateX(20px);
	}

	.elementor-nav-menu .menu-item-language-switch > a {
		display: flex;
		align-items: flex-end;
		height: 100%;
	}

	.elementor-nav-menu .menu-item-language-switch .menu-language-switch-label {
		display: block;
		margin: 0;
		line-height: 0;
		align-self: flex-end;
		transform: translateY(3px);
		margin-right: -15px;
	}
}

@media (max-width: 1024px) {
	.elementor-nav-menu .menu-item-language-switch .menu-language-switch-label {
		transform: none !important;
		line-height: 0 em;
		margin-top: 0 !important;
		margin-bottom: 0 !important;
	}
}

