/**
 * Accueil v2 : hero sur fond blanc (theme/jc-hero.php).
 * Ici plutôt que dans le thème enfant : son dossier assets n'est pas modifiable par SFTP.
 */
.jc-hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(900px 420px at 85% 40%, #eef4fd 0%, rgba(238, 244, 253, 0) 70%),
		#fff;
	border-bottom: 1px solid var(--jc-line);
	font-family: var(--jc-font-body);
}

.jc-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
	align-items: center;
	gap: 48px;
	padding-top: 56px;
	padding-bottom: 64px;
}

/* Texte */
.jc-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
	padding: 7px 14px;
	border-radius: 999px;
	background: var(--jc-bg-soft);
	color: var(--jc-blue);
	font-size: 14px;
	font-weight: 700;
}

.jc-hero__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #22a861;
	box-shadow: 0 0 0 4px rgba(34, 168, 97, .18);
}

.jc-v2 .jc-hero__title {
	margin: 0 0 18px;
	font-family: var(--jc-font-head);
	font-size: clamp(2.1rem, 1.2rem + 2.6vw, 3.6rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -.02em;
	color: var(--jc-ink);
}

.jc-hero__title mark {
	padding: 0 .08em;
	background: linear-gradient(transparent 58%, var(--jc-accent) 58%, var(--jc-accent) 92%, transparent 92%);
	color: inherit;
}

.jc-hero__lead {
	max-width: 54ch;
	margin: 0 0 28px;
	font-size: clamp(1rem, .95rem + .3vw, 1.18rem);
	line-height: 1.6;
	color: #4a5068;
}

.jc-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 22px;
	margin-bottom: 28px;
}

