/* Elite Seminaire V2 — layout-level styles for header, footer, front page,
   shop, generic page wrappers. Loaded after main.css and override.css. */

/* ---- shared container ---- */
.esc-container {
	max-width: var(--esc-container, 1200px);
	margin: 0 auto;
	padding: 0 24px;
	width: 100%;
}

/* ---- HEADER ---- */
.esc-header {
	position: sticky;
	top: 0;
	z-index: 80;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: saturate(140%) blur(8px);
	-webkit-backdrop-filter: saturate(140%) blur(8px);
	border-bottom: 1px solid #E2E8F0;
}
.esc-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	padding-top: 14px;
	padding-bottom: 14px;
}
.esc-header__brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #0F172A !important;
	font-weight: 700;
	letter-spacing: -0.01em;
	text-decoration: none !important;
}
.esc-header__logo { font-size: 22px; }
.esc-header__name { font-size: 17px; }

.esc-header__nav {
	display: flex;
	gap: 22px;
	margin-left: auto;
	align-items: center;
}
.esc-header__nav a {
	font-size: 15px;
	color: #1F2937 !important;
	font-weight: 500;
	padding: 6px 0;
	border-bottom: 2px solid transparent;
	transition: color .15s ease, border-color .15s ease;
}
.esc-header__nav a:hover,
.esc-header__nav a[aria-current] {
	color: #4F46E5 !important;
	border-bottom-color: #6366F1;
	text-decoration: none !important;
}

.esc-header__cta { display: flex; gap: 10px; }

.esc-header__burger {
	display: none;
	background: none;
	border: 0;
	width: 40px;
	height: 40px;
	cursor: pointer;
	padding: 0;
	flex-direction: column;
	gap: 4px;
	justify-content: center;
	align-items: center;
}
.esc-header__burger span {
	width: 22px;
	height: 2px;
	background: #0F172A;
	border-radius: 2px;
	transition: transform .2s ease;
}

@media (max-width: 920px) {
	.esc-header__nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: #FFFFFF; padding: 16px 24px; gap: 6px; box-shadow: 0 10px 24px rgb(15 23 42 / 8%); }
	.esc-header__nav.is-open { display: flex; }
	/* WCAG 2.5.5 — stacked mobile nav links need a ≥44px touch target. */
	.esc-header__nav a {
		display: flex;
		align-items: center;
		min-height: 44px;
		padding: 6px 4px;
		border-bottom: 0;
	}
	.esc-header__cta { margin-left: auto; }
	.esc-header__burger { display: inline-flex; }
}

