/*
 * MO Elementor Widgets — baseline structural styles.
 *
 * NOTE: When the Loire theme is still active, its own qodef-* styles keep
 * applying to these classes. This file only provides a self-contained
 * fallback so the widgets remain usable if the theme is removed.
 * For pixel-perfect parity, extract the relevant rules from
 * plugins/loire-core/assets/css/loire-core.css into this file.
 */

/* Section title */
.qodef-section-title .qodef-m-subtitle { margin: 0 0 6px; }
.qodef-section-title .qodef-m-title { margin: 0; }
.qodef-section-title .qodef-m-text { margin: 14px 0 0; }
.qodef-section-title.qodef-alignment--center { text-align: center; }
.qodef-section-title.qodef-alignment--right { text-align: right; }
.qodef-section-title.qodef-alignment--left { text-align: left; }

/* Icon with text */
.qodef-icon-with-text.qodef-layout--top { text-align: center; }
.qodef-icon-with-text .qodef-m-icon-wrapper { margin-bottom: 15px; }
.qodef-icon-with-text .qodef-m-icon { position: relative; display: inline-block; }
.qodef-icon-with-text .qodef-m-icon img,
.qodef-icon-with-text .qodef-m-icon svg { display: inline-block; max-width: 100%; height: auto; }
.qodef-icon-with-text .qodef-m-title { margin: 0; }
.qodef-icon-with-text .qodef-m-text { margin: 10px 0 0; }

