/*
 * CDSC — page de vente (single product).
 *
 * Sections : notices, hero, VSL, outcomes, curriculum, howto,
 * témoignages, authbox, buybox, bump, FAQ, sticky bar.
 */

/* ---------- Notices Woo ---------- */

.cdsc-shop-notices:empty {
	display: none;
}

.cdsc-shop-notices .woocommerce-message,
.cdsc-shop-notices .woocommerce-info,
.cdsc-shop-notices .woocommerce-error {
	list-style: none;
	max-width: 1180px;
	margin: 14px auto 0;
	padding: 12px 18px;
	border-radius: 12px;
	background: var(--forest-soft);
	color: var(--forest);
	font-weight: 600;
	font-size: .92rem;
}

.cdsc-shop-notices .woocommerce-error {
	background: #F8E7E2;
	color: #B54A3A;
}

.cdsc-shop-notices .woocommerce-message a,
.cdsc-shop-notices .woocommerce-info a {
	color: inherit;
}

/* ---------- Hero ---------- */

.cdsc-sp-hero {
	display: grid;
	grid-template-columns: 1.05fr .95fr;
	gap: clamp(30px, 4vw, 60px);
	align-items: center;
	padding: clamp(40px, 6vw, 76px) var(--align-pad);
	background: var(--forest-2);
	color: var(--cream);
	font-family: var(--body);
}

.cdsc-sp-hero-solo {
	grid-template-columns: 1fr;
}

.cdsc-sp-hero-solo .cdsc-sp-intro {
	max-width: 720px;
}

@media (max-width: 820px) {
	.cdsc-sp-hero {
		grid-template-columns: 1fr;
		gap: 26px;
	}
}

.cdsc-sp-kick {
	font-family: var(--body);
	font-weight: 600;
	letter-spacing: .2em;
	text-transform: uppercase;
	font-size: .74rem;
	color: var(--honey);
	margin: 0;
	display: inline-flex;
	align-items: center;
	gap: 13px;
}

.cdsc-sp-kick::before {
	content: "";
	width: 34px;
	height: 1px;
	background: currentColor;
	opacity: .7;
}

.cdsc-sp-title {
	font-family: var(--display);
	font-optical-sizing: auto;
	font-weight: 360;
	font-size: clamp(2.2rem, 4.6vw, 3.4rem);
	line-height: 1.02;
	letter-spacing: -.02em;
	margin: .3em 0 .34em;
	color: var(--cream);
}

.cdsc-sp-lead {
	font-size: 1.1rem;
	line-height: 1.5;
	color: rgba(251, 246, 238, .82);
	max-width: 46ch;
	margin: 0;
}

.cdsc-sp-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 20px 0 4px;
}

.cdsc-sp-badges .cdsc-badge {
	font-family: var(--body);
	font-weight: 600;
	background: rgba(255, 255, 255, .12);
	color: #F1EADA;
}

.cdsc-sp-proof {
	margin: 14px 0 0;
	font-size: .84rem;
	font-weight: 600;
	color: rgba(251, 246, 238, .72);
}

.cdsc-sp-points {
	list-style: none;
	margin: 18px 0 0;
	padding: 0;
	display: grid;
	gap: 8px;
	font-size: .98rem;
	color: rgba(251, 246, 238, .92);
}

.cdsc-sp-points li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.cdsc-sp-points .cdsc-chk {
	background: rgba(255, 255, 255, .14);
	color: var(--honey);
}

.cdsc-sp-price-was {
	font-family: var(--display);
	font-weight: 400;
	font-size: 1.3rem;
	color: rgba(251, 246, 238, .55);
	text-decoration: line-through;
}

.cdsc-sp-price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 12px;
	margin: 22px 0;
}

.cdsc-sp-price-now {
	font-family: var(--display);
	font-weight: 400;
	font-size: 2.9rem;
	color: var(--honey);
	line-height: 1;
	letter-spacing: -.02em;
}

.cdsc-sp-price-unit {
	color: rgba(251, 246, 238, .66);
	font-size: .9rem;
}

.cdsc-sp-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

.cdsc-sp-visual {
	display: block;
	width: 100%;
	border-radius: 18px;
	box-shadow: var(--shadow);
}

/* ---------- VSL ---------- */