/* ---- FOOTER ---- */
.esc-footer {
	background: #0F172A;
	color: #E2E8F0;
	margin-top: 80px;
	padding: 56px 0 24px;
}
.esc-footer * { color: #E2E8F0; }
.esc-footer h4 { color: #FFFFFF; margin-bottom: 12px; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }
.esc-footer p { color: #94A3B8; }
.esc-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
/* WCAG 2.5.5 — footer nav links get a ≥44px touch target via inline-flex + padding. */
.esc-footer a {
	color: #CBD5E1 !important;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 4px 0;
}
.esc-footer a:hover { color: #FFFFFF !important; text-decoration: underline; }
.esc-footer__inner {
	display: grid;
	grid-template-columns: 1.4fr repeat(3, 1fr);
	gap: 40px;
}
.esc-footer__brand { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; color: #FFFFFF !important; text-decoration: none; }
.esc-footer__bottom { padding-top: 24px; margin-top: 32px; border-top: 1px solid rgba(255,255,255,0.08); }
.esc-footer__bottom p { margin: 0; color: #94A3B8; font-size: 13px; }

@media (max-width: 720px) {
	.esc-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
	.esc-footer__inner { grid-template-columns: 1fr; }
}

/* ---- FRONT PAGE ---- */
.esc-front { background: #FFFFFF; color: #0F172A; }

.esc-hero {
	background:
		radial-gradient(ellipse 80% 60% at 80% 20%, rgba(99,102,241,0.18), transparent 60%),
		radial-gradient(ellipse 60% 60% at 10% 80%, rgba(14,165,233,0.18), transparent 60%),
		linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
	padding: 96px 0 120px;
}
.esc-hero__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 64px;
	align-items: center;
}
.esc-hero__copy h1 {
	font-size: clamp(36px, 5.5vw, 56px);
	line-height: 1.05;
	letter-spacing: -0.02em;
	margin: 12px 0 16px;
	color: #0F172A !important;
}
.esc-hero__copy h1 em {
	font-style: normal;
	background: linear-gradient(120deg, #6366F1, #0EA5E9);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.esc-hero__copy .esc-lead {
	max-width: 56ch;
	font-size: 18px;
	line-height: 1.6;
	color: #475569;
	margin: 0 0 24px;
}
.esc-hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.esc-hero__bullets { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.esc-hero__bullets li {
	display: flex; align-items: center; gap: 10px;
	color: #1F2937;
	font-size: 15px;
}
.esc-hero__bullets span {
	display: inline-flex; align-items: center; justify-content: center;
	width: 22px; height: 22px;
	border-radius: 999px;
	background: #DCFCE7; color: #16A34A;
	font-weight: 700; font-size: 12px;
}

.esc-hero__visual { position: relative; min-height: 460px; }
.esc-hero__blob {
	position: absolute; inset: 0;
	background: linear-gradient(135deg, #6366F1 0%, #0EA5E9 100%);
	border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
	filter: blur(0px);
	opacity: 0.92;
	box-shadow: 0 30px 80px -20px rgba(99,102,241,0.45);
}
.esc-hero__card {
	position: absolute;
	background: #FFFFFF;
	border-radius: 16px;
	padding: 18px;
	display: grid;
	gap: 8px;
	box-shadow: 0 12px 32px rgb(15 23 42 / 18%);
	border: 1px solid rgba(255,255,255,0.6);
}
.esc-hero__card strong { color: #0F172A; font-size: 15px; }
.esc-hero__card small { color: #64748B; }
.esc-hero__card--1 { top: 8%; left: -10%; width: 220px; }
.esc-hero__card--1 .esc-hero__card-bar { height: 60px; background: #EEF2FF; border-radius: 10px; }
.esc-hero__card--1 .esc-hero__card-line { height: 10px; background: #E2E8F0; border-radius: 999px; }
.esc-hero__card--1 .esc-hero__card-line--short { width: 60%; }
.esc-hero__card--2 { top: 50%; right: -4%; width: 200px; transform: translateY(-50%); }
.esc-hero__card--3 { bottom: 6%; left: 14%; width: 240px; }
.esc-hero__card--3 .esc-progress { width: 100%; }

@media (max-width: 920px) {
	.esc-hero { padding: 64px 0 80px; }
	.esc-hero__inner { grid-template-columns: 1fr; }
	.esc-hero__visual { min-height: 360px; max-width: 420px; margin: 0 auto; }
	/* Decorative floating cards use negative left/right offsets that spill past
	   the viewport on narrow screens (horizontal scroll). They are purely
	   ornamental, so hide them once the hero stacks. */
	.esc-hero__card--1,
	.esc-hero__card--2,
	.esc-hero__card--3 { display: none; }
}

/* ---- generic section bands ---- */
.esc-section { padding: 80px 0; background: #FFFFFF; }
.esc-section__header { text-align: center; margin-bottom: 40px; max-width: 720px; margin-left: auto; margin-right: auto; }
.esc-section__header h2 {
	font-size: clamp(28px, 3.5vw, 40px);
	letter-spacing: -0.02em;
	margin: 6px 0 12px;
	color: #0F172A;
}
.esc-section__footer { text-align: center; margin-top: 36px; }

.esc-section-band {
	padding: 80px 0;
	background:
		radial-gradient(ellipse 60% 40% at 50% 0%, rgba(99,102,241,0.1), transparent 60%),
		#F8FAFC;
}
.esc-section-band__header { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.esc-section-band__header h2 {
	font-size: clamp(28px, 3.5vw, 40px);
	letter-spacing: -0.02em;
	margin: 6px 0 0;
	color: #0F172A;
}

.esc-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 920px) { .esc-grid-3 { grid-template-columns: 1fr; } }

.esc-feature {
	background: #FFFFFF;
	border: 1px solid #E2E8F0;
	border-radius: 16px;
	padding: 28px;
	box-shadow: 0 1px 2px rgb(15 23 42 / 4%);
	transition: transform .2s ease, box-shadow .2s ease;
}
.esc-feature:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgb(15 23 42 / 10%); }
.esc-feature__icon {
	width: 48px; height: 48px;
	display: inline-flex; align-items: center; justify-content: center;
	background: #EEF2FF; color: #4F46E5;
	border-radius: 12px;
	font-size: 24px;
	margin-bottom: 14px;
}
.esc-feature h3 { margin: 0 0 8px; font-size: 18px; color: #0F172A; }
.esc-feature p { color: #475569; margin: 0; font-size: 15px; line-height: 1.6; }

/* card-formation tweaks for the home grid */
.esc-card,
.esc-card-formation,
.esc-card-product {
	background: #FFFFFF !important;
	border: 1px solid #E2E8F0 !important;
	color: #0F172A !important;
}
.esc-card h3, .esc-card-formation h3, .esc-card-product h3 {
	color: #0F172A !important;
}
.esc-card-formation .esc-card__link,
.esc-card-formation a.esc-card__link {
	display: block;
	color: #0F172A !important;
	text-decoration: none !important;
}
.esc-card-formation .esc-card__link:hover { text-decoration: none !important; }
.esc-card-formation .esc-card__link *,
.esc-card-formation .esc-card__link h3,
.esc-card-formation .esc-card__link p,
.esc-card-formation .esc-card__link span {
	text-decoration: none !important;
}
.esc-card-formation .esc-card__pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.esc-card-formation .esc-card__cta {
	display: inline-flex; align-items: center; gap: 6px;
	color: #4F46E5 !important; font-weight: 600; margin-top: 12px;
}
.esc-card .esc-card__media {
	background-color: #EEF2FF !important;
	background-size: cover;
	background-position: center;
}
.esc-card .esc-card__media--placeholder {
	display: flex; align-items: center; justify-content: center;
	font-size: 56px;
	background: linear-gradient(135deg, #EEF2FF 0%, #E0F2FE 100%) !important;
	color: #4F46E5;
}

/* CTA band */
.esc-cta {
	background: linear-gradient(135deg, #1E1B4B 0%, #4F46E5 100%);
	padding: 56px 0;
	color: #FFFFFF;
}
.esc-cta,
.esc-cta h1, .esc-cta h2, .esc-cta h3,
.esc-cta p, .esc-cta a, .esc-cta span,
.esc-cta * { color: #FFFFFF !important; }
.esc-cta__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	flex-wrap: wrap;
}
.esc-cta h2 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 6px; letter-spacing: -0.01em; }
.esc-cta p { margin: 0; opacity: 0.85; }
.esc-cta .esc-btn-primary {
	background: #FFFFFF !important;
	color: #4F46E5 !important;
}
.esc-cta .esc-btn-primary:hover { background: #F1F5F9 !important; }

.esc-btn-lg { padding: 16px 28px !important; font-size: 16px !important; }

/* ---- SHOP ---- */
.esc-shop__hero {
	background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
	padding: 80px 0 32px;
}
.esc-shop__hero h1 {
	font-size: clamp(32px, 4.5vw, 48px);
	margin: 6px 0 12px;
	letter-spacing: -0.02em;
	color: #0F172A;
}
.esc-card-product {
	display: flex; flex-direction: column;
	overflow: hidden;
	padding: 0;
}
.esc-card-product .esc-card__media {
	aspect-ratio: 16 / 9;
	background-color: #F8FAFC !important;
	background-size: contain !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
}
.esc-card-product .esc-card__body {
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1;
}
.esc-card-product .esc-card__body h3 {
	font-size: 17px;
	line-height: 1.35;
	margin: 0;
}
.esc-card-product .esc-card__body p {
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0;
	flex: 1;
}
.esc-card-product .esc-card__actions { display: flex; gap: 8px; margin-top: auto; }

/* ---- generic page wrapper for non-front pages ---- */
.esc-page {
	max-width: 1200px;
	margin: 0 auto;
	padding: 56px clamp(20px, 4vw, 56px) 80px;
	box-sizing: border-box;
	width: 100%;
}
@media (min-width: 1280px) { .esc-page { padding-left: 56px; padding-right: 56px; } }
.esc-page__header h1,
.esc-page h1 {
	font-size: clamp(28px, 3.5vw, 40px);
	margin: 0 0 16px;
	color: #0F172A;
	letter-spacing: -0.02em;
}
.esc-page h2 { color: #0F172A; margin: 36px 0 12px; font-size: 24px; letter-spacing: -0.01em; }
.esc-page h3 { color: #0F172A; margin: 12px 0 8px; }
.esc-page p, .esc-page li { color: #1F2937; line-height: 1.7; }
.esc-page ul { padding-left: 1.2em; }
.esc-page__hero {
	background: linear-gradient(135deg, #EEF2FF 0%, #E0F2FE 100%);
	border-radius: 16px;
	padding: 56px 40px;
	margin-bottom: 40px;
}
.esc-page__hero h1 { margin-top: 4px; }
.esc-page__hero .esc-lead { color: #475569; max-width: 60ch; margin: 12px 0 0; font-size: 17px; }
.esc-page__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 24px;
	margin-bottom: 56px;
}
.esc-page__cols {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 40px;
	align-items: start;
}
@media (max-width: 800px) {
	.esc-page__hero { padding: 36px 24px; }
	.esc-page__cols { grid-template-columns: 1fr; }
}

/* FAQ accordion */
.esc-faq { display: grid; gap: 12px; }
.esc-faq details {
	background: #FFFFFF;
	border: 1px solid #E2E8F0;
	border-radius: 12px;
	padding: 16px 20px;
	transition: box-shadow .15s ease;
}
.esc-faq details[open] { box-shadow: 0 4px 12px rgb(15 23 42 / 6%); border-color: #C7D2FE; }
.esc-faq summary {
	cursor: pointer;
	font-weight: 600;
	color: #0F172A;
	list-style: none;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 4px 0;
}
.esc-faq summary::-webkit-details-marker { display: none; }
.esc-faq summary::before {
	content: "+";
	display: inline-flex;
	width: 24px; height: 24px;
	justify-content: center; align-items: center;
	border-radius: 8px;
	background: #EEF2FF;
	color: #4F46E5;
	font-weight: 700;
	font-size: 16px;
	flex-shrink: 0;
	transition: transform .2s ease;
}
.esc-faq details[open] summary::before { transform: rotate(45deg); }
.esc-faq p { margin: 12px 0 0; color: #475569; }

/* SureCart dashboard sidebar polish */
.wp-block-surecart-dashboard-area,
.sc-dashboard-area,
.sc-dashboard {
	background: #F8FAFC !important;
}
.sc-dashboard__sidebar,
.wp-block-surecart-dashboard-area aside {
	background: #FFFFFF !important;
	border-right: 1px solid #E2E8F0 !important;
}
.sc-dashboard__sidebar a,
.wp-block-surecart-dashboard-area aside a {
	color: #0F172A !important;
	border-radius: 8px !important;
}
.sc-dashboard__sidebar a:hover,
.wp-block-surecart-dashboard-area aside a:hover {
	background: #EEF2FF !important;
	color: #4F46E5 !important;
}

/* Anchor base — inside dashboard cards keep no underline. */
.esc-dashboard .esc-card a,
.esc-dashboard a.esc-card,
.esc-dashboard a.esc-card-formation { text-decoration: none !important; }

/* dashboard fixes for legacy issue (was unreadable). */
body .esc-dashboard, body .esc-dashboard * {
	color: #0F172A;
}
body .esc-dashboard__hero h1 {
	color: #0F172A !important;
}
body .esc-dashboard__hero p,
body .esc-dashboard__hero .esc-lead {
	color: #475569 !important;
}
body .esc-stat__value { color: #0F172A !important; }
body .esc-stat__label { color: #64748B !important; }

/* Avoid Astra dark global colors leaking through. */
.uagb-block-fe33956c { background: linear-gradient(180deg, #FFFFFF, #F8FAFC) !important; color: #0F172A !important; }

/* Force any element with `var(--ast-global-color-5)` background to white */
[style*="--ast-global-color-5"],
[style*="ast-global-color-5"] {
	background-color: #F8FAFC !important;
	color: #0F172A !important;
}

/* Front-page pills should use the V2 palette regardless of context */
.esc-front .esc-pill,
.esc-shop .esc-pill,
.esc-hero .esc-pill {
	background: #EEF2FF !important;
	color: #4F46E5 !important;
}
.esc-front .esc-pill-info,
.esc-shop .esc-pill-info,
.esc-hero .esc-pill-info {
	background: #E0F2FE !important;
	color: #0369A1 !important; /* WCAG: #0EA5E9 on light cyan failed (2.42:1) */
}
.esc-front .esc-pill-success,
.esc-shop .esc-pill-success,
.esc-hero .esc-pill-success {
	background: #DCFCE7 !important;
	color: #16A34A !important;
}

/* ---- single product (sc_product) ---- */
.esc-product { background: #FFFFFF; color: #0F172A; }

.esc-product__hero {
	background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
	padding: 56px 0 40px;
	border-bottom: 1px solid #E2E8F0;
}
.esc-product__hero-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
	align-items: center;
}
@media (max-width: 920px) {
	.esc-product__hero-inner { grid-template-columns: 1fr; }
}
.esc-product__media {
	background: #F1F5F9;
	border-radius: 20px;
	padding: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 320px;
	border: 1px solid #E2E8F0;
}
.esc-product__media img {
	max-width: 100%;
	max-height: 380px;
	height: auto;
	width: auto;
	object-fit: contain;
	display: block;
}
.esc-product__media-placeholder { font-size: 80px; }

.esc-breadcrumb {
	display: flex;
	gap: 8px;
	font-size: 13px;
	color: #64748B;
	margin-bottom: 14px;
	flex-wrap: wrap;
}
.esc-breadcrumb a { color: #4F46E5 !important; text-decoration: none; }
.esc-breadcrumb a:hover { text-decoration: underline; }

.esc-product__copy h1 {
	margin: 0 0 12px;
	font-size: clamp(28px, 4vw, 40px);
	letter-spacing: -0.02em;
	color: #0F172A;
}
.esc-product__price {
	font-size: 32px;
	font-weight: 700;
	color: #0F172A;
	margin: 0 0 24px;
	letter-spacing: -0.01em;
}
.esc-product__price small {
	font-size: 14px;
	font-weight: 500;
	color: #64748B;
	margin-left: 6px;
}
.esc-product__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.esc-product__bullets {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.esc-product__bullets li { color: #1F2937; font-size: 14.5px; }

.esc-product__body {
	padding: 56px 0 80px;
}
.esc-product__body-inner {
	display: grid;
	grid-template-columns: 1.6fr 1fr;
	gap: 40px;
	align-items: start;
}
@media (max-width: 920px) {
	.esc-product__body-inner { grid-template-columns: 1fr; }
}
.esc-product__description h2 {
	font-size: 24px;
	margin: 0 0 16px;
	color: #0F172A;
	letter-spacing: -0.01em;
}
.esc-product__description p,
.esc-product__description li {
	color: #1F2937;
	line-height: 1.7;
	font-size: 16px;
}
.esc-product__description ul, .esc-product__description ol { padding-left: 1.4em; }
.esc-product__aside .esc-card-soft h3 {
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: 600;
	color: #0F172A;
}

/* ---- Astra layout overrides (don't let parent center us nor inject post meta) ---- */
.single-sc_product .ast-single-post-author,
.single-sc_product .post-meta,
.single-sc_product .entry-meta,
body.single-sc_product .ast-author-details,
body.single-sc_product .ast-blog-single-element-posted-by,
body.single-sc_product .ast-blog-single-element-posted-on,
body.single-sc_product .entry-header > .ast-blog-single-element { display: none !important; }

/* Force Astra container to wider for V2 page templates */
body.page-template-page-boutique .ast-container,
body.single-esc_formation .ast-container,
body.single-sc_product .ast-container,
body.page .ast-container {
	max-width: 1400px !important;
	width: 100% !important;
}
body.page-template-page-boutique #content,
body.single-esc_formation #content,
body.single-sc_product #content {
	padding-top: 0 !important;
}

/* Force main width inside Astra container */
body.single-sc_product main#primary,
body.single-esc_formation main#primary,
body.page-template-page-boutique main#primary { width: 100%; min-width: 0; }

/* Higher specificity for hero grid */
.esc-product .esc-product__hero-inner.esc-container {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 56px;
}
@media (max-width: 920px) {
	.esc-product .esc-product__hero-inner.esc-container { grid-template-columns: 1fr; }
}
