/* Widget « Appel à l'action » (remplace le Call to Action d'Elementor Pro). */

.elementor-widget-so_appel_action_widget .elementor-widget-container,
.elementor-widget-so_appel_action_widget:not(:has(.elementor-widget-container)) { overflow: hidden; }

.so-appel { display: flex; position: relative; overflow: hidden; transition: .5s; }

/* Image, voile et effet au survol. */
.so-appel__image { overflow: hidden; z-index: 1; }
.so-appel__fond,
.so-appel__voile { position: absolute; inset: 0; transition: all .4s; }
.so-appel__fond { z-index: 1; background-position: 50%; background-size: cover; }
.so-appel__voile { z-index: 2; }
.so-appel:hover .so-appel__voile { background-color: rgba(0, 0, 0, .3); }
.so-appel--effet-zoom-in .so-appel__fond,
.so-appel--effet-zoom-out .so-appel__fond { will-change: transform; }
.so-appel--effet-zoom-in:hover .so-appel__fond,
.so-appel--effet-zoom-out .so-appel__fond { transform: scale(1.2); }
.so-appel--effet-zoom-out:hover .so-appel__fond { transform: scale(1); }

/* Contenu. */
.so-appel__contenu {
	display: flex;
	flex-wrap: wrap;
	align-content: center;
	align-items: center;
	overflow: hidden;
	width: 100%;
	padding: 35px;
	z-index: 1;
}
.so-appel__contenu,
.so-appel__item { position: relative; color: #fff; transition: .5s; }
.so-appel__item { width: 100%; margin: 0; }
.so-appel__item:not(:last-child) { margin-bottom: 15px; }
.so-appel__titre { font-size: 23px; }

.so-appel__bouton.elementor-button {
	align-self: center;
	margin-inline: auto;
	border: 2px solid #fff;
	background: transparent;
	cursor: pointer;
}
.so-appel__bouton.elementor-button:hover { background: transparent; text-decoration: none; }

.so-appel--valign-top .so-appel__contenu { align-content: flex-start; align-items: flex-start; }
.so-appel--valign-middle .so-appel__contenu { align-content: center; align-items: center; }
.so-appel--valign-bottom .so-appel__contenu { align-content: flex-end; align-items: flex-end; }

/* Habillage classique : contenu sur fond clair. */
.so-appel--skin-classic .so-appel { flex-wrap: wrap; }
.so-appel--skin-classic .so-appel__image { position: relative; width: 100%; min-height: 200px; }
.so-appel--skin-classic .so-appel__contenu { width: 100%; background-color: #f9fafa; transition: all .4s; }
.so-appel--skin-classic .so-appel__item { border-color: #3f444b; color: #3f444b; fill: #3f444b; }
.so-appel--skin-classic .so-appel__bouton.elementor-button { border-color: #3f444b; color: #3f444b; }

/* Habillage couverture : texte posé sur l'image. */
.so-appel--skin-cover .so-appel { display: block; }
.so-appel--skin-cover .so-appel__image { position: absolute; inset: 0; width: 100%; transition: all .4s; }
.so-appel--skin-cover .so-appel__contenu { min-height: 280px; }
.so-appel--skin-cover .so-appel__bouton.elementor-button,
.so-appel--skin-cover .so-appel__item { border-color: #fff; color: #fff; }

/* Position de l'image (habillage classique). */
.so-appel--layout-image-above .so-appel,
.so-appel--layout-image-below .so-appel { flex-wrap: wrap; }
.so-appel--layout-image-above .so-appel__image,
.so-appel--layout-image-below .so-appel__image { width: 100%; }
.so-appel--layout-image-above .so-appel { flex-direction: column; }
.so-appel--layout-image-below .so-appel { flex-direction: column-reverse; }
.so-appel--layout-image-left .so-appel,
.so-appel--layout-image-right .so-appel { flex-wrap: nowrap; }
.so-appel--layout-image-left .so-appel__image,
.so-appel--layout-image-right .so-appel__image { width: auto; min-width: 50%; }
.so-appel--layout-image-left .so-appel__contenu,
.so-appel--layout-image-right .so-appel__contenu { flex-grow: 1; }
.so-appel--layout-image-left .so-appel { flex-direction: row; }
.so-appel--layout-image-right .so-appel { flex-direction: row-reverse; }

@media (max-width: 1024px) {
	.so-appel { cursor: pointer; }
	.so-appel--tablet-layout-image-above .so-appel,
	.so-appel--tablet-layout-image-below .so-appel { flex-wrap: wrap; }
	.so-appel--tablet-layout-image-above .so-appel__image,
	.so-appel--tablet-layout-image-below .so-appel__image { width: 100%; }
	.so-appel--tablet-layout-image-above .so-appel { flex-direction: column; }
	.so-appel--tablet-layout-image-below .so-appel { flex-direction: column-reverse; }
	.so-appel--tablet-layout-image-left .so-appel,
	.so-appel--tablet-layout-image-right .so-appel { flex-wrap: nowrap; }
	.so-appel--tablet-layout-image-left .so-appel__image,
	.so-appel--tablet-layout-image-right .so-appel__image { width: auto; min-width: 50%; }
	.so-appel--tablet-layout-image-left .so-appel__contenu,
	.so-appel--tablet-layout-image-right .so-appel__contenu { flex-grow: 1; }
	.so-appel--tablet-layout-image-left .so-appel { flex-direction: row; }
	.so-appel--tablet-layout-image-right .so-appel { flex-direction: row-reverse; }
}

@media (max-width: 767px) {
	.so-appel--mobile-layout-image-above .so-appel,
	.so-appel--mobile-layout-image-below .so-appel { flex-wrap: wrap; }
	.so-appel--mobile-layout-image-above .so-appel__image,
	.so-appel--mobile-layout-image-below .so-appel__image { width: 100%; }
	.so-appel--mobile-layout-image-above .so-appel { flex-direction: column; }
	.so-appel--mobile-layout-image-below .so-appel { flex-direction: column-reverse; }
	.so-appel--mobile-layout-image-left .so-appel,
	.so-appel--mobile-layout-image-right .so-appel { flex-wrap: nowrap; }
	.so-appel--mobile-layout-image-left .so-appel__image,
	.so-appel--mobile-layout-image-right .so-appel__image { width: auto; min-width: 50%; }
	.so-appel--mobile-layout-image-left .so-appel__contenu,
	.so-appel--mobile-layout-image-right .so-appel__contenu { flex-grow: 1; }
	.so-appel--mobile-layout-image-left .so-appel { flex-direction: row; }
	.so-appel--mobile-layout-image-right .so-appel { flex-direction: row-reverse; }
}