.cdsc-vsl {
	position: relative;
	border-radius: 18px;
	overflow: hidden;
	background: linear-gradient(140deg, #1C4A37, #0F2E22);
	box-shadow: var(--shadow);
}

.cdsc-vsl video,
.cdsc-vsl iframe {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	border: 0;
}

.cdsc-chaps {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 10px 0 0;
	padding: 0;
}

.cdsc-chap {
	font-size: .72rem;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 5px 10px;
	color: var(--muted);
}

.cdsc-chap b {
	color: var(--forest);
	font-variant-numeric: tabular-nums;
}

/* ---------- Coche partagée ---------- */

.cdsc-chk {
	flex: none;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--forest-soft);
	color: var(--forest);
	display: inline-grid;
	place-items: center;
	font-size: .72rem;
	font-weight: 900;
	margin-top: 1px;
}

/* ---------- Outcomes ---------- */

.cdsc-outcomes {
	list-style: none;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	max-width: 860px;
	margin: 22px auto 0;
	padding: 0;
}

@media (max-width: 620px) {
	.cdsc-outcomes {
		grid-template-columns: 1fr;
	}
}

.cdsc-oc {
	display: flex;
	gap: 11px;
	align-items: flex-start;
	font-size: .94rem;
	font-weight: 500;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 14px 16px;
}

/* ---------- Curriculum ---------- */

.cdsc-curric {
	list-style: none;
	display: grid;
	gap: 10px;
	max-width: 760px;
	margin: 24px auto 0;
	padding: 0;
	counter-reset: cdsc-mod;
}

.cdsc-mod {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 13px;
	padding: 16px 18px;
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.cdsc-mod-n {
	counter-increment: cdsc-mod;
	font-family: var(--display);
	font-style: italic;
	font-weight: 340;
	color: var(--honey-2);
	flex: none;
	min-width: 42px;
	font-size: 1.7rem;
	line-height: 1;
}

.cdsc-mod-n::before {
	content: counter(cdsc-mod, decimal-leading-zero);
}

.cdsc-mod-title {
	font-family: var(--display);
	font-weight: 460;
	font-size: 1.16rem;
	letter-spacing: -.01em;
	margin: 0 0 4px;
}

.cdsc-mod p {
	margin: 0;
	font-size: .86rem;
	color: var(--muted);
}

/* ---------- Comment ça marche ---------- */

.cdsc-howto {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 14px;
	max-width: 1092px;
	margin: 24px auto 0;
}

.cdsc-how {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 22px;
}

.cdsc-how-n {
	font-family: var(--display);
	font-style: italic;
	font-weight: 340;
	font-size: 2rem;
	line-height: 1;
	color: var(--honey-2);
	display: block;
	margin-bottom: 12px;
}

.cdsc-how h3 {
	font-family: var(--body);
	font-weight: 600;
	font-size: 1.05rem;
	margin: 0 0 5px;
}

.cdsc-how p {
	font-size: .82rem;
	color: var(--muted);
	margin: 0;
}

/* ---------- Témoignages ---------- */

/* Les citations sont de longueurs très inégales : la répartition est
   calculée au rendu (chaque carte va dans la colonne la plus courte),
   les colonnes CSS seules laissant de grands trous en pied. */
.cdsc-testis {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0 14px;
	align-items: start;
	max-width: 1092px;
	margin: 26px auto 0;
}

.cdsc-testi-col {
	display: flex;
	flex-direction: column;
}

@media (max-width: 900px) {
	.cdsc-testis {
		display: block;
		columns: 2;
		column-gap: 14px;
	}

	.cdsc-testi-col {
		display: contents;
	}
}

@media (max-width: 560px) {
	.cdsc-testis {
		columns: 1;
	}
}

.cdsc-testi {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 20px;
	box-shadow: var(--shadow-sm);
	margin: 0 0 14px;
	break-inside: avoid;
}

.cdsc-testi .cdsc-stars {
	font-size: .9rem;
	margin: 0;
}

.cdsc-testi blockquote {
	margin: 0;
}

.cdsc-testi blockquote p {
	font-size: .94rem;
	margin: 10px 0 14px;
	line-height: 1.5;
}

.cdsc-testi-who b {
	font-family: var(--body);
	font-weight: 600;
	font-size: .9rem;
	display: block;
}

.cdsc-testi-who span {
	font-size: .78rem;
	color: var(--muted);
}

/* ---------- Authbox ---------- */

.cdsc-authbox {
	display: flex;
	gap: 20px;
	align-items: center;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 18px;
	padding: 22px;
	max-width: 660px;
	margin: 0 auto;
	box-shadow: var(--shadow-sm);
}

@media (max-width: 560px) {
	.cdsc-authbox {
		flex-direction: column;
		text-align: center;
	}
}

.cdsc-authbox-av {
	width: 84px;
	height: 84px;
	border-radius: 50%;
	flex: none;
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, var(--forest-soft), var(--honey-soft));
	box-shadow: inset 0 0 0 1.5px rgba(36, 92, 67, .14);
	color: var(--forest);
}