/* Button */
.qodef-button {
	display: inline-flex; align-items: center; justify-content: center;
	text-decoration: none; cursor: pointer; transition: all .2s ease;
	padding: 14px 32px; line-height: 1;
}
.qodef-button.qodef-layout--filled { background: #b46d66; color: #fff; }
.qodef-button.qodef-layout--outlined { background: transparent; border: 2px solid currentColor; }
.qodef-button.qodef-layout--textual { padding: 0; background: transparent; position: relative; }
.qodef-button.qodef-layout--textual .qodef-m-text { border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.qodef-button.qodef-size--full { width: 100%; }

/* Single image */
.qodef-single-image { display: block; }
.qodef-single-image .qodef-m-image img { display: block; max-width: 100%; height: auto; }
.qodef-single-image.qodef-image-alignment--center { text-align: center; }
.qodef-single-image.qodef-image-alignment--right { text-align: right; }

/* Custom font */
.qodef-custom-font { margin: 0; display: block; }

/* Video button */
.qodef-video-button { position: relative; display: inline-block; }
.qodef-video-button .qodef-m-image img { display: block; max-width: 100%; height: auto; }
.qodef-video-button .qodef-m-play {
	position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
	display: inline-flex; align-items: center; justify-content: center;
	width: 80px; height: 80px; color: #fff; text-decoration: none;
}
.qodef-video-button .qodef-m-play-inner { position: relative; display: inline-flex; }
.qodef-video-button .mo-play-icon {
	width: 0; height: 0; border-style: solid;
	border-width: 12px 0 12px 20px; border-color: transparent transparent transparent currentColor;
}
.qodef-video-button .qodef-m-play-circle {
	position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
	width: 80px; height: 80px; border: 2px solid currentColor; border-radius: 50%;
}

/* Roadmap (simple / vertical) */
.qodef-roadmap .qodef-m-holder { position: relative; }
.qodef-roadmap.qodef-layout--simple .qodef-m-line {
	position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: currentColor; opacity: .2;
}
.qodef-roadmap .qodef-roadmap-item { position: relative; margin-bottom: 40px; }
.qodef-roadmap .qodef-e-content-year { font-weight: 700; }
.qodef-roadmap .qodef-e-content-title { margin: 4px 0; }
.qodef-roadmap.qodef-skin--light { color: #fff; }

/* Clients list hover fade */
.qodef-clients-list.qodef--hover-fade .qodef-e-logo { opacity: var(--qodef-client-initial-opacity, 1); transition: opacity .3s ease; }
.qodef-clients-list.qodef--hover-fade .qodef-e:hover .qodef-e-logo { opacity: var(--qodef-client-hover-opacity, .5); }
.qodef-clients-list .qodef-e-image img { max-width: 100%; height: auto; }
.qodef-clients-list .qodef-e { display: flex; align-items: center; justify-content: center; }

/* Testimonials / product grid items */
.qodef-testimonials-list .qodef-e-text { margin: 10px 0; }
.qodef-testimonials-list .qodef-e-author-name { font-weight: 700; }
.qodef-woo-product-list .qodef-e-media img { max-width: 100%; height: auto; }
.qodef-woo-product-list .qodef-e-inner { display: block; text-decoration: none; }

/* Minimal self-contained slider (approximation of the Qode Swiper slider) */
.mo-slider { position: relative; }
.mo-slider .mo-slider-track {
	display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
	gap: 30px; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.mo-slider .mo-slider-track::-webkit-scrollbar { display: none; }
.mo-slider .mo-slide { flex: 0 0 100%; scroll-snap-align: start; }
.mo-slider-nav { display: flex; gap: 10px; justify-content: center; margin-top: 20px; }
.mo-slider-nav button {
	width: 44px; height: 44px; border-radius: 50%; border: 1px solid currentColor;
	background: transparent; cursor: pointer; font-size: 20px; line-height: 1;
}

/* Self-contained lightbox */
.mo-lightbox {
	position: fixed; inset: 0; background: rgba(0,0,0,.85); z-index: 99999;
	display: flex; align-items: center; justify-content: center; padding: 20px;
}
.mo-lightbox__inner { position: relative; width: 100%; max-width: 960px; }
.mo-lightbox__inner iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; }
.mo-lightbox__inner img { display: block; max-width: 100%; max-height: 85vh; margin: 0 auto; }
.mo-lightbox__close {
	position: absolute; top: -40px; right: 0; color: #fff; font-size: 30px;
	background: none; border: 0; cursor: pointer; line-height: 1;
}

/* ==============================================================
   Sidebar boutique — Filtre par tarif (mo_price_filter)
   Géométrie de base uniquement : chaque valeur est surchargée par
   l'onglet Style d'Elementor (sélecteurs plus spécifiques).
   ============================================================== */
.mo-price-filter .screen-reader-text,
.mo-product-categories .screen-reader-text {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
	white-space: nowrap; border: 0;
}

.mo-price-filter .price_slider_wrapper .ui-slider {
	position: relative;
	height: 2px;
	border: 0;
	border-radius: 0;
	background-color: #e6e6e6;
	cursor: pointer;
}
.mo-price-filter .price_slider_wrapper .ui-slider .ui-slider-range {
	position: absolute;
	z-index: 1;
	display: block;
	height: 100%;
	border: 0;
	background-color: #b46d66;
}
.mo-price-filter .price_slider_wrapper .ui-slider .ui-slider-handle {
	position: absolute;
	z-index: 2;
	top: 50%;
	width: 12px;
	height: 12px;
	margin-left: -6px;
	transform: translateY(-50%);
	border-radius: 50%;
	background-color: #000;
	cursor: ew-resize;
	outline: none;
	box-sizing: border-box;
}

.mo-price-filter .price_slider_amount {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	margin: 23px 0 0;
}
/* The clearfix <div> and the text inputs (hidden by wc-price-slider.js once
   the slider is up) must never take part in the flex layout. */
.mo-price-filter .price_slider_amount .clear { display: none; }
.mo-price-filter .price_slider_amount .price_label { order: 1; }
.mo-price-filter .price_slider_amount .button { order: 2; }
.mo-price-filter .price_slider_amount input[type="text"] { order: 3; max-width: 100%; }
.mo-price-filter.mo-hide-price-label .price_slider_amount .price_label { display: none !important; }

.mo-price-filter.mo-layout--label-right .price_slider_amount .button { order: 1; }
.mo-price-filter.mo-layout--label-right .price_slider_amount .price_label { order: 2; }
.mo-price-filter.mo-layout--stacked .price_slider_amount,
.mo-price-filter.mo-layout--button-full .price_slider_amount {
	flex-direction: column;
	gap: 12px;
}
.mo-price-filter.mo-layout--stacked .price_slider_amount { align-items: flex-start; }
.mo-price-filter.mo-layout--button-full .price_slider_amount { align-items: stretch; }
.mo-price-filter.mo-layout--button-full .price_slider_amount .button { width: 100%; }

.mo-price-filter .price_slider_amount .button { cursor: pointer; }

/* Lien-bouton souligné qui glisse au survol (look Loire) */
.mo-price-filter.mo-button--underline .price_slider_amount .button {
	position: relative;
	overflow: hidden;
	padding: 0;
	border: 0;
	background-color: transparent;
	line-height: 1.6;
}
.mo-price-filter.mo-button--underline .price_slider_amount .button::before,
.mo-price-filter.mo-button--underline .price_slider_amount .button::after {
	content: '';
	display: block;
	position: absolute;
	bottom: 0;
	width: 100%;
	height: 1px;
	background-color: currentColor;
	transition: transform 0.4s cubic-bezier(0.31, 0.29, 0.05, 0.96);
}
.mo-price-filter.mo-button--underline .price_slider_amount .button::before { left: 0; }
.mo-price-filter.mo-button--underline .price_slider_amount .button::after {
	left: -100%;
	transition-delay: 0.3s;
}
.mo-price-filter.mo-button--underline .price_slider_amount .button:hover::before,
.mo-price-filter.mo-button--underline .price_slider_amount .button:hover::after {
	transform: translateX(100%);
}

/* ==============================================================
   Sidebar boutique — Catégories de produits (mo_product_categories)
   ============================================================== */
.mo-product-categories .mo-cats,
.mo-product-categories .mo-cats ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.mo-product-categories .mo-cat-row {
	display: flex;
	align-items: baseline;
	padding: 8px 0;
}
.mo-product-categories .mo-cat-row > a {
	color: inherit;
	text-decoration: none;
}
.mo-product-categories .mo-cat-row::before {
	flex: 0 0 auto;
	display: inline-block;
}
/* Fallback puce des sous-catégories, remplacée par le contrôle « Puce ». */
.mo-product-categories .mo-cats .children .mo-cat-row::before {
	content: '\2023';
	margin-right: 8px;
}
.mo-product-categories .mo-cats .children { padding-left: 14px; margin-top: 8px; }
.mo-product-categories .mo-cats .children .mo-cat-row { padding: 5px 0; }
.mo-product-categories .mo-cats .count { margin-left: 6px; opacity: 0.6; }
.mo-product-categories.mo-count--right .mo-cats .count { margin-left: auto; }

.mo-product-categories .mo-cat-toggle {
	flex: 0 0 auto;
	margin-left: auto;
	padding: 0 0 0 12px;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	line-height: 1;
	cursor: pointer;
}
.mo-product-categories .mo-cat-toggle::after { content: '+'; display: inline-block; }
.mo-product-categories li.mo-open > .mo-cat-row > .mo-cat-toggle::after { content: '\2212'; }

/* Accordéon : replié par défaut, déplié par la classe .mo-open (mo-widgets.js). */
.mo-product-categories.mo-children--accordion .mo-cats li.mo-has-children > ul.children { display: none; }
.mo-product-categories.mo-children--accordion .mo-cats li.mo-open > ul.children { display: block; }

/* ------------------------------------------------------------------
 * Métas produit (sur mesure) — mo_product_meta
 * ------------------------------------------------------------------ */
/* Hors tableau : les <tr> portent aussi la classe et doivent rester des lignes de tableau. */
.mo-product-meta:not(.mo-product-meta--table) .mo-product-meta__item { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0.3em; }
.mo-product-meta__label { font-weight: 600; }

/* En ligne : métas côte à côte, séparateur entre deux. */
.mo-product-meta--inline { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 0.6em; row-gap: 0.3em; }
.mo-product-meta__divider { display: none; opacity: 0.5; }
/* Séparateur affiché seulement après une méta visible (voir render()). */
.mo-product-meta--inline .mo-product-meta__item:not([hidden]) ~ .mo-product-meta__item > .mo-product-meta__divider { display: inline; }
/* Méta vide d'un produit variable, en attente d'une variation : le display des règles ci-dessus ne doit pas l'afficher. */
.mo-product-meta [hidden] { display: none !important; }

/* Liste : une méta par ligne. */
.mo-product-meta--stacked { display: flex; flex-direction: column; gap: 0.4em; }
.mo-product-meta--stacked .mo-product-meta__item { display: flex; flex-wrap: nowrap; }
.mo-product-meta--stacked .mo-product-meta__value { min-width: 0; }

/* Tableau. */
.mo-product-meta--table { width: 100%; border-collapse: collapse; margin: 0; }
.mo-product-meta--table th,
.mo-product-meta--table td { padding: 8px 12px; border: 1px solid rgba(0, 0, 0, 0.1); text-align: left; vertical-align: top; }
.mo-product-meta--table th { font-weight: 600; }

/* Grille : libellé au-dessus de la valeur. */
.mo-product-meta--grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mo-product-meta--grid .mo-product-meta__item { display: flex; flex-direction: column; gap: 0.2em; }
