/*
 * CDSC — styles de la page d'accueil (enqueue conditionnel front page).
 * Sections : hero + opt-in, stats, en-têtes de section, pains, pillars,
 * produits + pack, témoignages, leadband, blog teaser.
 */

/* ---------- Hero (« Crépuscule ») ---------- */

.cdsc-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 26px;
	min-height: clamp(560px, 82vh, 780px);
	padding: clamp(40px, 6vw, 76px) var(--align-pad) clamp(48px, 6vw, 72px);
	font-family: var(--body);
	background-color: var(--forest-2);
	background-image: url("../img/hero-lac.jpg");
	background-size: cover;
	background-position: 70% 44%;
	background-repeat: no-repeat;
}

/* Green dusk veil: heavy on the left where the copy sits, fading to
   reveal the dog on the right, with a soft floor to anchor the card. */
.cdsc-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(96deg, rgba(11, 32, 24, .92) 0%, rgba(11, 32, 24, .74) 30%, rgba(11, 32, 24, .28) 52%, rgba(11, 32, 24, 0) 70%),
		linear-gradient(0deg, rgba(11, 32, 24, .78) 0%, rgba(11, 32, 24, 0) 42%),
		linear-gradient(0deg, rgba(22, 62, 46, .34), rgba(22, 62, 46, .34));
	mix-blend-mode: multiply;
}

.cdsc-hero > * {
	position: relative;
	z-index: 2;
}

.cdsc-hero-copy {
	max-width: 620px;
}

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

.cdsc-hero-rule {
	display: inline-block;
	width: 52px;
	height: 1px;
	background: var(--honey);
	opacity: .7;
	flex: none;
}

.cdsc-hero h1 {
	font-family: var(--display);
	font-optical-sizing: auto;
	font-weight: 360;
	font-size: clamp(2.5rem, 6vw, 4.5rem);
	line-height: 1;
	letter-spacing: -.02em;
	margin: .32em 0 .34em;
	color: #F7F1E4;
	text-wrap: balance;
}

.cdsc-hero h1 em {
	font-style: italic;
	font-weight: 380;
	color: var(--honey);
}

.cdsc-hero-lead {
	font-family: var(--body);
	font-size: 1.1rem;
	line-height: 1.5;
	color: #E4DECD;
	max-width: 42ch;
	margin: 0 0 26px;
}

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

.cdsc-hero .cdsc-btn {
	font-family: var(--body);
	font-weight: 600;
}

.cdsc-hero-trust {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 22px;
	flex-wrap: wrap;
}

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

/* The opt-in stays a bright card so it holds focus over the dusk photo;
   it lives in the left rail so the dog keeps the open right side. */
.cdsc-hero .cdsc-optin {
	max-width: 424px;
	width: 100%;
}

.cdsc-hero-more {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin-top: 20px;
	font-family: var(--body);
	font-weight: 600;
	font-size: .95rem;
	color: #F1EADA;
	text-decoration: none;
	border-bottom: 1px solid rgba(231, 162, 58, .8);
	padding-bottom: 4px;
}

.cdsc-hero-more span {
	color: var(--honey);
}

@media (max-width: 719px) {
	/* La barre de navigation flotte aussi sur le hero en mobile : le
	   contenu démarre sous elle. */
	.cdsc-hero {
		padding-top: 104px;
	}
}

@media (max-width: 620px) {
	.cdsc-hero {
		background-position: 66% 42%;
	}

	.cdsc-hero h1 {
		font-size: clamp(2.3rem, 11vw, 3rem);
	}
}

/* ---------- Carte opt-in ---------- */

.cdsc-optin {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 20px;
	padding: 24px;
	box-shadow: var(--shadow);
	/* L'en-tête fixe reste transparente dans le hero : l'arrivée sur
	   /#optin doit poser la carte sous elle, pas derrière. */
	scroll-margin-top: 96px;
}

.cdsc-optin-hd {
	font-family: var(--round);
	font-weight: 800;
	font-size: 1.15rem;
	margin: 0 0 4px;
}

.cdsc-optin-sd {
	font-size: .9rem;
	color: var(--muted);
	margin: 0 0 16px;
}

.cdsc-optin-list {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
	display: grid;
	gap: 9px;
}

.cdsc-optin-list li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: .92rem;
	font-weight: 500;
}

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

.cdsc-optin-form .cdsc-field {
	margin-bottom: 10px;
}

.cdsc-btn-block {
	width: 100%;
	justify-content: center;
}

.cdsc-optin-fine {
	font-size: .72rem;
	color: var(--faint);
	text-align: center;
	margin: 10px 0 0;
}

/* ---------- Bandeau chiffres ---------- */

.cdsc-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 0;
	padding: clamp(30px, 4vw, 44px) var(--align-pad);
	background: var(--forest-2);
	font-family: var(--body);
}

.cdsc-stat {
	position: relative;
	text-align: left;
	padding: 4px 26px;
}