.cdsc-authbox-av svg {
	width: 38px;
	height: 38px;
}

.cdsc-authbox-title {
	font-family: var(--display);
	font-weight: 460;
	font-size: 1.35rem;
	letter-spacing: -.01em;
	margin: 0 0 6px;
}

.cdsc-authbox p {
	margin: 0;
	font-size: .9rem;
	color: var(--muted);
}

/* ---------- Buybox ---------- */

.cdsc-buybox {
	background: linear-gradient(150deg, #fff, var(--honey-soft));
	border: 1.5px solid var(--honey);
	border-radius: 20px;
	padding: 28px;
	text-align: center;
	max-width: 560px;
	margin: 28px auto 0;
	box-shadow: var(--shadow);
}

.cdsc-buybox-price {
	font-family: var(--display);
	font-weight: 400;
	font-size: 3.2rem;
	color: var(--forest);
	line-height: 1;
	letter-spacing: -.02em;
	margin: 14px 0 0;
}

.cdsc-buybox-terms {
	color: var(--muted);
	margin: 6px 0 0;
}

.cdsc-buybox-anchor {
	font-size: .88rem;
	font-style: italic;
	color: var(--forest);
	margin: 10px auto 0;
	max-width: 40ch;
}

.cdsc-buybox-was {
	font-size: .55em;
	color: var(--muted);
	margin-right: 10px;
}

/* ---------- Cross-sell de fin de fiche ---------- */

.cdsc-crosssell-lead {
	font-family: var(--display);
	font-optical-sizing: auto;
	font-weight: 400;
	font-size: 1.35rem;
	letter-spacing: -.01em;
	margin: .1em auto 0;
	max-width: 34ch;
}

.cdsc-crosssell {
	max-width: 860px;
	margin-left: auto;
	margin-right: auto;
	margin-top: 26px;
}

/* ---------- Bande d'ambiance crépuscule ---------- */

.cdsc-mood {
	position: relative;
	min-height: clamp(280px, 36vw, 440px);
	background-size: cover;
	/* La photo est composée dans sa moitié basse (chien assis, soleil,
	   reflet) : la tranche affichée se cale près du bas de l'image. */
	background-position: center 88%;
	display: grid;
	place-items: center;
	padding: clamp(40px, 6vw, 70px) var(--align-pad);
	isolation: isolate;
}

/* Voile vert forêt : la photo reste l'ambiance, le texte reste lisible. */
.cdsc-mood::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(22, 62, 46, .68), rgba(22, 62, 46, .45) 55%, rgba(22, 62, 46, .72));
	z-index: -1;
}

.cdsc-mood-quote {
	font-family: var(--display);
	font-optical-sizing: auto;
	font-weight: 380;
	font-size: clamp(1.7rem, 3.6vw, 2.6rem);
	line-height: 1.18;
	letter-spacing: -.01em;
	text-align: center;
	color: var(--cream);
	margin: 0;
	max-width: 24ch;
}

.cdsc-mood-quote em {
	font-style: italic;
	color: var(--honey);
}

/* ---------- CTA médian (après « Ce qui change ») ---------- */

.cdsc-oc-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-top: 30px;
}

.cdsc-oc-cta-note {
	font-size: .84rem;
	font-weight: 600;
	color: var(--muted);
}

/* ---------- Contenu du pack ---------- */

.cdsc-packlist {
	list-style: none;
	max-width: 640px;
	margin: 30px auto 0;
	padding: 6px 26px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 16px;
	box-shadow: var(--shadow-sm);
}

.cdsc-packlist-item {
	display: grid;
	grid-template-columns: 28px 1fr auto;
	gap: 10px;
	align-items: center;
	padding: 14px 0;
	border-bottom: 1px solid var(--line-soft);
	font-family: var(--body);
	font-size: .98rem;
}

.cdsc-packlist-item a {
	color: var(--ink);
	text-decoration: none;
	font-weight: 600;
}

.cdsc-packlist-item a:hover {
	color: var(--forest);
}

.cdsc-packlist-price {
	color: var(--muted);
}

.cdsc-packlist-total {
	color: var(--muted);
}

.cdsc-packlist-now {
	border-bottom: none;
	font-weight: 700;
}

.cdsc-packlist-now .cdsc-packlist-price {
	font-family: var(--display);
	font-size: 1.5rem;
	color: var(--forest);
}

