/* Hero (texte + photo) — adaptatif automatiquement.
   Méthode classique (media queries sur la largeur d'écran) : fonctionne
   quel que soit le conteneur Elementor. Aucun réglage tablette / mobile nécessaire.
   Couleurs par défaut : palette globale d'Astra ; polices : thème. */

.smsh {
	--smsh-gap: 56px;
	--smsh-img-w: 40%;
	--smsh-radius: 28px;
	--smsh-title-min: 32px;
	--smsh-title-max: 52px;
	--smsh-kicker: var(--ast-global-color-2, #7a2e22);
	--smsh-text: var(--ast-global-color-3, #3a3a3a);
	--smsh-keywords: var(--ast-global-color-3, #3a3a3a);
	--smsh-btn-bg: var(--ast-global-color-0, #5aa6a6);
	--smsh-btn-bg-hover: var(--ast-global-color-1, #468c8c);
	--smsh-btn-color: #fff;
	--smsh-btn2: var(--ast-global-color-0, #5aa6a6);
	--smsh-badge-bg: #fff;
	--smsh-badge-color: var(--ast-global-color-2, #1f2a26);

	width: 100%;
	box-sizing: border-box;
	/* Neutralise une ancienne version de ce CSS encore chargée (container query) */
	container-type: normal !important;
}

/* Le widget prend toute la largeur de son conteneur, même dans un Flexbox en ligne. */
.elementor-widget-smsc_hero {
	width: 100%;
	max-width: 100%;
	flex: 1 1 100%;
	min-width: 0;
}

.smsh-inner {
	display: flex;
	align-items: stretch;
	gap: var(--smsh-gap);
}

.smsh--img-left .smsh-inner {
	flex-direction: row-reverse;
}

/* ---------- Colonne texte ---------- */
.smsh-content {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between; /* mots-clés collés en bas */
	gap: 32px;
}

.smsh-main {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.smsh .smsh-kicker,
.smsh .smsh-title,
.smsh .smsh-text p,
.smsh .smsh-keywords {
	margin: 0;
}

.smsh-kicker {
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--smsh-kicker);
}

.smsh .smsh-title {
	/* police et couleur : celles du thème pour les titres */
	font-size: clamp(var(--smsh-title-min), 4.2vw, var(--smsh-title-max));
	line-height: 1.15;
	text-wrap: balance;
}

.smsh .smsh-text {
	font-size: clamp(16px, 1.4vw, 19px);
	line-height: 1.65;
	color: var(--smsh-text);
}

.smsh-text p + p {
	margin-top: .6em;
}

/* ---------- Boutons ---------- */
.smsh-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 16px;
	margin-top: 8px;
}

.smsh .smsh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 28px;
	border-radius: 999px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.smsh .smsh-btn--primary {
	background: var(--smsh-btn-bg);
	color: var(--smsh-btn-color);
	border: 2px solid var(--smsh-btn-bg);
}

.smsh a.smsh-btn--primary:hover,
.smsh a.smsh-btn--primary:focus-visible {
	background: var(--smsh-btn-bg-hover);
	border-color: var(--smsh-btn-bg-hover);
	color: var(--smsh-btn-color);
}

.smsh .smsh-btn--secondary {
	background: transparent;
	color: var(--smsh-btn2);
	border: 2px solid var(--smsh-btn2);
}

.smsh a.smsh-btn--secondary:hover,
.smsh a.smsh-btn--secondary:focus-visible {
	background: var(--smsh-btn2);
	color: #fff;
}

.smsh a.smsh-btn:focus-visible,
.smsh a.smsh-badge:focus-visible {
	outline: 2px solid var(--smsh-btn-bg);
	outline-offset: 3px;
}

/* ---------- Mots-clés ---------- */
.smsh .smsh-keywords {
	list-style: none;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 28px;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--smsh-keywords);
}

.smsh .smsh-keywords li {
	margin: 0;
}

/* ---------- Photo ---------- */
.smsh-media {
	flex: 0 0 var(--smsh-img-w);
	position: relative;
	border-radius: var(--smsh-radius);
	overflow: hidden;
	background: rgba(0, 0, 0, .05);
}

.smsh-media .smsh-img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 360px;
	max-width: none;
	object-fit: cover;
	border-radius: 0;
}

.smsh .smsh-badge {
	position: absolute;
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%);
	max-width: calc(100% - 32px);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
	padding: 12px 22px;
	border-radius: 999px;
	background: var(--smsh-badge-bg);
	color: var(--smsh-badge-color);
	font-size: 15px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: .03em;
	text-decoration: none !important;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
}

/* ---------- Écran étroit (tablette portrait, mobile) : on empile ---------- */
@media (max-width: 900px) {
	.smsh-inner,
	.smsh--img-left .smsh-inner {
		flex-direction: column;
		gap: 40px;
	}

	.smsh-media {
		flex: none;
		width: 100%;
		max-width: 480px;
		align-self: center;
	}

	.smsh-media .smsh-img {
		height: auto;
		min-height: 0;
		aspect-ratio: 4 / 5;
	}

	.smsh--img-first-mobile .smsh-media {
		order: -1;
	}

	.smsh-content {
		gap: 28px;
	}
}

@media (max-width: 520px) {
	.smsh .smsh-btn {
		flex: 1 1 100%;
	}

	.smsh .smsh-badge {
		white-space: normal;
		text-align: center;
		font-size: 13px;
		padding: 10px 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.smsh .smsh-btn { transition: none; }
}
