/**
 * Sol Air Services — bloc « Nos réalisations » (carrousel maison)
 * Ouinet.fr — 2026-08-05
 */

.sa-rea {
	--sa-rea-primary: var(--primary, #E98744);
	--sa-rea-base: var(--base, #202045);
	--sa-rea-carte: 680px;
	position: relative;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	color: var(--sa-rea-base);
}

/* ---------- en-tête ---------- */

.sa-rea-head {
	text-align: center;
	max-width: 900px;
	margin: 0 auto 34px;
}

.sa-rea-pic {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	margin: 0 auto 14px;
	background: var(--sa-rea-primary);
	border-radius: 12px 12px 12px 4px;
	box-shadow: 0 8px 20px rgba(233, 135, 68, .35);
}

.sa-rea-pic svg {
	width: 24px;
	height: 24px;
	fill: #fff;
}

.sa-rea-surtitre {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	opacity: .75;
}

.sa-rea-titre {
	margin: 0 0 12px;
	/* pas de font-size : on garde la taille des h2 du site */
	line-height: 1.1;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: -.01em;
	color: var(--sa-rea-base);
}

.sa-rea-sous {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	color: #4a4a68;
}

/* ---------- carrousel ---------- */

.sa-rea-carrousel {
	/* conteneur à la largeur normale du site : c'est lui qui sert de repère
	   aux deux flèches, pour qu'elles soient exactement symétriques. */
	position: relative;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.sa-rea-large {
	/* la piste déborde volontairement : les cartes sont coupées aux deux
	   extrémités, ce qui suggère qu'il y a d'autres chantiers. */
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
}

.sa-rea-piste {
	width: 100vw;
	max-width: 100vw;
	box-sizing: border-box;
	display: flex;
	gap: 26px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x proximity;
	padding: 10px max(24px, calc(50vw - var(--content-width, 84.375rem) / 2)) 26px;
	scrollbar-width: none;
	cursor: grab;
}

.sa-rea-piste::-webkit-scrollbar {
	display: none;
}

.sa-rea-piste.is-drag {
	cursor: grabbing;
	scroll-behavior: auto;
	scroll-snap-type: none;
	user-select: none;
}

.sa-rea-piste a,
.sa-rea-piste img {
	-webkit-user-drag: none;
}

.sa-rea-piste:focus-visible {
	outline: 2px solid var(--sa-rea-primary);
	outline-offset: 4px;
}

.sa-rea-carte {
	flex: 0 0 var(--sa-rea-carte);
	max-width: 92vw;
	display: flex;
	overflow: hidden;
	min-height: 292px;
	background: #fff;
	border-radius: 26px;
	box-shadow: 0 12px 34px rgba(32, 32, 69, .10);
	scroll-snap-align: center;
}

.sa-rea-photo {
	position: relative;
	flex: 0 0 42%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	text-decoration: none;
}

.sa-rea-tag {
	position: absolute;
	top: 16px;
	left: 16px;
	padding: 7px 13px;
	border-radius: 999px;
	background: rgba(32, 32, 69, .92);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	line-height: 1;
}

.sa-rea-infos {
	flex: 1;
	padding: 24px 26px;
	min-width: 0;
}

.sa-rea-annee {
	margin: 0 0 2px;
	font-size: 13px;
	font-weight: 600;
	color: #9a9ab0;
}

.sa-rea-ville {
	margin: 0 0 15px;
	font-size: clamp(20px, 2vw, 27px);
	line-height: 1.1;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: -.01em;
	color: var(--sa-rea-base);
}

.sa-rea-ligne {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 7px;
	margin: 0 0 9px;
	font-size: 14px;
	color: #3c3c5a;
}

.sa-rea-val {
	padding: 4px 10px;
	border-radius: 8px;
	background: var(--sa-rea-primary);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
}

.sa-rea-val--b {
	background: var(--sa-rea-base);
}

.sa-rea-val--v {
	/* pastille neutre : le site n'a pas de vert dans sa charte */
	background: #eceaf3;
	color: var(--sa-rea-base);
}

.sa-rea-lien {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
	color: var(--sa-rea-primary);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
}

.sa-rea-lien:hover,
.sa-rea-lien:focus-visible {
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* ---------- flèches ---------- */

.sa-rea-fleche {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	padding: 0 0 3px;
	transform: translateY(-50%);
	border: 0;
	border-radius: 50%;
	background: var(--sa-rea-base);
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(32, 32, 69, .28);
	transition: background .2s ease, opacity .2s ease;
}

.sa-rea-fleche:hover {
	background: var(--sa-rea-primary);
}

.sa-rea-fleche[disabled] {
	opacity: .25;
	cursor: default;
}

.sa-rea-prev {
	left: 6px;
}

.sa-rea-next {
	right: 6px;
}

/* ---------- bouton ---------- */

.sa-rea-cta {
	margin: 26px 0 0;
	text-align: center;
}

.sa-rea-btn {
	display: inline-block;
	padding: 16px 34px;
	border-radius: 999px;
	background: var(--sa-rea-primary);
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 10px 24px rgba(233, 135, 68, .35);
	transition: background .2s ease;
}

.sa-rea-btn:hover,
.sa-rea-btn:focus-visible {
	background: #d9743a;
	color: #fff;
}

/* ---------- petits écrans ---------- */

@media (max-width: 860px) {
	.sa-rea-carte {
		flex-direction: column;
		min-height: 0;
		flex-basis: 84vw;
	}

	.sa-rea-photo {
		flex: 0 0 190px;
	}

	.sa-rea-piste {
		padding-left: 20px;
		padding-right: 20px;
	}

	.sa-rea-fleche {
		display: none;
	}
}

/* ---------- en-tête seule (shortcode [sa_entete]) ---------- */

.sa-entete .sa-rea-head {
	margin-bottom: 0;
}

.sa-entete--primary .sa-rea-titre {
	color: var(--sa-rea-primary);
}