.cdsc-packlist-note {
	text-align: center;
	font-size: .92rem;
	color: var(--muted);
	margin: 16px auto 0;
	max-width: 54ch;
}

.cdsc-buybox-incl {
	list-style: none;
	display: grid;
	gap: 8px;
	margin: 18px auto 0;
	padding: 0;
	max-width: 340px;
	text-align: left;
	font-size: .92rem;
	font-weight: 500;
}

.cdsc-buybox-incl li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.cdsc-bump {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	text-align: left;
	background: #fff;
	border: 1.5px dashed var(--honey);
	border-radius: 13px;
	padding: 14px 16px;
	margin-top: 18px;
	cursor: pointer;
}

.cdsc-bump input {
	position: absolute;
	opacity: 0;
	width: 22px;
	height: 22px;
}

.cdsc-bump-box {
	width: 22px;
	height: 22px;
	border-radius: 7px;
	border: 1.5px solid var(--honey);
	background: #fff;
	color: transparent;
	flex: none;
	display: grid;
	place-items: center;
	font-weight: 900;
	font-size: .8rem;
	margin-top: 1px;
	transition: background .12s ease, color .12s ease;
}

.cdsc-bump input:checked + .cdsc-bump-box {
	background: var(--honey);
	color: var(--forest-2);
}

.cdsc-bump input:focus-visible + .cdsc-bump-box {
	outline: 3px solid var(--honey);
	outline-offset: 2px;
}

.cdsc-bump-text {
	margin: 0;
	font-size: .86rem;
	color: var(--muted);
}

.cdsc-bump-text b {
	font-family: var(--body);
	font-weight: 700;
	color: var(--ink);
}

/* Order bump rendu cliquable en entier (renvoi vers la page affiliée du pack). */
a.cdsc-bump {
	text-decoration: none;
	color: inherit;
}

.cdsc-buy-btn {
	margin-top: 18px;
	width: 100%;
	justify-content: center;
	font-size: 1.05rem;
}

.cdsc-payrow {
	list-style: none;
	display: flex;
	gap: 8px;
	justify-content: center;
	margin: 14px 0 0;
	padding: 0;
	flex-wrap: wrap;
}

.cdsc-pay {
	font-size: .76rem;
	font-weight: 700;
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 6px 11px;
	background: #fff;
	color: var(--muted);
}

.cdsc-buybox-guar {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	background: var(--forest-soft);
	color: var(--forest);
	font-weight: 700;
	font-size: .84rem;
	padding: 8px 14px;
	border-radius: 999px;
	margin: 14px 0 0;
}

/* ---------- FAQ ---------- */

.cdsc-faq {
	max-width: 720px;
	margin: 24px auto 0;
	display: grid;
	gap: 10px;
}

.cdsc-qa {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 13px;
	padding: 0 20px;
}

.cdsc-qa summary {
	font-family: var(--body);
	font-weight: 600;
	font-size: 1.02rem;
	padding: 18px 0;
	display: flex;
	gap: 9px;
	align-items: center;
	cursor: pointer;
	list-style: none;
}

.cdsc-qa summary::-webkit-details-marker {
	display: none;
}

.cdsc-qa summary::before {
	content: "?";
	width: 22px;
	height: 22px;
	flex: none;
	background: var(--honey-soft);
	color: var(--honey-2);
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-size: .8rem;
	font-weight: 900;
	transition: background .15s ease, color .15s ease;
}

.cdsc-qa[open] summary::before {
	background: var(--honey);
	color: var(--forest-2);
}

.cdsc-qa p {
	margin: 0;
	padding: 0 0 18px 31px;
	font-size: .9rem;
	color: var(--muted);
}

/* ---------- Sticky bar mobile ---------- */

.cdsc-sticky-cta {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 60;
	display: none;
	gap: 12px;
	align-items: center;
	padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
	background: #fff;
	border-top: 1px solid var(--line);
	box-shadow: 0 -8px 24px -14px rgba(22, 62, 46, .4);
	transform: translateY(100%);
	transition: transform .25s ease;
}

.cdsc-sticky-price {
	font-family: var(--display);
	font-weight: 400;
	color: var(--forest);
	font-size: 1.3rem;
	white-space: nowrap;
}

.cdsc-sticky-guar {
	font-size: .74rem;
	font-weight: 600;
	color: var(--muted);
	white-space: nowrap;
}

.cdsc-sticky-btn {
	flex: 1;
	justify-content: center;
}

@media (max-width: 719px) {
	.cdsc-sticky-cta {
		display: flex;
	}

	.cdsc-sticky-cta.is-visible {
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cdsc-sticky-cta {
		transition: none;
	}
}