.cdsc-stat + .cdsc-stat::before {
	content: "";
	position: absolute;
	left: 0;
	top: 6px;
	bottom: 6px;
	width: 1px;
	background: rgba(251, 246, 238, .16);
}

.cdsc-stat-v {
	font-family: var(--display);
	font-optical-sizing: auto;
	font-weight: 400;
	font-size: 2.7rem;
	line-height: 1;
	color: var(--cream);
	letter-spacing: -.02em;
	font-variant-numeric: tabular-nums;
}

.cdsc-stat:last-child .cdsc-stat-v {
	color: var(--honey);
}

.cdsc-stat-l {
	font-size: .82rem;
	color: rgba(251, 246, 238, .66);
	margin-top: 8px;
}

/* ---------- Couche éditoriale de l'accueil ---------- */

/* On the home page the section heads read left, not centred. */
.cdsc-sec-head.cdsc-center {
	text-align: left;
	margin-left: 0;
	margin-right: 0;
}

.cdsc-sec-head.cdsc-center .cdsc-sub {
	margin-left: 0;
	margin-right: 0;
}

/* Douleurs numérotées : styles partagés avec les pages de vente,
   dans main.css. */

/* ---------- Méthode : 3 piliers ---------- */

.cdsc-pillars-sec {
	background: var(--forest);
	color: var(--cream);
}

.cdsc-pillars-sec .cdsc-eyebrow {
	color: var(--honey);
}

.cdsc-pillars-sec .cdsc-sec-head h2,
.cdsc-pillars-sec .cdsc-sec-head h2 em {
	color: var(--cream);
}

.cdsc-pillars-sec .cdsc-sec-head h2 em {
	color: var(--honey);
}

.cdsc-pillars-sec .cdsc-sub {
	color: rgba(251, 246, 238, .78);
}

.cdsc-pillars {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	margin-top: 46px;
}

@media (max-width: 720px) {
	.cdsc-pillars {
		grid-template-columns: 1fr;
		gap: 34px;
	}
}

.cdsc-pillar {
	background: none;
	border: none;
	border-top: 1px solid rgba(251, 246, 238, .22);
	border-radius: 0;
	padding: 26px 0 0;
	box-shadow: none;
}

.cdsc-pillar-no {
	font-family: var(--display);
	font-style: italic;
	font-weight: 340;
	font-size: 3.1rem;
	line-height: 1;
	color: var(--honey);
	background: none;
	width: auto;
	height: auto;
	display: block;
}

.cdsc-pillar h3 {
	font-family: var(--body);
	font-weight: 600;
	font-size: 1.28rem;
	color: var(--cream);
	margin: 16px 0 9px;
}

.cdsc-pillar p {
	font-size: .97rem;
	color: rgba(251, 246, 238, .74);
	margin: 0;
	line-height: 1.55;
}

/* ---------- Formations ---------- */

.cdsc-prods {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 14px;
	margin-top: 26px;
}

.cdsc-prod {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	display: flex;
	flex-direction: column;
}