.jc-v2 .jc-hero__cta,
.jc-v2 .jc-hero__cta:visited {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 56px;
	padding: 0 30px;
	border-radius: 14px;
	background: var(--jc-orange);
	color: var(--jc-ink);
	font-family: var(--jc-font-head);
	font-size: 17px;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 10px 24px -10px rgba(232, 150, 42, .8);
	transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.jc-v2 .jc-hero__cta:hover,
.jc-v2 .jc-hero__cta:focus-visible {
	background: var(--jc-orange-2);
	color: var(--jc-ink);
	transform: translateY(-2px);
	box-shadow: 0 14px 28px -10px rgba(232, 150, 42, .9);
}

.jc-v2 .jc-hero__free,
.jc-v2 .jc-hero__free:visited {
	color: var(--jc-blue);
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
	text-decoration-color: rgba(11, 81, 141, .3);
}

.jc-v2 .jc-hero__free:hover,
.jc-v2 .jc-hero__free:focus-visible {
	text-decoration-color: currentColor;
}

.jc-hero__trust {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14.5px;
	font-weight: 600;
	color: #3a3f4f;
}

.jc-hero__trust li {
	display: flex;
	align-items: center;
	gap: 7px;
}

.jc-hero__trust svg {
	flex: none;
	color: #22a861;
}

/* Composition de couvertures */
.jc-hero__visual {
	position: relative;
	height: 440px;
	max-width: 600px;
	margin-inline: auto;
	width: 100%;
}

.jc-hero__cover {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 42%;
	aspect-ratio: 720 / 1024;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 2px 4px rgba(13, 19, 30, .08), 0 24px 48px -18px rgba(13, 30, 70, .45);
	transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease;
}

.jc-hero__cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Éventail : la couverture 1 (meilleure vente) au premier plan. */
.jc-hero__cover--1 {
	z-index: 4;
	transform: translate(-50%, -50%);
}

.jc-hero__cover--2 {
	z-index: 3;
	transform: translate(-112%, -46%) rotate(-8deg) scale(.86);
}

.jc-hero__cover--3 {
	z-index: 2;
	transform: translate(12%, -46%) rotate(8deg) scale(.86);
}

.jc-hero__cover--4 {
	z-index: 1;
	transform: translate(-50%, -64%) rotate(2deg) scale(.74);
	opacity: .9;
}

.jc-hero__visual:hover .jc-hero__cover--2 {
	transform: translate(-124%, -48%) rotate(-11deg) scale(.86);
}

.jc-hero__visual:hover .jc-hero__cover--3 {
	transform: translate(24%, -48%) rotate(11deg) scale(.86);
}

.jc-hero__visual:hover .jc-hero__cover--1 {
	transform: translate(-50%, -53%);
	box-shadow: 0 2px 4px rgba(13, 19, 30, .08), 0 34px 60px -20px rgba(13, 30, 70, .55);
}

/* Taches de couleur, comme sur les couvertures Just Color. */
.jc-hero__splash {
	position: absolute;
	border-radius: 50%;
	filter: blur(2px);
	opacity: .85;
}

.jc-hero__splash--1 {
	width: 120px;
	height: 120px;
	top: 6%;
	right: 8%;
	background: radial-gradient(circle at 35% 35%, #ffd86b, #f2a842);
}

.jc-hero__splash--2 {
	width: 84px;
	height: 84px;
	bottom: 8%;
	left: 6%;
	background: radial-gradient(circle at 35% 35%, #7cc6ff, #1e73be);
}

.jc-hero__splash--3 {
	width: 46px;
	height: 46px;
	top: 14%;
	left: 14%;
	background: radial-gradient(circle at 35% 35%, #ff9aa8, #e5484d);
}

.jc-hero__badge {
	position: absolute;
	z-index: 5;
	right: 4%;
	bottom: 6%;
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	padding: 12px 16px;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 16px 34px -14px rgba(13, 30, 70, .4);
	font-size: 13px;
	line-height: 1.3;
	color: #4a5068;
}

.jc-hero__badge strong {
	font-family: var(--jc-font-head);
	font-size: 16px;
	color: var(--jc-blue);
}

@media (prefers-reduced-motion: reduce) {
	.jc-hero__cover,
	.jc-v2 .jc-hero__cta {
		transition: none;
	}
}

@media (max-width: 976px) {
	.jc-hero__inner {
		grid-template-columns: 1fr;
		gap: 24px;
		padding-top: 36px;
		padding-bottom: 40px;
	}

	.jc-hero__visual {
		height: 340px;
		max-width: 480px;
	}
}

@media (max-width: 600px) {
	.jc-hero__actions {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
	}

	.jc-v2 .jc-hero__cta {
		justify-content: center;
	}

	.jc-hero__visual {
		height: 280px;
	}

	.jc-hero__cover--4,
	.jc-hero__splash--3 {
		display: none;
	}

	.jc-hero__badge {
		right: 0;
		bottom: 2%;
	}
}

/* ---------------------------------------------------------------------------
 * Offre "livre bonus offert" (theme/jc-offer-bonus.php)
 * ------------------------------------------------------------------------- */
.jc-bonus {
	position: relative;
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	align-items: center;
	gap: 48px;
	margin: 48px 0;
	padding: 36px 48px 36px 40px;
	overflow: hidden;
	border: 1px solid #cdebd8;
	border-radius: 24px;
	background:
		radial-gradient(420px 260px at 0% 100%, rgba(34, 168, 97, .16), transparent 70%),
		radial-gradient(360px 220px at 100% 0%, rgba(255, 216, 107, .28), transparent 70%),
		#f3fbf6;
	font-family: var(--jc-font-body);
	color: #2f3a33;
}

/* Couverture inclinée, ruban "offert" */
.jc-bonus__visual {
	position: relative;
	justify-self: center;
	width: 200px;
}

.jc-bonus__cover {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 8px;
	transform: rotate(-4deg);
	box-shadow: 0 2px 4px rgba(13, 19, 30, .08), 0 22px 40px -16px rgba(16, 70, 40, .5);
	transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}

.jc-bonus:hover .jc-bonus__cover {
	transform: rotate(-1deg) translateY(-4px);
}

.jc-bonus__ribbon {
	position: absolute;
	z-index: 1;
	top: -12px;
	right: -18px;
	display: grid;
	place-items: center;
	width: 74px;
	height: 74px;
	border-radius: 50%;
	background: #e5484d;
	color: #fff;
	font-family: var(--jc-font-head);
	font-size: 14px;
	font-weight: 800;
	letter-spacing: .04em;
	transform: rotate(12deg);
	box-shadow: 0 8px 18px -6px rgba(229, 72, 77, .7), inset 0 0 0 3px rgba(255, 255, 255, .35);
}

.jc-bonus__badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 12px;
	padding: 6px 12px;
	border-radius: 999px;
	background: #fff;
	color: #1b7f46;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
	box-shadow: 0 1px 0 #cdebd8;
}

.jc-v2 .jc-bonus__title {
	margin: 0 0 12px;
	font-family: var(--jc-font-head);
	font-size: clamp(1.45rem, 1.05rem + 1.2vw, 2.1rem);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -.01em;
	color: var(--jc-ink);
}

.jc-bonus__text {
	max-width: 60ch;
	margin: 0 0 18px;
	font-size: 16.5px;
	line-height: 1.6;
	color: #4a5550;
}

.jc-bonus__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

.jc-bonus__chips li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid #d6efe0;
	font-size: 14px;
	font-weight: 600;
	color: #2f3a33;
}

.jc-bonus__chips svg {
	color: #22a861;
}

.jc-bonus__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
}

.jc-v2 .jc-bonus__cta,
.jc-v2 .jc-bonus__cta:visited {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 50px;
	padding: 0 24px;
	border-radius: 12px;
	background: #1b7f46;
	color: #fff;
	font-family: var(--jc-font-head);
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 10px 22px -10px rgba(27, 127, 70, .8);
	transition: transform .18s ease, background .18s ease;
}

.jc-v2 .jc-bonus__cta:hover,
.jc-v2 .jc-bonus__cta:focus-visible {
	background: #16693a;
	color: #fff;
	transform: translateY(-2px);
}

.jc-bonus__how {
	flex: 1 1 260px;
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: #5b6660;
}

@media (prefers-reduced-motion: reduce) {
	.jc-bonus__cover,
	.jc-v2 .jc-bonus__cta {
		transition: none;
	}
}

@media (max-width: 760px) {
	.jc-bonus {
		grid-template-columns: 1fr;
		gap: 28px;
		padding: 32px 22px 26px;
		text-align: center;
	}

	.jc-bonus__visual {
		width: 150px;
	}

	.jc-bonus__chips,
	.jc-bonus__footer {
		justify-content: center;
	}

	.jc-bonus__text {
		margin-inline: auto;
	}
}

/* ---------------------------------------------------------------------------
 * Pages collection : la description suit la largeur du titre et de la grille
 * (le groupe "constrained" du modèle la limitait à la largeur de contenu).
 * ------------------------------------------------------------------------- */
.jc-v2 .is-layout-constrained > .wp-block-term-description {
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}
