/**
 * Sematec — styles des composants.
 *
 * Les couleurs, typographies, espacements et tailles se règlent dans Elementor
 * (Réglages du site + réglages des widgets). Ce fichier ne contient que ce qu'Elementor
 * ne sait pas faire seul : décorations, interactions et widgets Sematec.
 * Les classes « sm-… » s'ajoutent dans Elementor via Avancé > Classes CSS.
 */

:root {
	--sm-green: var(--e-global-color-primary, #227544);
	--sm-green-dark: #15512E;
	--sm-forest: var(--e-global-color-secondary, #0F3A23);
	--sm-ink: #16241B;
	--sm-text: var(--e-global-color-text, #3E4D44);
	--sm-lime: var(--e-global-color-accent, #7CC72F);
	--sm-mint: #E6F2D6;
	--sm-sand: #F5F3EC;
	--sm-line: #E4E1D6;
	--sm-radius: 10px;
	--sm-shadow: 0 16px 32px rgba(15, 58, 35, .12);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

.screen-reader-text:focus {
	background: #fff;
	clip: auto !important;
	clip-path: none;
	color: var(--sm-green);
	display: block;
	font-weight: 600;
	height: auto;
	left: 8px;
	padding: 12px 20px;
	top: 8px;
	width: auto;
	z-index: 100000;
}

.elementor-widget-text-editor p:last-child { margin-bottom: 0; }

/* ---------- En-tête collant : il se réduit dès qu'on fait défiler la page ---------- */
.sm-site-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 50;
	transition: box-shadow .3s ease;
}
.sm-site-header .elementor > .e-con.e-parent {
	transition: min-height .3s ease;
}
.sm-site-header .elementor .elementor-widget-image img {
	transition: width .3s ease;
}
.sm-site-header.is-scrolled { box-shadow: 0 6px 20px rgba(15, 58, 35, .08); }
.sm-site-header.is-scrolled .elementor > .e-con.e-parent { --min-height: 72px; }
.sm-site-header.is-scrolled .elementor .elementor-widget-image img { width: 150px; }
.sm-site-header .elementor .sm-cta .elementor-button {
	transition: padding .3s ease, font-size .3s ease, transform .3s cubic-bezier(.22, .61, .36, 1), background-color .2s ease;
}
.sm-site-header.is-scrolled .elementor .sm-cta .elementor-button {
	padding: 11px 18px;
	font-size: 15px;
}
@media (max-width: 767px) {
	.sm-site-header.is-scrolled .elementor > .e-con.e-parent { --min-height: 56px; }
	.sm-site-header.is-scrolled .elementor .elementor-widget-image img { width: 108px; }
}
@media (max-width: 600px) {
	/* La barre d'admin WordPress n'est pas fixe sur petit écran */
	.sm-site-header { top: 0; }
}

/* ---------- Sur-titre « — CE QUE NOUS FAISONS » ---------- */
.sm-eyebrow .elementor-heading-title {
	display: flex;
	align-items: center;
	gap: 12px;
}
.sm-eyebrow .elementor-heading-title::before {
	content: "";
	flex: 0 0 28px;
	height: 3px;
	background: var(--sm-lime);
}

/* ---------- Mot mis en couleur dans un titre ---------- */
.elementor-heading-title .sm-hl { color: var(--sm-green); }

/* ---------- Boutons « lien » soulignés ---------- */
.sm-link .elementor-button {
	padding-left: 0;
	padding-right: 0;
}
/* Flèches des boutons et liens : même léger déplacement au survol partout */
.elementor-button .elementor-button-icon { transition: transform .2s ease; }
.elementor-button:hover .elementor-button-icon,
.elementor-button:focus-visible .elementor-button-icon { transform: translateX(4px); }
.sm-dl .elementor-button:hover .elementor-button-icon,
.sm-dl .elementor-button:focus-visible .elementor-button-icon { transform: translateY(3px); }
.sm-arrow-link::after {
	content: "→";
	display: inline-block;
	margin-left: .3em;
	transition: transform .2s ease;
}
.sm-arrow-link:hover::after,
.sm-arrow-link:focus-visible::after { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) {
	.elementor-button .elementor-button-icon,
	.sm-arrow-link::after { transition: none; }
}

/* Les icônes SVG au trait (Lucide) gardent un rendu « contour ». */
.elementor-button-icon svg,
.elementor-icon svg,
.elementor-icon-list-icon svg {
	overflow: visible;
}

/* ---------- Cartes ---------- */
.sm-card {
	transition: box-shadow .2s ease, transform .2s ease;
}
.sm-card .elementor-widget-image img { transition: transform .4s ease; }
/* Cartes « expertises » / « solutions » : ombre sur la carte, léger zoom limité à la photo */
.sm-card:hover { box-shadow: 0 18px 40px rgba(15, 58, 35, .14); }
.sm-card .elementor-widget-image { overflow: hidden; }
.sm-card:hover .elementor-widget-image img { transform: scale(1.04); }

/* Cartes « avantages » : l'icône s'anime au survol */
.sm-feature .elementor-icon {
	transition: transform .6s cubic-bezier(.22, .61, .36, 1), background-color .6s ease, color .6s ease, fill .6s ease !important;
}
.sm-feature:hover .elementor-icon { transform: scale(1.06); }

/* Cartes « étapes » : légère élévation au survol */
.sm-lift {
	transition: transform .25s ease, box-shadow .25s ease;
}
.sm-lift:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 30px rgba(15, 58, 35, .12);
}
.sm-lift .elementor-widget-image { overflow: hidden; }
.sm-lift .elementor-widget-image img { transition: transform .4s ease; }
.sm-lift:hover .elementor-widget-image img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) {
	.sm-card, .sm-card img, .sm-lift, .sm-lift img, .sm-feature .elementor-icon { transition: none; }
}

/* Photos ouvrant la visionneuse */
a[data-elementor-open-lightbox="yes"] { cursor: zoom-in; }
/* Le lien de la visionneuse occupe toute la vignette : la photo garde son cadrage (largeur, hauteur, recadrage) */
.elementor-widget-image a[data-elementor-open-lightbox] {
	display: block;
	width: 100%;
}

/* Cartes « avantage » : le motif décoratif est l'image de fond du conteneur. */
.sm-feature { isolation: isolate; }
.sm-feature .elementor-icon-box-title { margin-top: 0; }

/* Numéro d'étape rond (titre Elementor avec la classe sm-num) */
.sm-num .elementor-heading-title {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--sm-green);
	color: #fff;
	font-size: 16px;
	line-height: 1;
}

/* Citation avec filet vert */
.sm-quote .elementor-heading-title,
.sm-quote .elementor-widget-container > p,
.sm-quote p {
	border-left: 4px solid var(--sm-lime);
	padding-left: 22px;
}

/* Pastilles « techniques » (liste d'icônes en ligne) */
.sm-pills .elementor-icon-list-items {
	gap: 12px;
	justify-content: center;
}
.sm-pills .elementor-icon-list-item {
	margin: 0 !important;
	padding: 10px 20px !important;
	border: 1.5px solid rgba(255, 255, 255, .55);
	border-radius: 999px;
}
.sm-pills .elementor-icon-list-item {
	transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.sm-pills .elementor-icon-list-item:hover {
	background: rgba(255, 255, 255, .14);
	border-color: #fff;
	transform: translateY(-2px);
}
.sm-pills .elementor-icon-list-item::after { display: none !important; }
@media (max-width: 767px) {
	.sm-pills .elementor-icon-list-items { justify-content: flex-start; gap: 8px; }
	.sm-pills .elementor-icon-list-item { padding: 8px 14px !important; }
}

/* Liens du pied de page sur deux colonnes */
.sm-cols-2 .elementor-icon-list-items {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-rows: repeat(5, auto);
	grid-auto-flow: column;
	gap: 10px 32px;
}
.sm-cols-2 .elementor-icon-list-item { padding: 0 !important; margin: 0 !important; }

/* Grand chiffre « 9/10 » */
.sm-stat .elementor-heading-title {
	display: flex;
	align-items: flex-start;
}
.sm-stat .sm-stat__big { letter-spacing: -.05em; line-height: .82; }
.sm-stat .sm-stat__small {
	font-size: .3em;
	line-height: 1;
	padding-top: .2em;
	color: #fff;
	letter-spacing: -.02em;
}

/* Titre « depuis 1986 » : la ligne « depuis 1986 » est proportionnelle à la taille du titre */
.sm-since {
	display: flex;
	align-items: baseline;
	gap: .14em;
	margin-top: 4px;
	font-size: 2.54em;
	line-height: .95;
	letter-spacing: -.045em;
	color: var(--sm-green);
}
.sm-since__label { font-size: .303em; font-weight: 600; letter-spacing: -.01em; }

/* Image du schéma ETICS / pertes de chaleur : cadre blanc */
.sm-frame img { display: block; margin: 0 auto; }

/* Brochure inclinée */
.sm-tilt img {
	transform: rotate(-4deg);
	box-shadow: 0 24px 48px rgba(0, 0, 0, .35);
}

/* Lecteur vidéo : bouton lecture rond vert */
.sm-video .elementor-custom-embed-play {
	width: 88px;
	height: 88px;
	border-radius: 50%;
	background: var(--sm-lime);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 1;
}
.sm-video .elementor-custom-embed-play i,
.sm-video .elementor-custom-embed-play svg {
	color: var(--sm-forest);
	fill: var(--sm-forest);
	font-size: 34px;
	width: 34px;
	height: 34px;
	opacity: 1;
	text-shadow: none;
	filter: none;
	margin: 0;
}
.sm-video .elementor-custom-embed-image-overlay::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .22);
}
.sm-video .elementor-custom-embed-image-overlay img { height: 100%; object-fit: cover; }
.sm-video--fill .elementor-wrapper,
.sm-video--fill .elementor-custom-embed-image-overlay { height: 100%; }

