/**
 * Dancepedia — hero bannière officielle (hub + fiches) et hub produit.
 * Archives fiches : hero + CTA uniquement ; UI culturelle claire inchangée en dessous.
 */

:root {
	--cddp-dp-violet-deep: #2a1454;
	--cddp-dp-night-blue: #0c1633;
	--cddp-dp-turquoise: #2ec4b6;
	--cddp-dp-turquoise-soft: #2ec4b6;
	--cddp-dp-text: #1a1a2e;
	--cddp-dp-muted: #4a5568;
	--cddp-dp-card-bg: #fff;
	--cddp-dp-card-border: rgba(15, 23, 42, 0.1);
}

body.cddp-dancepedia .site-content,
body.cddp-dancepedia-fiches .site-content,
body.cddp-dancepedia .entry-content,
body.cddp-dancepedia-fiches .entry-content {
	overflow-x: clip;
	max-width: 100%;
}

body.cddp-dancepedia .entry-header,
body.cddp-dancepedia .page-header,
body.cddp-dancepedia .entry-title {
	display: none !important;
}

body.cddp-dancepedia .entry-content {
	color: var(--cddp-dp-text);
	background: transparent;
	padding-bottom: 2.5rem;
}

/* ——— Hero bannière (hub + fiches accueil) ——— */
.cddp-dp-hero-wrap {
	max-width: 1180px;
	margin: 0 auto 1.25rem;
	padding: 0 clamp(0.75rem, 3vw, 1.5rem);
}

.cddp-dp-hero.cddp-dp-hero--banner-only {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 20px;
	overflow: hidden;
	background: transparent;
	box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

.cddp-dp-hero__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1672 / 941;
	object-fit: cover;
	border-radius: 20px;
}

.cddp-dp-hero-cta {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
	margin: 1.25rem 0 0;
	padding: 0;
	background: none !important;
	box-shadow: none !important;
}

.cddp-dp-hero-cta::before,
.cddp-dp-hero-cta::after {
	display: none !important;
	content: none !important;
}

.cddp-dp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	min-width: 11.5rem;
	padding: 0.65rem 1.5rem;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.95rem;
	text-decoration: none;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cddp-dp-btn--primary {
	color: #fff;
	background: linear-gradient(135deg, var(--cddp-dp-violet-deep) 0%, var(--cddp-dp-night-blue) 50%, var(--cddp-dp-turquoise) 100%);
	box-shadow: 0 8px 22px rgba(46, 196, 182, 0.28);
	border: none;
}

.cddp-dp-btn--secondary {
	color: var(--cddp-dp-violet-deep);
	background: #fff;
	border: 2px solid var(--cddp-dp-turquoise);
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.cddp-dp-btn:hover,
.cddp-dp-btn:focus {
	transform: translateY(-2px);
}

/* ——— Hub : présentation + sections (fond clair) ——— */
.cddp-dp-presentation {
	max-width: 1180px;
	margin: 0 auto 1.5rem;
	padding: 0 clamp(0.75rem, 3vw, 1.5rem);
	text-align: center;
}

.cddp-dp-presentation__subtitle {
	margin: 0 0 0.5rem;
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--cddp-dp-violet-deep);
	letter-spacing: 0.02em;
}

.cddp-dp-presentation__lead {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.65;
	color: var(--cddp-dp-muted);
}

.cddp-dp-sections {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 clamp(0.75rem, 3vw, 1.5rem) 2rem;
}

.cddp-dp-sections__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem;
}

.cddp-dp-card {
	padding: 1.35rem 1.25rem;
	border-radius: 18px;
	background: var(--cddp-dp-card-bg);
	border: 1px solid var(--cddp-dp-card-border);
	box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.cddp-dp-card__title {
	margin: 0 0 0.55rem;
	font-size: 1.15rem;
	color: var(--cddp-dp-text) !important;
}

.cddp-dp-card__desc {
	margin: 0 0 1rem;
	font-size: 0.95rem;
	line-height: 1.55;
	color: var(--cddp-dp-muted);
}

.cddp-dp-btn--card {
	min-width: auto;
	font-size: 0.9rem;
	padding: 0.55rem 1.15rem;
	background: rgba(46, 196, 182, 0.12);
	border: 1px solid rgba(46, 196, 182, 0.45);
	color: var(--cddp-dp-violet-deep);
}

/* Fiches : espacement hero avant portail culturel */
body.cddp-dancepedia-fiches .cddp-dp-hero-wrap {
	margin-top: 0.5rem;
}

/* Grand encart membre */
.cdm-grid > .cddp-dp-member-feature {
	order: -40;
	grid-column: 1 / -1;
}

.cddp-dp-member-feature {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.cddp-dp-member-feature__visual {
	display: block;
	width: 100%;
	margin: 0;
	min-height: 180px;
	aspect-ratio: 1672 / 941;
	border-radius: 20px;
	overflow: hidden;
	background: var(--cddp-dp-violet-deep) var(--cddp-dp-member-bg, none) center / cover no-repeat;
	box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14);
}

.cddp-dp-member-feature__cta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	background: none;
}

.cd-product-universe--dp .cd-product-universe__btn--primary {
	background: linear-gradient(135deg, var(--cddp-dp-violet-deep), var(--cddp-dp-turquoise));
	border: none;
	color: #fff;
}

.cd-product-universe--dp .cd-product-universe__btn--secondary {
	border-color: var(--cddp-dp-turquoise);
	color: var(--cddp-dp-violet-deep);
	background: #fff;
}

@media (max-width: 768px) {
	.cddp-dp-sections__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.cddp-dp-hero.cddp-dp-hero--banner-only,
	.cddp-dp-hero__img {
		border-radius: 16px;
	}

	.cddp-dp-hero__img {
		aspect-ratio: 4 / 3;
	}

	.cddp-dp-hero-cta,
	.cddp-dp-member-feature__cta {
		flex-direction: column;
		padding: 0;
	}

	.cddp-dp-btn {
		width: 100%;
	}
}
