/* Bannière « Prêt à passer commande ? » — shortcode [ydu_cta_boutique]
   La mise en page suit la largeur de la colonne WPBakery (requêtes de conteneur), pas celle de l'écran. */

.ydu-cta-boutique {
	container-type: inline-size;
	margin: 0 auto;
}

.ydu-cta-boutique__cadre {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 40%;
	grid-template-areas: "texte visuel" "atouts visuel";
	align-items: center;
	column-gap: 16px;
	padding: 46px 20px 42px 52px;
	overflow: hidden;
	border-radius: 8px;
	background:
		radial-gradient(ellipse 50% 80% at 77% 64%, rgba(86, 128, 214, .55), rgba(86, 128, 214, 0) 70%),
		linear-gradient(100deg, #0f2558 0%, #183372 50%, #243f8b 100%);
	box-shadow: 0 22px 40px -24px rgba(15, 37, 88, .7);
	color: #fff;
	text-align: left;
	font-family: "Open Sans", sans-serif;
}

/* sol : bande plus claire sous les produits */
.ydu-cta-boutique__cadre::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 30%;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .05));
	pointer-events: none;
}

.ydu-cta-boutique__texte {
	position: relative;
	z-index: 1;
	grid-area: texte;
	align-self: end;
	min-width: 0;
}

.ydu-cta-boutique .ydu-cta-boutique__titre {
	margin: 0 0 8px;
	padding: 0;
	color: #fff;
	font-size: 38px;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -.01em;
}

.ydu-cta-boutique .ydu-cta-boutique__accroche {
	margin: 0 0 26px;
	padding: 0;
	color: rgba(255, 255, 255, .88);
	font-size: 17px;
	line-height: 1.5;
}

.ydu-cta-boutique a.ydu-cta-boutique__bouton {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	padding: 15px 26px;
	border-radius: 6px;
	background: #d82c24;
	box-shadow: 0 12px 24px -10px rgba(216, 44, 36, .8);
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color .2s, transform .2s;
}

.ydu-cta-boutique a.ydu-cta-boutique__bouton:hover,
.ydu-cta-boutique a.ydu-cta-boutique__bouton:focus-visible {
	background: #b8231c;
	color: #fff;
	transform: translateY(-1px);
}

.ydu-cta-boutique a.ydu-cta-boutique__bouton:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.ydu-cta-boutique__bouton svg {
	flex: none;
	transition: transform .2s;
}

.ydu-cta-boutique a.ydu-cta-boutique__bouton:hover svg {
	transform: translateX(4px);
}

.ydu-cta-boutique ul.ydu-cta-boutique__atouts {
	position: relative;
	z-index: 1;
	grid-area: atouts;
	align-self: start;
	display: flex;
	flex-wrap: wrap;
	gap: 12px 0;
	margin: 32px 0 0;
	padding: 0;
	list-style: none;
}

.ydu-cta-boutique ul.ydu-cta-boutique__atouts li {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0 18px;
	border-left: 1px solid rgba(255, 255, 255, .4);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
	list-style: none;
}

.ydu-cta-boutique ul.ydu-cta-boutique__atouts li:first-child {
	padding-left: 0;
	border-left: 0;
}

.ydu-cta-boutique ul.ydu-cta-boutique__atouts li::before {
	content: none;
}

.ydu-cta-boutique__atouts svg {
	flex: none;
}

.ydu-cta-boutique__visuel {
	position: relative;
	grid-area: visuel;
	align-self: stretch;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	margin: -18px 0 -22px;
}

.ydu-cta-boutique .ydu-cta-boutique__visuel img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 280px;
	object-fit: contain;
}

/* colonne moyenne (page avec barre latérale, tablette) */
@container (max-width: 999px) {
	.ydu-cta-boutique__cadre {
		padding: 40px 16px 38px 40px;
	}

	.ydu-cta-boutique .ydu-cta-boutique__titre {
		font-size: 32px;
	}

	.ydu-cta-boutique .ydu-cta-boutique__accroche {
		font-size: 16px;
	}

	/* les atouts passent sous le texte et le visuel, sur une seule ligne */
	.ydu-cta-boutique__cadre {
		grid-template-columns: minmax(0, 1fr) 36%;
		grid-template-areas: "texte visuel" "atouts atouts";
	}

	.ydu-cta-boutique__texte {
		align-self: center;
	}

	.ydu-cta-boutique ul.ydu-cta-boutique__atouts {
		margin-top: 22px;
	}

	.ydu-cta-boutique__visuel {
		margin: -18px 0 0;
	}

	.ydu-cta-boutique ul.ydu-cta-boutique__atouts li {
		gap: 8px;
		padding: 0 12px;
		font-size: 13px;
	}

	.ydu-cta-boutique__atouts svg {
		width: 22px;
		height: 22px;
	}
}

/* colonne étroite (mobile) : visuel au-dessus, texte centré */
@container (max-width: 640px) {
	.ydu-cta-boutique__cadre {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "visuel" "texte" "atouts";
		padding: 18px 22px 30px;
		text-align: center;
	}

	.ydu-cta-boutique__visuel {
		justify-self: center;
		width: 100%;
		max-width: 320px;
		margin: 0 0 6px;
	}

	.ydu-cta-boutique .ydu-cta-boutique__visuel img {
		max-height: 190px;
	}

	.ydu-cta-boutique .ydu-cta-boutique__titre {
		font-size: 28px;
	}

	.ydu-cta-boutique .ydu-cta-boutique__accroche {
		margin-bottom: 22px;
		font-size: 15px;
	}

	.ydu-cta-boutique a.ydu-cta-boutique__bouton {
		justify-content: center;
		width: 100%;
		box-sizing: border-box;
		padding: 14px 18px;
		font-size: 16px;
	}

	.ydu-cta-boutique ul.ydu-cta-boutique__atouts {
		flex-direction: column;
		align-items: center;
		gap: 12px;
		margin-top: 24px;
	}

	.ydu-cta-boutique ul.ydu-cta-boutique__atouts li,
	.ydu-cta-boutique ul.ydu-cta-boutique__atouts li:first-child {
		padding: 0;
		border-left: 0;
		font-size: 14px;
	}
}