/* ---------- Boutons des widgets Sematec ----------
 * Le kit Elementor stylise tous les <button> du site (fond vert, marges) :
 * on neutralise ce style pour les boutons d'interface des widgets. */
.sm-nav .sm-nav__link,
.sm-nav .sm-nav__toggle,
.sm-lang .sm-lang__current,
.sm-faq .sm-faq__btn {
	background: transparent;
	border-radius: 0;
	box-shadow: none;
	text-transform: none;
	letter-spacing: normal;
}
.sm-nav .sm-nav__link:hover,
.sm-nav .sm-nav__link:focus,
.sm-nav .sm-nav__toggle:hover,
.sm-nav .sm-nav__toggle:focus,
.sm-lang .sm-lang__current:hover,
.sm-lang .sm-lang__current:focus,
.sm-faq .sm-faq__btn:hover,
.sm-faq .sm-faq__btn:focus {
	background: transparent;
}

/* ---------- Menu principal ---------- */
.sm-nav {
	--sm-nav-color: var(--sm-ink);
	--sm-nav-active: var(--sm-green);
	--sm-nav-underline: var(--sm-lime);
	position: static;
}
.sm-nav__list {
	display: flex;
	align-items: center;
	gap: 28px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.sm-nav__item { position: relative; }
.sm-nav .sm-nav__link {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 12px 0;
	border: 0;
	border-bottom: 2px solid transparent;
	background: none;
	color: var(--sm-nav-color);
	font: inherit;
	font-family: "Source Sans 3", system-ui, sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
	text-decoration: none;
	border-radius: 0;
	white-space: nowrap;
}
.sm-nav .sm-nav__link:hover,
.sm-nav .sm-nav__link:focus-visible,
.sm-nav .sm-nav__item.is-current > .sm-nav__link,
.sm-nav .sm-nav__item.is-ancestor > .sm-nav__link {
	color: var(--sm-nav-active);
	background: none;
}
.sm-nav__item.is-current > .sm-nav__link,
.sm-nav__item.is-ancestor > .sm-nav__link {
	border-bottom-color: var(--sm-nav-underline);
}
.sm-nav__link .sm-ico { transition: transform .2s ease; }
.sm-nav__sub {
	display: none;
	position: absolute;
	top: 100%;
	left: -12px;
	z-index: 20;
	list-style: none;
	margin: 10px 0 0;
	padding: 8px;
	width: 240px;
	background: #fff;
	border: 1px solid var(--sm-line);
	border-radius: var(--sm-radius);
	box-shadow: var(--sm-shadow);
}
.sm-nav__sub::before { /* zone de survol entre le lien et le sous-menu */
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -12px;
	height: 12px;
}
.sm-nav__item.has-sub:hover > .sm-nav__sub,
.sm-nav__item.has-sub:focus-within > .sm-nav__sub,
.sm-nav__item.is-open > .sm-nav__sub {
	display: flex;
	flex-direction: column;
}
.sm-nav__item.has-sub:hover > .sm-nav__link .sm-ico,
.sm-nav__item.is-open > .sm-nav__link .sm-ico { transform: rotate(180deg); }
.sm-nav .sm-nav__sub a {
	display: block;
	padding: 12px 14px;
	border-radius: 6px;
	color: var(--sm-ink);
	font-weight: 500;
	text-decoration: none;
}
.sm-nav .sm-nav__sub a:hover,
.sm-nav .sm-nav__sub a:focus-visible { background: #EEF4EA; color: var(--sm-ink); }
.sm-nav .sm-nav__subitem.is-current a { color: var(--sm-green); font-weight: 600; }

.sm-nav .sm-nav__toggle {
	display: none;
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--sm-ink);
	cursor: pointer;
	border-radius: 6px;
}
.sm-nav .sm-nav__toggle:hover,
.sm-nav .sm-nav__toggle:focus { background: transparent; color: var(--sm-green); }
.sm-nav__toggle .sm-ico--close { display: none; }
.sm-nav__toggle[aria-expanded="true"] .sm-ico--menu { display: none; }
.sm-nav__toggle[aria-expanded="true"] .sm-ico--close { display: block; }

.sm-nav__panel {
	position: fixed;
	left: 0;
	right: 0;
	top: var(--sm-panel-top, 64px);
	max-height: calc(100vh - var(--sm-panel-top, 64px));
	overflow-y: auto;
	background: #fff;
	box-shadow: 0 24px 40px rgba(15, 58, 35, .18);
	padding-bottom: 24px;
	z-index: 60;
}
.sm-nav__panel[hidden] { display: none; }
.sm-nav__mlist,
.sm-nav__mlist ul { list-style: none; margin: 0; padding: 0; }
.sm-nav .sm-nav__mlink,
.sm-nav .sm-nav__mtitle {
	display: flex;
	align-items: center;
	min-height: 52px;
	padding: 0 20px;
	border-bottom: 1px solid #EEEAE0;
	color: var(--sm-ink);
	font-weight: 600;
	font-size: 17px;
	text-decoration: none;
}
.sm-nav__mgroup { border-bottom: 1px solid #EEEAE0; padding-bottom: 8px; }
.sm-nav .sm-nav__mgroup .sm-nav__mtitle { border-bottom: 0; min-height: 48px; font-weight: 700; }
.sm-nav .sm-nav__msub {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 0 20px 0 50px;
	color: var(--sm-text);
	font-weight: 500;
	font-size: 16px;
	text-decoration: none;
}
.sm-nav .sm-nav__mlink.is-current,
.sm-nav .sm-nav__msub.is-current {
	color: var(--sm-green);
	box-shadow: inset 4px 0 0 var(--sm-lime);
}
.sm-nav__mfoot {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 20px 20px 0;
}
.sm-nav .sm-nav__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 52px;
	border-radius: 6px;
	background: var(--sm-green);
	color: #fff !important;
	font-weight: 600;
	font-size: 17px;
	text-decoration: none;
}
.sm-nav__cta:hover { background: var(--sm-green-dark); }
.sm-nav__mlangs { display: flex; gap: 8px; font-size: 15px; font-weight: 600; }
.sm-nav .sm-nav__mlangs a {
	padding: 10px 12px;
	border: 1px solid #D6D2C4;
	border-radius: 6px;
	color: var(--sm-text);
	text-decoration: none;
}
.sm-nav .sm-nav__mlangs a.is-active { border: 1.5px solid var(--sm-green); color: var(--sm-green); }

@media (max-width: 1024px) {
	.sm-nav__list { display: none; }
	.sm-nav .sm-nav__toggle { display: inline-flex; }
}
@media (min-width: 1025px) {
	.sm-nav__panel { display: none !important; }
}

/* ---------- Sélecteur de langue ---------- */
.sm-lang { position: relative; }
.sm-lang .sm-lang__current {
	display: flex;
	align-items: center;
	gap: 4px;
	height: 44px;
	padding: 0 4px;
	border: 0;
	background: transparent;
	color: #4A5A50;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .06em;
	cursor: pointer;
}
.sm-lang .sm-lang__current:hover,
.sm-lang .sm-lang__current:focus { background: transparent; color: var(--sm-green); }
.sm-lang__list {
	display: none;
	position: absolute;
	right: 0;
	top: 100%;
	z-index: 20;
	width: 150px;
	margin: 10px 0 0;
	padding: 8px;
	list-style: none;
	background: #fff;
	border: 1px solid var(--sm-line);
	border-radius: var(--sm-radius);
	box-shadow: var(--sm-shadow);
	font-size: 15px;
}
.sm-lang__list::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -12px;
	height: 12px;
}
.sm-lang:hover .sm-lang__list,
.sm-lang:focus-within .sm-lang__list,
.sm-lang.is-open .sm-lang__list { display: block; }
.sm-lang .sm-lang__list a {
	display: block;
	padding: 10px 12px;
	border-radius: 6px;
	color: var(--sm-ink);
	font-weight: 500;
	text-decoration: none;
}
.sm-lang .sm-lang__list a:hover { background: #EEF4EA; }
.sm-lang .sm-lang__list a.is-active { color: var(--sm-green); font-weight: 600; }

/* ---------- Fil d'Ariane ---------- */
.sm-breadcrumb {
	font-size: 15px;
	color: var(--sm-text);
}
.sm-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.sm-breadcrumb li { display: flex; align-items: center; gap: 10px; }
.sm-breadcrumb li + li::before { content: "›"; }
.sm-breadcrumb li a { color: inherit; text-decoration: none; }
.sm-breadcrumb a:hover { color: var(--sm-green); }
.sm-breadcrumb [aria-current] { color: var(--sm-green); }

/* ---------- Avant / après ---------- */
.sm-ba {
	--pos: 50%;
	--sm-ba-accent: var(--sm-green);
	position: relative;
	margin: 0;
	height: 600px;
	overflow: hidden;
	border-radius: var(--sm-radius);
	user-select: none;
	touch-action: pan-y;
}
.sm-ba__after,
.sm-ba__before {
	position: absolute;
	inset: 0;
}
.sm-ba__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.sm-ba img {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	display: block;
}
.sm-ba__line {
	position: absolute;
	top: 0;
	left: var(--pos);
	width: 3px;
	height: 100%;
	margin-left: -1.5px;
	background: #fff;
	pointer-events: none;
}
.sm-ba__knob {
	position: absolute;
	top: 50%;
	left: var(--pos);
	width: 56px;
	height: 56px;
	margin: -28px 0 0 -28px;
	border-radius: 50%;
	background: #fff;
	color: var(--sm-ba-accent);
	box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}
.sm-ba__label {
	position: absolute;
	top: 20px;
	padding: 8px 14px;
	border-radius: 4px;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: .1em;
	text-transform: uppercase;
	pointer-events: none;
}
.sm-ba__label--before { left: 20px; background: #fff; color: var(--sm-ink); }
.sm-ba__label--after { right: 20px; background: var(--sm-ba-accent); color: #fff; }
.sm-ba__range {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: ew-resize;
	-webkit-appearance: none;
	appearance: none;
}
.sm-ba__range:focus-visible + .sm-ba__label,
.sm-ba:focus-within .sm-ba__knob { outline: 3px solid var(--sm-lime); outline-offset: 2px; }
/* Incitation : halo qui pulse autour de la poignée tant que le visiteur ne l'a pas utilisée */
@keyframes smBaHalo {
	0% { box-shadow: 0 6px 18px rgba(0, 0, 0, .25), 0 0 0 0 rgba(124, 199, 47, .75); }
	70% { box-shadow: 0 6px 18px rgba(0, 0, 0, .25), 0 0 0 16px rgba(124, 199, 47, 0); }
	100% { box-shadow: 0 6px 18px rgba(0, 0, 0, .25), 0 0 0 0 rgba(124, 199, 47, 0); }
}
.sm-ba:not(.is-touched) .sm-ba__knob { animation: smBaHalo 2s ease-out infinite; }
.sm-ba:hover .sm-ba__knob { transform: scale(1.08); }
.sm-ba__knob { transition: transform .2s ease; }
@media (max-width: 767px) {
	.sm-ba__knob { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
	.sm-ba__label { top: 12px; padding: 6px 10px; font-size: 12px; }
	.sm-ba__label--before { left: 12px; }
	.sm-ba__label--after { right: 12px; }
}

/* ---------- Composition d'images ---------- */
.sm-stack {
	--sm-stack-radius: 10px;
	position: relative;
	height: 420px;
}
.sm-stack__img {
	position: absolute;
	overflow: hidden;
	border-radius: var(--sm-stack-radius);
}
.sm-stack__img > a { display: block; width: 100%; height: 100%; }
.sm-stack__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.sm-stack__main { right: 0; top: 0; }
.sm-stack__second {
	left: 0;
	bottom: 0;
	border: 8px solid #E6F2D6;
	z-index: 1;
}
.sm-stack__third { right: 0; bottom: 0; }
.sm-stack__badge {
	position: absolute;
	right: 40px;
	bottom: 36px;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 22px 26px;
	border-radius: var(--sm-radius);
	background: var(--sm-forest);
	color: #fff;
}
.sm-stack__badge-num {
	font-family: "Archivo", sans-serif;
	font-size: 52px;
	font-weight: 800;
	line-height: 1;
	color: #8CCB3E;
}
.sm-stack__badge-text {
	font-size: 16px;
	line-height: 1.3;
	font-weight: 500;
}
@media (max-width: 767px) {
	.sm-stack__second { border-width: 6px; }
	.sm-stack__badge { padding: 14px 16px; gap: 12px; }
	.sm-stack__badge-num { font-size: 36px; }
	.sm-stack__badge-text { font-size: 13px; }
}

/* ---------- FAQ ---------- */
.sm-faq {
	--sm-faq-border: #D9D5C8;
	--sm-faq-badge-bg: var(--sm-mint);
	--sm-faq-accent: var(--sm-green);
	border-top: 1px solid var(--sm-faq-border);
}
.sm-faq__item { border-bottom: 1px solid var(--sm-faq-border); }
.sm-faq__q { margin: 0; padding: 0; font-size: inherit; }
.sm-faq .sm-faq__btn {
	display: flex;
	align-items: center;
	gap: 20px;
	width: 100%;
	min-height: 84px;
	padding: 0 20px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--sm-ink);
	font-family: "Archivo", sans-serif;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
	text-align: left;
	white-space: normal;
	cursor: pointer;
}
.sm-faq .sm-faq__btn:hover,
.sm-faq .sm-faq__btn:focus { background: transparent; color: var(--sm-ink); }
.sm-faq__btn:focus-visible { outline: 3px solid var(--sm-lime); outline-offset: -3px; }
.sm-faq__num {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--sm-faq-badge-bg);
	color: var(--sm-faq-accent);
	font-size: 17px;
}
.sm-faq__title { flex-grow: 1; }
.sm-faq__btn .sm-ico {
	flex-shrink: 0;
	color: var(--sm-faq-accent);
	transition: transform .2s ease;
}
.sm-faq__btn[aria-expanded="true"] .sm-ico { transform: rotate(180deg); }
.sm-faq__panel {
	padding: 4px 20px 32px 80px;
	font-size: 17px;
	line-height: 1.6;
	color: var(--sm-text);
}
.sm-faq__content > * { margin: 0 0 20px; }
.sm-faq__content > *:last-child { margin-bottom: 0; }
.sm-faq__content strong { color: var(--sm-ink); }
.sm-faq__content a { font-weight: 600; }
@media (max-width: 767px) {
	.sm-faq .sm-faq__btn { gap: 14px; min-height: 72px; padding: 14px 4px; font-size: 18px; }
	.sm-faq__num { flex-basis: 32px; height: 32px; font-size: 15px; }
	.sm-faq__panel { padding: 0 4px 24px; font-size: 16px; }
}

/* Contenus riches des réponses FAQ (à utiliser dans l'onglet « Code » de l'éditeur) */
.sm-media-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
	list-style: none;
	padding: 0;
}
.sm-media {
	display: flex;
	align-items: center;
	gap: 20px;
}
.sm-media img {
	flex: 0 0 132px;
	width: 132px;
	height: 88px;
	object-fit: cover;
	border-radius: 8px;
	margin: 0;
}
.sm-media--square img { height: 132px; }
.sm-media p { margin: 0; }
.sm-split { display: flex; gap: 28px; align-items: flex-start; }
.sm-split > div { flex-grow: 1; }
.sm-split > img {
	flex: 0 0 240px;
	width: 240px;
	height: 220px;
	object-fit: cover;
	border-radius: 8px;
}
.sm-checks {
	display: flex;
	flex-direction: column;
	gap: 10px;
	list-style: none;
	padding: 0;
}
.sm-checks li {
	position: relative;
	padding-left: 32px;
}
.sm-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .2em;
	width: 20px;
	height: 20px;
	background: url("../img/check.svg") center / contain no-repeat;
}
.sm-thumbs {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 12px;
}
.sm-thumbs--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sm-thumbs figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.sm-thumbs img {
	width: 100%;
	height: 110px;
	object-fit: cover;
	border-radius: 8px;
}
.sm-thumbs--3 img { height: 140px; }
.sm-thumbs figcaption { font-size: 14px; font-weight: 600; color: var(--sm-ink); }
.sm-formula {
	padding: 22px 26px;
	border-radius: var(--sm-radius);
	background: var(--sm-mint);
	color: var(--sm-ink);
	font-size: 16px;
	line-height: 1.55;
}
.sm-formula p { margin: 0 0 12px; }
.sm-formula p:last-child { margin: 0; }
.sm-formula .sm-formula__title {
	font-family: "Archivo", sans-serif;
	font-size: 20px;
	font-weight: 700;
	color: var(--sm-forest);
}
.sm-table {
	width: 100%;
	border-collapse: collapse;
	border-radius: var(--sm-radius);
	overflow: hidden;
	background: var(--sm-sand);
	font-size: 16px;
	line-height: 1.5;
}
.sm-table th,
.sm-table td {
	padding: 16px 20px;
	border: 0;
	border-top: 1px solid #D9D5C8;
	text-align: left;
	vertical-align: top;
}
.sm-table thead th {
	border-top: 0;
	background: var(--sm-mint);
	color: var(--sm-forest);
	font-family: "Archivo", sans-serif;
	font-size: 17px;
}
.sm-table tbody th { font-size: 15px; color: var(--sm-ink); white-space: nowrap; }
.sm-table tbody tr:nth-child(2n+1) > td,
.sm-table tbody tr:nth-child(2n+1) > th { background: transparent; }
.sm-links { display: flex; flex-wrap: wrap; gap: 8px 32px; }
@media (max-width: 767px) {
	.sm-media { gap: 14px; }
	.sm-media img { flex-basis: 96px; width: 96px; height: 72px; }
	.sm-media--square img { height: 96px; }
	.sm-split { flex-direction: column; }
	.sm-split > img { width: 100%; flex-basis: auto; height: 200px; }
	.sm-thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sm-table th, .sm-table td { padding: 12px; font-size: 14px; }
	.sm-table tbody th { white-space: normal; }
}