.cdsc-prod-top {
	position: relative;
	display: block;
	height: 132px;
	overflow: hidden;
	background: linear-gradient(140deg, #245C43, #163E2E);
}

.cdsc-prod-flag {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 1;
}

/* Three brand-green tones cycle so the cards read as a set, not clones. */
.cdsc-prod-top-0 {
	background: linear-gradient(140deg, #245C43, #163E2E);
}

.cdsc-prod-top-1 {
	background: linear-gradient(140deg, #1A4A3C, #0E2C22);
}

.cdsc-prod-top-2 {
	background: linear-gradient(150deg, #4A5A2C, #26331A);
}

.cdsc-prod-top img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.cdsc-prod-top.has-img::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(15, 40, 29, .34);
}

/* Play button marks every formation as video at a glance. */
.cdsc-prod-play {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(251, 246, 238, .95);
	display: grid;
	place-items: center;
	box-shadow: 0 8px 22px -8px rgba(0, 0, 0, .55);
}

.cdsc-prod-play::before {
	content: "";
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 8px 0 8px 13px;
	border-color: transparent transparent transparent var(--forest);
	margin-left: 3px;
}

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

.cdsc-prod-kind::before {
	content: "";
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 4px 0 4px 6px;
	border-color: transparent transparent transparent var(--honey-2);
}

.cdsc-prod-bd {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
	align-items: flex-start;
}

.cdsc-prod-title {
	font-family: var(--display);
	font-optical-sizing: auto;
	font-weight: 430;
	font-size: 1.16rem;
	line-height: 1.15;
	letter-spacing: -.01em;
	margin: 0;
}

.cdsc-prod-title a {
	color: var(--ink);
	text-decoration: none;
}

.cdsc-prod-title a:hover {
	color: var(--forest);
}

.cdsc-prod-bd p {
	font-size: .84rem;
	color: var(--muted);
	margin: 0;
	flex: 1;
}

.cdsc-prod-pr {
	font-family: var(--display);
	font-weight: 440;
	color: var(--forest);
	font-size: 1.3rem;
	letter-spacing: -.01em;
}

/* ---------- Bandeau pack ---------- */

.cdsc-pack {
	background: linear-gradient(150deg, var(--forest) 0%, var(--forest-2) 100%);
	color: #fff;
	border-radius: 18px;
	padding: 26px;
	margin-top: 16px;
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 22px;
	align-items: center;
	box-shadow: var(--shadow);
}

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

.cdsc-pack h3 {
	font-family: var(--display);
	font-weight: 400;
	font-size: 1.85rem;
	letter-spacing: -.02em;
	margin: 12px 0 8px;
}

.cdsc-pack-sub {
	color: #DCEAE0;
	margin: 0;
}

.cdsc-pack-list {
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 7px;
	font-size: .9rem;
	color: #DCEAE0;
}

.cdsc-pack-list li {
	display: flex;
	gap: 9px;
	align-items: center;
}

.cdsc-pack-list .cdsc-chk {
	background: rgba(255, 255, 255, .16);
	color: #fff;
	margin-top: 0;
}

.cdsc-pack-price {
	text-align: center;
}

.cdsc-pack-was {
	text-decoration: line-through;
	opacity: .6;
	font-size: 1rem;
}

.cdsc-pack-now {
	font-family: var(--display);
	font-weight: 400;
	font-size: 3rem;
	line-height: 1;
	letter-spacing: -.02em;
}

.cdsc-pack-save {
	font-size: .8rem;
	color: var(--honey);
	font-weight: 700;
	margin-top: 4px;
}

.cdsc-pack-price .cdsc-btn {
	margin-top: 14px;
}

/* Bloc pré-adoption : styles partagés avec les fiches (cross-sell),
   dans main.css. */

.cdsc-formatnote {
	text-align: center;
	font-size: .86rem;
	color: var(--muted);
	margin: 18px 0 0;
}

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

/* Featured pull-quote leads the wall of proof. */
.cdsc-testi-lead {
	max-width: 900px;
	margin: 28px auto 46px;
	text-align: center;
}

.cdsc-testi-qm {
	font-family: var(--display);
	font-style: italic;
	font-weight: 400;
	font-size: 3.6rem;
	line-height: 1;
	color: var(--honey);
	display: block;
	margin-bottom: -4px;
}

.cdsc-testi-lead blockquote {
	font-family: var(--display);
	font-optical-sizing: auto;
	font-weight: 340;
	font-size: clamp(1.4rem, 2.7vw, 2.15rem);
	line-height: 1.3;
	letter-spacing: -.01em;
	color: var(--ink);
	margin: 0;
}

.cdsc-testi-lead blockquote b {
	font-weight: 440;
	font-style: italic;
	color: var(--forest);
}

.cdsc-testi-lead figcaption {
	margin-top: 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
}

.cdsc-testi-lead .cdsc-testi-av {
	margin-bottom: 6px;
}

.cdsc-testi-lead-nm {
	font-family: var(--body);
	font-weight: 600;
	font-size: .96rem;
}

.cdsc-testi-lead-dog {
	font-size: .82rem;
	color: var(--muted);
}

.cdsc-testis {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 14px;
	margin-top: 26px;
}

.cdsc-testi {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 16px;
	box-shadow: var(--shadow-sm);
}

.cdsc-testi-bd {
	padding: 20px;
}

.cdsc-testi-vt {
	overflow: hidden;
}

.cdsc-testi-thumb {
	position: relative;
	display: block;
	height: 150px;
	background: linear-gradient(135deg, #2A5940, #7A6335);
}

.cdsc-play {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .93);
	display: grid;
	place-items: center;
	color: var(--forest);
	font-size: 1rem;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
}

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

.cdsc-testi-quote {
	margin: 0;
}

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

.cdsc-testi-who {
	display: flex;
	align-items: center;
	gap: 10px;
}

.cdsc-testi-av {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--forest);
	color: var(--cream);
	display: grid;
	place-items: center;
	font-family: var(--body);
	font-weight: 600;
	flex: none;
}

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

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

/* ---------- Blog teaser ---------- */

.cdsc-posts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 16px;
	margin-top: 26px;
}

.cdsc-post {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: var(--shadow-sm);
}

.cdsc-post-im {
	display: block;
	aspect-ratio: 3 / 2;
	background: linear-gradient(135deg, var(--honey-soft), var(--forest-soft));
}

.cdsc-post-im img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.cdsc-post-bd {
	padding: 16px;
}

.cdsc-post-cat {
	font-family: var(--round);
	font-weight: 800;
	font-size: .68rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--honey-2);
	margin: 0;
}

.cdsc-post-title {
	font-size: 1.02rem;
	margin: 7px 0 6px;
	line-height: 1.2;
}

.cdsc-post-title a {
	color: var(--ink);
	text-decoration: none;
}

.cdsc-post-title a:hover {
	color: var(--forest);
}

.cdsc-post-excerpt {
	font-size: .84rem;
	color: var(--muted);
	margin: 0;
}