/* ---------- Formulaire de contact (Contact Form 7) ---------- */
.sm-form .wpcf7-form {
	display: flex;
	flex-direction: column;
	gap: 22px;
}
.sm-form .wpcf7-form p { margin: 0; }
.sm-form .sm-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px 20px;
}
.sm-form .sm-form__field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.sm-form label,
.sm-form .sm-form__label {
	font-size: 15px;
	font-weight: 600;
	color: var(--sm-ink);
}
.sm-form .sm-req { color: var(--sm-green); }
.sm-form .wpcf7-form-control-wrap { display: block; }
.sm-form input[type="text"],
.sm-form input[type="tel"],
.sm-form input[type="email"],
.sm-form select,
.sm-form textarea {
	width: 100%;
	height: 54px;
	padding: 0 16px;
	border: 1px solid #C9C4B5;
	border-radius: 6px;
	background-color: #fff;
	color: var(--sm-ink);
	font-family: inherit;
	font-size: 16px;
	box-sizing: border-box;
}
.sm-form select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 48px;
	background-image: url("../img/select-chevron.svg");
	background-repeat: no-repeat;
	background-position: right 16px center;
	cursor: pointer;
}
.sm-form textarea {
	height: 128px;
	padding: 14px 16px;
	line-height: 1.5;
	resize: vertical;
}
.sm-form input:focus,
.sm-form select:focus,
.sm-form textarea:focus {
	outline: 2px solid var(--sm-lime);
	outline-offset: 1px;
	border-color: var(--sm-green);
}
.sm-form .sm-form__consent .wpcf7-list-item { margin: 0; }
.sm-form .sm-form__consent label {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.55;
	color: var(--sm-text);
	cursor: pointer;
}
.sm-form .sm-form__consent input[type="checkbox"] {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	margin: 2px 0 0;
	accent-color: var(--sm-green);
}
.sm-form .sm-form__consent a { color: var(--sm-green); text-decoration: underline; }
.sm-form .sm-form__actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding-top: 6px;
}
.sm-form .sm-form__note { font-size: 14px; color: var(--sm-text); }
.sm-form .wpcf7-form .wpcf7-submit {
	height: 56px;
	padding: 0 52px 0 28px;
	border: 0;
	border-radius: 6px;
	background: var(--sm-green) url("../img/arrow-right-white.svg") no-repeat right 24px center;
	transition: background-color .2s ease, background-position .2s ease;
	color: #fff;
	font-family: inherit;
	font-size: 17px;
	font-weight: 600;
	cursor: pointer;
}
.sm-form .wpcf7-form .wpcf7-submit:hover { background-color: var(--sm-green-dark); background-position: right 20px center; }
.sm-form .wpcf7-spinner { position: absolute; }
.sm-form .wpcf7-not-valid-tip { font-size: 14px; margin-top: 6px; }
.sm-form .wpcf7-response-output {
	margin: 0 !important;
	padding: 12px 16px !important;
	border-radius: 6px;
	font-size: 15px;
}
@media (max-width: 767px) {
	.sm-form .sm-form__grid { grid-template-columns: 1fr; }
	.sm-form .sm-form__actions { flex-direction: column-reverse; align-items: stretch; }
	.sm-form .wpcf7-form .wpcf7-submit { width: 100%; }
}

/* Carte Google Maps en niveaux de gris */
.sm-map iframe { filter: grayscale(1); display: block; }

/* ---------- Carrousel mobile des réalisations ---------- */
.sm-carousel .swiper-slide-image {
	width: 100%;
	height: 260px;
	object-fit: cover;
	border-radius: 10px;
}
.sm-carousel .elementor-swiper-button {
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}
.sm-carousel .elementor-swiper-button svg { width: 18px; height: 18px; fill: var(--sm-ink); }
.sm-carousel .swiper-pagination-bullet-active { width: 22px; border-radius: 4px; }

/* Icônes sociales au trait (pied de page) */
.sm-social .elementor-social-icon { color: #fff; transition: background-color .2s, color .2s, border-color .2s; }
.sm-social .elementor-social-icon:hover { color: var(--sm-forest); }

.sm-pills .elementor-icon-list-items { margin: 0 !important; }

.sm-video .elementor-custom-embed-play { z-index: 2; }
.sm-video-portrait video {
	display: block;
	width: 100%;
	aspect-ratio: 9 / 16;
	object-fit: cover;
	border-radius: 10px;
	background: var(--sm-forest);
}

/* Pages de texte (mentions légales, confidentialité) */
.sm-prose h2 {
	margin: 40px 0 12px;
	font-size: 26px;
	line-height: 1.2;
}
.sm-prose h2:first-child { margin-top: 0; }
.sm-prose p { margin-bottom: 16px; }
p.elementor-heading-title { margin: 0; }
.elementor-widget-video.sm-video-portrait .elementor-wrapper { aspect-ratio: 9 / 16; --video-aspect-ratio: .5625; }
.sm-video-portrait .elementor-wrapper video { height: 100%; }
.sm-nowrap { white-space: nowrap; }

/* Boutons d'appel à l'action : très léger zoom au survol */
.sm-cta .elementor-button,
.sm-nav .sm-nav__cta,
.sm-form .wpcf7-form .wpcf7-submit {
	transition: transform .3s cubic-bezier(.22, .61, .36, 1), background-color .2s ease, background-position .2s ease;
}
.sm-cta .elementor-button:hover,
.sm-cta .elementor-button:focus-visible,
.sm-nav .sm-nav__cta:hover,
.sm-form .wpcf7-form .wpcf7-submit:hover {
	transform: scale(1.03);
}

/* CTA : la flèche démarre son mouvement 0,2 s après le début du survol (pas de délai au retour) */
.sm-cta .elementor-button:hover .elementor-button-icon,
.sm-cta .elementor-button:focus-visible .elementor-button-icon { transition-delay: .2s; }
.sm-form .wpcf7-form .wpcf7-submit:hover { transition-delay: 0s, 0s, .2s; }
.sm-prose .sm-lead { font-size: 20px; line-height: 1.55; color: var(--sm-ink); margin-bottom: 32px; }

/* Apparitions douces (classe « sm-soft » + animation d'entrée Elementor « Fade In Up ») */
@keyframes smSoftUp {
	from { opacity: 0; transform: translate3d(0, 24px, 0); }
	to { opacity: 1; transform: none; }
}
.sm-soft.animated.fadeInUp {
	animation-name: smSoftUp;
	animation-timing-function: cubic-bezier(.22, .61, .36, 1);
}
.sm-stack__badge-num { display: inline-block; text-align: right; }

/* Mots très longs (composés néerlandais : « Verwerkingsverantwoordelijke »…) : jamais de débordement */
.elementor-heading-title,
.sm-prose h2,
.sm-prose p,
.elementor-icon-box-title,
.sm-faq__title {
	overflow-wrap: break-word;
}
@media (max-width: 767px) {
	html[lang^="nl"] .elementor-heading-title,
	html[lang^="nl"] .sm-prose h2,
	html[lang^="nl"] .elementor-icon-box-title,
	html[lang^="nl"] .sm-faq__title {
		-webkit-hyphens: auto;
		hyphens: auto;
	}
	.sm-prose h2 { font-size: 22px; }
}
@media (max-width: 767px) {
	/* Tableau comparatif des FAQ : colonnes figées, retour à la ligne et césure des mots longs */
	.sm-table { table-layout: fixed; }
	.sm-table th,
	.sm-table td {
		padding: 10px 8px;
		overflow-wrap: break-word;
		-webkit-hyphens: auto;
		hyphens: auto;
	}
	.sm-table thead th:first-child,
	.sm-table tbody th { width: 28%; }
}

/* Photos de galerie visibles seulement dans la visionneuse (classe « sm-lightbox-only »), affichées dans l'éditeur */
body:not(.elementor-editor-active) .sm-lightbox-only { display: none !important; }
.elementor-editor-active .sm-lightbox-only { opacity: .5; outline: 2px dashed #7CC72F; }

/* Pastille « + 5 photos » posée sur une vignette (titre avec la classe « sm-more ») */
.e-con:has(> .sm-more), .e-con:has(> .e-con-inner > .sm-more) { position: relative; }
.sm-more {
	position: absolute !important;
	right: 12px;
	bottom: 12px;
	width: auto !important;
	margin: 0 !important;
	pointer-events: none;
	z-index: 2;
}
.sm-more .elementor-heading-title {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(15, 58, 35, .85);
	color: #fff;
	font-family: "Source Sans 3", sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: normal;
}

/* Emplacements « Photo à venir » dans les compositions d'images : cadre pointillé, visuel centré */
.sm-stack__img:has(img[src*="photo-a-venir-portrait"]),
.sm-stack__img:has(img[src*="foto-volgt-portrait"]) {
	background: #E6F2D6;
	border: 1.5px dashed #9BC77A !important;
	display: flex;
	align-items: center;
	justify-content: center;
}
.sm-stack__img img[src*="photo-a-venir-portrait"],
.sm-stack__img img[src*="foto-volgt-portrait"] {
	width: 60%;
	height: auto;
	max-width: 200px;
	object-fit: contain;
}
/* La photo encadrée garde son cadre de la couleur du fond pour se détacher de la grande */
.sm-stack__second:has(img[src*="photo-a-venir-portrait"]),
.sm-stack__second:has(img[src*="foto-volgt-portrait"]) {
	box-shadow: 0 0 0 8px #E6F2D6;
}
.sm-thumbs--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 767px) { .sm-thumbs--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
