/*
 * Solidarité-Action theme styles.
 * Source of truth for the look: design/v2/mix/ (approved by the ASBL on Nov 25, 2026).
 * theme.json holds the presets; this file holds the per-pillar tokens and what theme.json can't express.
 *
 * Pillars: body.sa-pillar-entreprendre | -boutique | -home (set in inc/pillars.php).
 * The same tokens are set by .sa-scope-* classes, so template parts and patterns also look right in the editor.
 */

/* ---------- 1. Pillar tokens ---------- */
:root,
body.sa-pillar-entreprendre,
.sa-scope-entreprendre {
	--sa-accent: #0F4C45;
	--sa-accent-dark: #0A3833;
	--sa-accent-soft: #DDEBE6;
	--sa-surface: #F2EEE7;
	--sa-surface-alt: #E8E2D7;
	--sa-ink: #16181D;
	--sa-muted: #4B4F58;
	--sa-line: #D8D1C4;
	--sa-font-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
	--sa-font-body: Manrope, "Helvetica Neue", Arial, sans-serif;
	--sa-heading-weight: 400;
	--sa-heading-leading: 1;
	--sa-radius: 18px;
	--sa-radius-media: 22px;
	--sa-quote-cite: #CFE3DC;
}

body.sa-pillar-boutique,
.sa-scope-boutique {
	--sa-accent: #B81E3A;
	--sa-accent-dark: #8E1730;
	--sa-accent-soft: #FCEBEE;
	--sa-surface: #FFFCFB;
	--sa-surface-alt: #FCEBEE;
	--sa-ink: #141B2D;
	--sa-muted: #6E5A60;
	--sa-line: #F1DDE0;
	--sa-font-display: "Playfair Display", Georgia, "Times New Roman", serif;
	--sa-font-body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
	--sa-heading-weight: 500;
	--sa-heading-leading: 1.08;
	--sa-radius: 4px;
	--sa-radius-media: 2px;
}

body.sa-pillar-home,
.sa-scope-home {
	--sa-accent: #0F4C45;
	--sa-accent-dark: #0A3833;
	--sa-surface: #FFFFFF;
	--sa-surface-alt: #FFFFFF;
	--sa-ink: #141B2D;
	--sa-muted: #55607A;
	--sa-line: #DCE4F0;
	--sa-font-display: "Playfair Display", Georgia, "Times New Roman", serif;
	--sa-font-body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
	--sa-heading-weight: 600;
	--sa-heading-leading: 1.08;
}

/* Re-declare the presets wherever the tokens change: a custom property is resolved where it is declared. */
body,
.sa-scope-entreprendre,
.sa-scope-boutique,
.sa-scope-home {
	--wp--preset--color--accent: var(--sa-accent);
	--wp--preset--color--accent-dark: var(--sa-accent-dark);
	--wp--preset--color--accent-soft: var(--sa-accent-soft);
	--wp--preset--color--surface: var(--sa-surface);
	--wp--preset--color--surface-alt: var(--sa-surface-alt);
	--wp--preset--color--ink: var(--sa-ink);
	--wp--preset--color--muted: var(--sa-muted);
	--wp--preset--color--line: var(--sa-line);
	--wp--preset--font-family--display: var(--sa-font-display);
	--wp--preset--font-family--body: var(--sa-font-body);
	font-family: var(--sa-font-body);
	color: var(--sa-ink);
}

/* ---------- 2. Base ---------- */
body {
	background: var(--sa-surface);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--sa-accent); outline-offset: 3px; }
.sa-pillar-entreprendre :is(h1, h2) em,
.sa-scope-entreprendre :is(h1, h2) em { color: var(--sa-accent); }
.sa-eyebrow {
	font: 600 0.72rem/1.2 var(--sa-font-body);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--sa-accent);
}
.sa-note { font-size: 0.78rem; color: var(--sa-muted); }
.sa-stretch { text-decoration: none; color: inherit; }
.sa-stretch::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.sa-stretch:focus-visible { outline: none; }
.sa-stretch:focus-visible::after { outline: 2px solid var(--sa-accent); outline-offset: 2px; border-radius: inherit; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--sa-ink); color: var(--sa-surface); border-color: var(--sa-ink); }
.wp-block-button__link { transition: background-color .2s, color .2s, transform .2s; }

/* Sections: full-width bands stack without gaps. */
.sa-landing > .wp-block-post-content > *,
.sa-landing > .wp-block-post-content > * + * { margin-block: 0; }
.sa-sec { padding-block: var(--wp--preset--spacing--70); }
.sa-sec--tight-top { padding-top: 0; }
.sa-head {
	display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap;
	margin-bottom: clamp(28px, 4vw, 44px);
}
.sa-head > * { margin: 0; }
.sa-head a, .sa-head-link a { font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; color: var(--sa-ink); }
.sa-head-h { margin-bottom: clamp(28px, 4vw, 44px); }
.sa-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 0.84rem; color: var(--sa-muted); margin: 0; }

/* ---------- 3. Headers ---------- */
header.wp-block-template-part:has(> .sa-hd) {
	position: sticky;
	top: calc(var(--wp-admin--admin-bar--height, 0px) + env(safe-area-inset-top, 0px));
	z-index: 30;
}
.sa-hd > * + * { margin-block-start: 0; }
.sa-hd__row { gap: 20px; padding-block: 14px; }
.sa-hd--entreprendre .sa-hd__bar {
	background: rgba(242, 238, 231, 0.95);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--sa-line);
}
.sa-mark {
	display: inline-flex; align-items: center; gap: 12px; flex: none;
	font: 700 1rem/1 var(--sa-font-body); letter-spacing: -0.01em; color: var(--sa-ink); text-decoration: none;
}
.sa-nav { margin-left: auto; font-size: 0.94rem; font-weight: 500; }
.sa-nav .wp-block-navigation__container { gap: 24px; }
.sa-nav .wp-block-navigation-item__content { text-decoration: none; position: relative; padding-block: 4px; white-space: nowrap; }
.sa-nav .wp-block-navigation-item__content:hover { color: var(--sa-ink); }
.sa-nav .current-menu-item > .wp-block-navigation-item__content::after,
.sa-nav .wp-block-navigation-item__content:hover::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--sa-accent);
}
.sa-hd--entreprendre .sa-hd__row { justify-content: flex-start; }
.sa-hd--entreprendre .sa-nav { margin-inline: auto; }
.sa-hd__cta { flex: none; }
.sa-hd__search { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: none; color: var(--sa-ink); border-radius: 50%; }
.sa-hd__search:hover, .sa-hd__search:focus-visible { background: var(--sa-accent-soft); color: var(--sa-accent-dark); }
.sa-hd__cta .wp-block-button__link { padding: 10px 18px; }

.sa-hd--boutique .sa-hd__bar { background: var(--sa-surface); border-bottom: 1px solid var(--sa-line); }
.sa-hd__row--shop { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding-block: 16px; }
.sa-nav--shop { margin-left: 0; }
.sa-shoplogo { display: grid; justify-items: center; gap: 4px; line-height: 1; text-decoration: none; color: var(--sa-ink); }
.sa-shoplogo__w { font: 500 1.9rem/1 var(--sa-font-display); letter-spacing: -0.01em; }
.sa-shoplogo__w i { font-weight: 400; }
.sa-shoplogo__s { font: 600 0.58rem/1 var(--sa-font-body); letter-spacing: 0.24em; text-transform: uppercase; color: #D62B47; }
.sa-shoplogo--left { justify-items: start; }
.sa-hd__tools { gap: 22px; font-size: 0.92rem; }
.sa-hd__tools a, .sa-hd__tool a { color: var(--sa-ink); text-decoration: none; }
.sa-hd__tools a:hover { color: var(--sa-accent); }
.sa-hd__cart .wc-block-mini-cart__button {
	background: var(--sa-accent); color: #fff; border-radius: 999px; padding: 8px 15px; font-weight: 600; font-size: 0.88rem;
}
.sa-hd__cart .wc-block-mini-cart__button:hover { background: var(--sa-accent-dark); }
.sa-hd__cart .wc-block-mini-cart__icon { width: 20px; height: 20px; }
.sa-hd__cart .wc-block-mini-cart__badge { background: #fff; color: var(--sa-accent); }

/* ---------- 4. Footers ---------- */
.sa-ft { padding-block: clamp(48px, 7vw, 72px) 28px; }
.sa-ft > * + * { margin-block-start: clamp(32px, 4vw, 48px); }
.sa-ft__big { font: 400 clamp(2.6rem, 6vw, 5.4rem)/0.95 var(--sa-font-display); margin: 0; }
.sa-ft__big em { color: var(--sa-accent); }
.sa-ft__h { font: 600 0.72rem/1.2 var(--sa-font-body) !important; letter-spacing: 0.16em !important; text-transform: uppercase; color: var(--sa-accent); margin: 0 0 12px; }
.sa-ft__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.92rem; color: var(--sa-muted); }
.sa-ft__list a, .sa-ft__legal a { color: inherit; text-decoration: none; }
.sa-ft__list a:hover, .sa-ft__legal a:hover { color: var(--sa-accent); text-decoration: underline; }
.sa-ft__legal {
	border-top: 1px solid var(--sa-line); padding-top: 18px; font-size: 0.78rem; color: var(--sa-muted);
	display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.sa-ft--boutique { border-top: 1px solid var(--sa-line); }
.sa-ft__mission { font: 400 1.25rem/1.35 var(--sa-font-display); max-width: 26ch; margin-top: 14px; }

/* ---------- 5. Home: two doors ---------- */
.sa-home { position: relative; background: #fff; color: #fff; }
.sa-home > * + * { margin-block-start: 0; }
.sa-home__bar {
	position: absolute; inset: 0 0 auto; z-index: 3;
	padding: 34px max(40px, env(safe-area-inset-right, 0px)) 0 max(40px, env(safe-area-inset-left, 0px));
}
.sa-homelogo { display: inline-flex; flex-direction: column; gap: 6px; text-decoration: none; color: #fff; line-height: 1; }
.sa-homelogo__w { font: 600 1.55rem/1 var(--sa-font-display); letter-spacing: -0.015em; position: relative; padding-bottom: 5px; }
.sa-homelogo__w::after { content: ""; position: absolute; left: 0; bottom: 0; width: 62%; height: 3px; background: #FFC72C; }
.sa-homelogo__s { font: 600 0.62rem/1 var(--sa-font-body); letter-spacing: 0.2em; opacity: 0.9; }
.sa-home__lang { margin: 0; font-size: 0.85rem; }
.sa-doors { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px; min-height: min(92vh, 860px); }
.sa-doors > * + * { margin-block-start: 0; }
.sa-door { position: relative; overflow: hidden; border-radius: 20px; display: flex; align-items: flex-end; min-width: 0; }
.sa-door::before { content: ""; position: absolute; inset: 0; pointer-events: none; }
.sa-door--a::before { background: linear-gradient(180deg, rgba(15,76,69,0) 0%, rgba(15,76,69,.28) 42%, rgba(10,56,51,.94) 100%); }
.sa-door--b::before { background: linear-gradient(180deg, rgba(214,43,71,0) 0%, rgba(214,43,71,.25) 40%, rgba(184,30,58,.92) 100%); }
.sa-door__in { position: relative; z-index: 1; display: grid; gap: 18px; max-width: 600px; padding: 0 clamp(24px, 4.5vw, 64px) clamp(36px, 6vw, 72px); }
.sa-door__in > * { margin: 0; }
.sa-door__k { color: #fff; }
.sa-door__h { font-size: clamp(2.6rem, 5.2vw, 4.6rem) !important; line-height: 1 !important; color: #fff; }
.sa-door__h em { font-weight: 400; }
.sa-door p { font-size: 1.06rem; max-width: 42ch; opacity: 0.94; }
.sa-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sa-chips li { border: 1px solid rgba(255,255,255,.45); border-radius: 999px; padding: 5px 12px; font-size: 0.82rem; }
.sa-door__go .wp-block-button__link { background: #fff; border-color: #fff; color: #0F4C45; }
.sa-door--b .sa-door__go .wp-block-button__link { color: #B81E3A; }
.sa-door__go .wp-block-button__link::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.sa-door:hover .sa-door__go .wp-block-button__link { transform: translateX(4px); }
.sa-home-foot { background: #fff; color: var(--sa-muted); }
.sa-home-foot__row { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-block: 20px; font-size: 0.88rem; margin: 0; }
.sa-home-foot b { color: var(--sa-ink); }
.sa-home-foot a { color: inherit; }

/* ---------- 6. Entreprendre home ---------- */
.sa-ah { padding-block: clamp(40px, 7vw, 64px) 40px; }
.sa-ah .wp-block-columns { gap: 56px; }
.sa-ah__h { font-size: clamp(3.4rem, 8.2vw, 8rem) !important; line-height: 0.92 !important; letter-spacing: -0.03em !important; margin: 0; }
.sa-ah__side { display: grid; gap: 22px; padding-bottom: 12px; }
.sa-ah__side > * { margin: 0; }
.sa-ah__side p { max-width: 38ch; }

.sa-reel {
	position: relative; overflow: hidden; border-radius: var(--sa-radius-media); aspect-ratio: 21 / 9; max-width: 100%;
	display: flex; align-items: flex-end; color: #fff;
}
.sa-reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,12,20,.65), transparent 55%); pointer-events: none; }
.sa-reel__cap { position: relative; z-index: 2; padding: 26px 28px; max-width: 520px; display: grid; gap: 6px; }
.sa-reel__cap > * { margin: 0; }
.sa-reel__cap .sa-eyebrow { color: #E3EEEA; }
.sa-reel__h { font-size: clamp(1.6rem, 2.6vw, 2.4rem) !important; color: #fff; }

/* Play badge on video tiles */
.sa-play { position: relative; }
.sa-play::before {
	content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; z-index: 2;
	border-radius: 50%; pointer-events: none;
	background: rgba(255,255,255,.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 20'%3E%3Cpath d='M0 0l16 10L0 20z' fill='%2316181D'/%3E%3C/svg%3E") 55% 50% / 16px 20px no-repeat;
}
.sa-play--s::before { left: 14px; top: auto; bottom: 14px; width: 44px; height: 44px; margin: 0; background-size: 12px 15px; }

.sa-figs { border-top: 1px solid var(--sa-line); gap: 0 !important; }
.sa-figs .wp-block-column { padding: 26px 22px 0 0; }
.sa-figs .wp-block-column > * { margin: 0; }
.sa-figs .wp-block-column p:not(.sa-figs__n) { color: var(--sa-muted); font-size: 0.92rem; max-width: 22ch; margin-top: 6px; }
.sa-figs__n { font: 400 clamp(2.6rem, 4.6vw, 4rem)/1 var(--sa-font-display); }
.sa-figs-sec { padding-bottom: clamp(40px, 6vw, 80px); }

.sa-who { gap: 64px; }
.sa-who-row {
	position: relative; display: grid; grid-template-columns: 1fr 1.4fr 44px; gap: 24px; align-items: center;
	padding: 24px 0; border-top: 1px solid var(--sa-line); transition: padding .3s;
}
.sa-who-row:last-child { border-bottom: 1px solid var(--sa-line); }
.sa-who-row > * { margin: 0 !important; }
.sa-who-row h3 { font-size: 1.9rem !important; }
.sa-who-row p { color: var(--sa-muted); font-size: 0.95rem; }
.sa-who-row::after {
	content: "↗"; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--sa-ink);
	display: grid; place-items: center; transition: background .2s, color .2s, border-color .2s;
}
.sa-who-row:hover { padding-left: 12px; }
.sa-who-row:hover::after { background: var(--sa-accent); border-color: var(--sa-accent); color: #fff; }

.sa-cards { gap: 24px !important; }
.sa-story { position: relative; display: grid; gap: 14px; align-content: start; }
.sa-story > * { margin: 0 !important; }
.sa-story__v { border-radius: 16px; overflow: hidden; }
.sa-story__v img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; transition: transform 1s; }
.sa-story:hover .sa-story__v img { transform: scale(1.04); }
.sa-story h3 { font-size: 1.65rem !important; line-height: 1.1 !important; }

.sa-course, .sa-ev {
	position: relative; display: flex; flex-direction: column; overflow: hidden;
	background: var(--sa-surface); border: 1px solid var(--sa-line); border-radius: 20px;
}
.sa-course > *, .sa-ev > * { margin: 0 !important; }
.sa-course__v img, .sa-ev__v img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }
.sa-course__b, .sa-ev__b { padding: 22px 24px 24px; display: grid; gap: 10px; flex: 1; align-content: start; }
.sa-course__b > *, .sa-ev__b > * { margin: 0 !important; }
.sa-course h3, .sa-ev h3 { font-size: 1.65rem !important; line-height: 1.05 !important; }
.sa-course__m { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--sa-line); padding-top: 14px; font-size: 0.86rem; color: var(--sa-muted); }
.sa-course__m strong { color: var(--sa-accent); }
.sa-ev { background: #fff; border: 0; border-radius: var(--sa-radius); }
.sa-pill { display: inline-block; font-size: 0.78rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--sa-accent-soft); color: var(--sa-accent-dark); }
.sa-pill--warn { background: #F7E7C9; color: #7A4E00; }

.sa-quote { padding-block: clamp(64px, 9vw, 100px); }
.sa-quote__row { display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: center; }
.sa-quote__row > * { margin: 0 !important; }
.sa-arch img { width: 220px; height: 280px; object-fit: cover; border-radius: 120px 120px 16px 16px; }
.sa-quote__text { font: 400 clamp(2rem, 3.6vw, 3.3rem)/1.12 var(--sa-font-display); margin: 0; }
.sa-quote__cite { margin: 24px 0 0; font-size: 0.95rem; color: var(--sa-quote-cite); }

.sa-give { border-radius: 26px; padding: clamp(30px, 5vw, 56px) !important; gap: 48px !important; }
.sa-give h2 { font-size: clamp(2.2rem, 3.6vw, 3.2rem) !important; }
.sa-amounts { display: flex; gap: 10px; flex-wrap: wrap; }
.sa-amounts span { border: 1.5px solid var(--sa-ink); border-radius: 999px; padding: 11px 20px; font-weight: 600; }
.sa-amounts .is-on { background: var(--sa-ink); color: var(--sa-surface); }

/* ---------- 7. Boutique home ---------- */
.sa-bh { position: relative; min-height: 640px; display: flex; align-items: flex-end; overflow: hidden; }
.sa-bh::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.8) 42%, rgba(255,255,255,0) 72%); }
.sa-bh > .alignwide { position: relative; z-index: 1; width: 100%; padding-block: 90px; }
.sa-bh__in { max-width: 560px; display: grid; gap: 22px; }
.sa-bh__in > * { margin: 0; }
.sa-bh__h { font-size: clamp(3rem, 6vw, 5.2rem) !important; line-height: 0.98 !important; }
.sa-bh__h em { font-weight: 400; }

.sa-usp { border-bottom: 1px solid var(--sa-line); }
.sa-usp .wp-block-columns { padding-block: 22px; gap: 20px; }
.sa-usp p { display: flex; gap: 10px; align-items: center; font-size: 0.88rem; margin: 0; }
.sa-usp__i { width: 32px; height: 32px; border-radius: 50%; background: var(--sa-accent-soft); color: var(--sa-accent); flex: none; display: grid; place-items: center; font-weight: 700; font-size: 0.72rem; }

.sa-cats { gap: 20px !important; }
.sa-cat { position: relative; aspect-ratio: 4 / 5; max-width: 100%; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; color: #fff; }
.sa-cat::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(184,30,58,.78)); }
.sa-cat > * { position: relative; margin: 0 !important; }
.sa-cat h3 { font-size: 2rem !important; color: #fff; }
.sa-cat p { font-size: 0.9rem; opacity: 0.92; }

.sa-bstory { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.sa-bstory > * { margin: 0 !important; }
.sa-bstory__img, .sa-bstory__img img { height: 100%; width: 100%; object-fit: cover; min-height: 380px; }
.sa-bstory__txt { padding: clamp(48px, 7vw, 72px) clamp(24px, 5vw, 80px); display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.sa-bstory__txt > * { margin: 0; }
.sa-bstory h2 { font-size: clamp(2rem, 3.6vw, 3rem) !important; }
.sa-bstory p { max-width: 46ch; }
.sa-nums { display: flex; gap: 18px 32px; flex-wrap: wrap; font-size: 0.82rem; color: var(--sa-muted); }
.sa-nums span { display: grid; }
.sa-nums b { font: 500 2.4rem/1.1 var(--sa-font-display); color: var(--sa-accent-dark); }

.sa-reviews { gap: 22px !important; }
.sa-review { background: #fff; border: 1px solid var(--sa-line); padding: 26px; display: grid; gap: 12px; align-content: start; }
.sa-review > * { margin: 0 !important; }
.sa-stars { color: #A86F00; letter-spacing: 2px; }
.sa-review__q { font: 400 1.12rem/1.45 var(--sa-font-display); }
.sa-news { padding-block: 64px; }
.sa-news h2 { font-size: 2.2rem !important; }

/* WooCommerce product grid (shortcode and archives) */
.sa-pillar-boutique ul.products, .sa-scope-boutique ul.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; }
.sa-pillar-boutique ul.products::before, .sa-pillar-boutique ul.products::after { display: none; }
.sa-pillar-boutique ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; display: grid; gap: 8px; align-content: start; }
.sa-pillar-boutique ul.products li.product img { aspect-ratio: 1 / 1; object-fit: cover; background: var(--sa-accent-soft); margin: 0 0 6px !important; }
.sa-pillar-boutique ul.products .woocommerce-loop-product__title { font: 500 1.22rem/1.2 var(--sa-font-display) !important; padding: 0 !important; }
.sa-pillar-boutique ul.products .price { color: var(--sa-ink) !important; font-weight: 600; }
.sa-pillar-boutique ul.products .button, .sa-pillar-boutique .woocommerce .button {
	background: var(--sa-accent); color: #fff; border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 0.88rem; justify-self: start;
}
.sa-pillar-boutique ul.products a { text-decoration: none; color: inherit; }
.sa-pillar-boutique .onsale { background: #fff; color: var(--sa-accent); border-radius: 3px; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; min-height: 0; line-height: 1; padding: 6px 8px; }

/* ---------- 8. Inner pages ---------- */
.sa-page-hero { padding-block: clamp(48px, 8vw, 88px) clamp(24px, 4vw, 40px); }
.sa-page-hero > * { margin-block: 0 !important; }
.sa-page-hero__h { font-size: clamp(2.8rem, 6vw, 5.6rem) !important; line-height: 0.95 !important; }
.sa-page-body { padding-bottom: var(--wp--preset--spacing--70); }

/* ---------- 9. Phone and tablet ---------- */
@media (max-width: 1000px) {
	.sa-pillar-boutique ul.products, .sa-scope-boutique ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sa-usp .wp-block-columns { flex-wrap: wrap !important; }
	.sa-usp .wp-block-column { flex-basis: calc(50% - 10px) !important; }
}
/* Entreprendre has eight menu items. Below 1200px: row 1 = logo + icons, row 2 = menu (scrolls if needed) + donate. */
@media (max-width: 1200px) {
	.sa-hd--entreprendre .sa-hd__row { flex-wrap: wrap !important; gap: 10px 12px; padding-block: 12px; }
	.sa-hd--entreprendre .sa-mark { order: 1; }
	.sa-hd--entreprendre .sa-hd__row > .wp-block-woocommerce-customer-account { order: 2; margin-left: auto; }
	.sa-hd--entreprendre .sa-hd__search { order: 2; }
	.sa-hd--entreprendre .sa-cartlink { order: 2; margin-left: auto; }
	.sa-hd--entreprendre .sa-cartlink:not([hidden]) ~ .wp-block-woocommerce-customer-account { margin-left: 0; }
	.sa-hd--entreprendre .sa-nav { order: 3; flex: 1 1 calc(100% - 160px); min-width: 0; margin-left: 0; overflow-x: auto; scrollbar-width: none; }
	.sa-hd--entreprendre .sa-nav::-webkit-scrollbar { display: none; }
	.sa-hd--entreprendre .sa-hd__cta { order: 4; margin-left: 0; }
	.sa-hd--entreprendre .sa-hd__cta .wp-block-button__link { padding: 8px 14px; font-size: 0.86rem; }
}
@media (max-width: 780px) {
	.sa-hd__row { flex-wrap: wrap !important; gap: 10px 12px; padding-block: 12px; }
	.sa-nav { order: 3; flex-basis: 100%; margin-left: 0; overflow-x: auto; scrollbar-width: none; font-size: 0.9rem; }
	.sa-nav::-webkit-scrollbar { display: none; }
	.sa-nav .wp-block-navigation__container { flex-wrap: nowrap !important; gap: 16px; }
	.sa-hd__cta { margin-left: auto; }
	.sa-hd__row--shop { grid-template-columns: 1fr auto; }
	.sa-hd__row--shop .sa-nav--shop { grid-column: 1 / -1; order: 3; overflow: visible; }
	.sa-nav--shop .wp-block-navigation__container { flex-wrap: wrap !important; gap: 8px 18px; }
	.sa-shoplogo { justify-items: start; }
	.sa-hd__tool--account, .sa-hd__tool--search { display: none; }
	.sa-home__bar { padding: 28px max(28px, env(safe-area-inset-right, 0px)) 0 max(28px, env(safe-area-inset-left, 0px)); }
	.sa-doors { grid-template-columns: 1fr; padding: 8px; gap: 8px; min-height: 0; }
	.sa-door { min-height: 78vh; }

	.sa-reel { aspect-ratio: 4 / 5; }
	.sa-figs { flex-wrap: wrap !important; }
	.sa-figs .wp-block-column { flex-basis: 50% !important; }
	.sa-who { gap: 24px; }
	.sa-who-row { grid-template-columns: 1fr 44px; }
	.sa-who-row p { grid-column: 1 / -1; grid-row: 2; }
	.sa-who-row::after { grid-row: 1; grid-column: 2; }
	.sa-quote__row { grid-template-columns: 1fr; gap: 32px; }
	.sa-arch img { width: 160px; height: 200px; }
	.sa-bh::before { background: linear-gradient(180deg, rgba(255,255,255,.25) 0%, rgba(255,255,255,.85) 45%, rgba(255,255,255,.95) 100%); }
	.sa-bh > .alignwide { padding-block: 64px 48px; }
	.sa-usp .wp-block-column { flex-basis: 100% !important; }
	.sa-bstory { grid-template-columns: 1fr; min-height: 0; }
	.sa-ft__legal { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- 10. WooCommerce single product ---------- */
.sa-pillar-boutique .product_title,
.sa-pillar-boutique .wp-block-post-title { font-size: clamp(2.2rem, 3.6vw, 3.4rem) !important; line-height: 1.05 !important; }
.sa-pillar-boutique .woocommerce-tabs h2,
.sa-pillar-boutique .wp-block-woocommerce-product-details h2 { font-size: 1.6rem !important; }
.sa-pillar-boutique .related > h2,
.sa-pillar-boutique .wp-block-woocommerce-related-products h2 { font-size: clamp(1.8rem, 3vw, 2.4rem) !important; }
.sa-pillar-boutique .woocommerce-product-gallery img { background: var(--sa-accent-soft); }
.single-product main h2.wp-block-heading { font-size: clamp(1.8rem, 3vw, 2.4rem) !important; }

/* Cart, checkout, order received, account: working pages, so working-size headings (both pillars). */
:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) main { padding-top: clamp(2rem, 4vw, 3.5rem); }
:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) main h1 { font-size: clamp(2rem, 3.2vw, 2.8rem) !important; line-height: 1.1 !important; margin-bottom: 1.5rem; }
:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) main h2 { font-size: clamp(1.3rem, 1.8vw, 1.6rem) !important; line-height: 1.2 !important; }
:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) main h3 { font-size: 1.15rem !important; }

/* ---------- 11. Blog, archives, search, help centre (build step 5) ---------- */
.sa-posts { padding-bottom: var(--wp--preset--spacing--70); }
.sa-cards > li { margin: 0 !important; }
.sa-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.sa-card { position: relative; height: 100%; border: 1px solid var(--sa-line); border-radius: 14px; padding: 24px; display: grid; gap: 10px; align-content: start; background: var(--sa-surface); transition: border-color .2s, transform .2s; }
.sa-card > * { margin: 0 !important; }
.sa-card:hover { border-color: var(--sa-ink); transform: translateY(-2px); }
.sa-card__h { font-size: 1.45rem !important; line-height: 1.15 !important; }
.sa-card__h a { color: var(--sa-ink); text-decoration: none; }
.sa-card__h a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.sa-card__h a:focus-visible { outline: none; }
.sa-card:focus-within { outline: 2px solid var(--sa-accent); outline-offset: 2px; }
.sa-card .sa-eyebrow a { position: relative; z-index: 2; color: inherit; text-decoration: none; }
.sa-card .wp-block-post-excerpt__excerpt { margin: 0; color: var(--sa-muted); }
.sa-pager { margin-top: 32px; gap: 14px; font-weight: 600; }
.sa-pager a { color: var(--sa-ink); }
.sa-searchform { margin-bottom: 32px; }
.sa-searchform .wp-block-search__inside-wrapper { max-width: 640px; border: 1.5px solid var(--sa-ink); border-radius: 999px; padding: 4px; }
.sa-searchform .wp-block-search__input { border: 0; padding: 10px 18px; background: transparent; font-size: 1rem; }
.sa-searchform .wp-block-search__button { border-radius: 999px; margin: 0; padding: 10px 20px; background: var(--sa-ink); color: var(--sa-surface); border: 0; }
.sa-page-hero__h--search { font-size: clamp(2rem, 4.4vw, 3.6rem) !important; }
mark { background: var(--sa-accent-soft, #fff3b0); color: inherit; padding: 0 2px; }
.sa-draft { border-left: 4px solid #E0A100; background: #FFF6E6; padding: 12px 16px; font-size: 0.92rem; }
.sa-page-body .wp-block-heading { margin-top: 2em; }
.sa-consent label { display: flex; gap: 8px; align-items: flex-start; }
.sa-consent input { margin-top: 4px; flex: none; }
.sa-consent a { color: var(--sa-accent-dark, var(--sa-accent)); }
.sa-empty .button { margin-left: 8px; }
@media (max-width: 1000px) { .sa-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .sa-cards { grid-template-columns: 1fr; } }
.sa-faq__h { font-size: clamp(1.6rem, 2.6vw, 2.1rem) !important; margin-top: 8px !important; }

/* Cookie banner (Complianz): the pillar's colours and fonts instead of the plugin's blue. */
.cmplz-cookiebanner { font-family: var(--sa-font-body) !important; color: var(--sa-ink) !important; border-radius: 16px !important; }
.cmplz-cookiebanner .cmplz-title { font-family: var(--sa-font-display); font-size: 1.25rem !important; }
.cmplz-cookiebanner .cmplz-btn { border-radius: 999px !important; font-weight: 600 !important; }
.cmplz-cookiebanner .cmplz-btn.cmplz-accept { background: var(--sa-accent) !important; border-color: var(--sa-accent) !important; color: #fff !important; }
.cmplz-cookiebanner .cmplz-btn.cmplz-deny,
.cmplz-cookiebanner .cmplz-btn.cmplz-view-preferences,
.cmplz-cookiebanner .cmplz-btn.cmplz-save-preferences { background: transparent !important; border: 1.5px solid var(--sa-ink) !important; color: var(--sa-ink) !important; }
.cmplz-cookiebanner .cmplz-links ul, .cmplz-cookiebanner ul.cmplz-documents { list-style: none !important; padding: 0 !important; margin: 0 !important; display: flex; gap: 6px 18px; flex-wrap: wrap; justify-content: center; }
.cmplz-cookiebanner .cmplz-links li:has(> a:empty), .cmplz-cookiebanner .cmplz-links li:empty { display: none; }
.cmplz-cookiebanner .cmplz-link { color: var(--sa-accent-dark) !important; }
#cmplz-manage-consent .cmplz-manage-consent { font-family: var(--sa-font-body) !important; border-radius: 12px 12px 0 0 !important; background: var(--sa-ink) !important; color: var(--sa-surface) !important; }

/* 12. Pillar A single pages: video and career profile (blocks styled in sa-core library.css) */
.sa-single { padding-top: clamp(20px, 3vw, 36px); padding-bottom: var(--wp--preset--spacing--70); }
.sa-back { margin-block: 0 18px !important; font-size: 0.92rem; }
.sa-back a { color: var(--sa-ink); font-weight: 600; text-decoration: none; }
.sa-back a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sa-split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 5vw, 72px); align-items: start; margin-top: clamp(24px, 4vw, 44px) !important; }
.sa-split__main > *, .sa-split__aside > * { margin-block: 0; }
.sa-split__main { display: grid; gap: 14px; align-content: start; min-width: 0; }
.sa-split__aside { position: sticky; top: 24px; min-width: 0; }
.sa-single__h { font-size: clamp(2.4rem, 4.8vw, 4rem) !important; line-height: 0.98 !important; }
.sa-single__lede { font-size: 1.2rem; color: var(--sa-muted); }
.sa-single__lede p { margin: 0; }
.sa-single__body { font-size: 1.05rem; line-height: 1.65; }
.sa-single__body:empty { display: none; }
@media (max-width: 960px) {
	.sa-split { grid-template-columns: 1fr; }
	.sa-split__aside { position: static; }
}

/* Calendar (The Events Calendar): our colours and fonts through its own variables. */
.sa-calendar.sa-page { padding-block: clamp(32px, 5vw, 64px); }
.sa-calendar .tribe-common, .sa-calendar .tribe-events-view {
	--tec-color-accent-primary: var(--sa-accent); --tec-color-accent-primary-hover: var(--sa-accent-dark);
	--tec-color-accent-primary-active: var(--sa-accent-dark);
	--tec-color-button-primary: var(--sa-accent); --tec-color-button-primary-hover: var(--sa-accent-dark);
	--tec-color-button-primary-active: var(--sa-accent-dark); --tec-color-button-primary-background: var(--sa-accent-soft);
	--tec-color-link-accent: var(--sa-accent-dark); --tec-color-link-primary: var(--sa-accent-dark);
	--tec-color-text-primary: var(--sa-ink); --tec-color-text-events-title: var(--sa-ink);
	--tec-font-family-sans-serif: inherit;
}
body .sa-calendar .tribe-common :is(button, a, input, h2, h3, h4, time, span, p, li) { font-family: inherit; }
body .sa-calendar .tribe-common .tribe-common-c-btn.tribe-events-c-search__button { background-color: var(--sa-accent); border-radius: 999px; }
body .sa-calendar .tribe-common .tribe-common-c-btn.tribe-events-c-search__button:is(:hover, :focus) { background-color: var(--sa-accent-dark); }

/* Event page on phones: photo, then date and price, then the text and the form. */
@media (max-width: 900px) {
	.sa-single--event .sa-split, .sa-single--event .sa-split__main { display: flex; flex-direction: column; align-items: stretch; gap: 18px; }
	.sa-single--event .sa-split__main { display: contents; }
	.sa-single--event .sa-split__main > * { order: 3; margin-block: 0; }
	.sa-single--event .sa-split__main > .sa-single__h { order: 1; }
	.sa-single--event .sa-split__aside { order: 2; }
}
body .sa-calendar .tribe-common .tribe-events-calendar-month__day--current :is(.tribe-events-calendar-month__day-date, .tribe-events-calendar-month__day-date-link, .tribe-events-calendar-month__day-date-daynum) { color: var(--sa-accent-dark); }
body .sa-calendar .tribe-common .tribe-events-calendar-month__day .tribe-events-calendar-month__day-cell--selected :is(.tribe-events-calendar-month__day-date, .tribe-events-calendar-month__day-date-daynum) { color: #fff; }

/* Academy (step 10): enrolment box on the course page, "Mon compte → Mes formations". */
.sa-course-enroll { border: 1px solid var(--sa-line); border-radius: 12px; padding: 1.25rem; margin: 1.5rem 0; background: var(--sa-surface); }
.sa-course-enroll__price { font-size: 1.5rem; font-weight: 700; margin: 0 0 .5rem; }
.sa-course-enroll__form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .5rem 0; }
.sa-course-enroll__code { margin-top: .75rem; }
.sa-course-enroll__code summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.sa-course-enroll input[type="text"], .woocommerce-MyAccount-content input[name="code"] { min-height: 44px; padding: 0 .75rem; border: 1px solid var(--sa-line); border-radius: 8px; }
.sa-mycourses { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .75rem; }
.sa-mycourses__item { display: grid; grid-template-columns: 1fr auto; gap: .25rem .75rem; align-items: center; padding: .75rem 1rem; border: 1px solid var(--sa-line); border-radius: 10px; }
.sa-mycourses__title { font-weight: 600; }
.sa-mycourses__bar { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: var(--sa-surface-alt); overflow: hidden; }
.sa-mycourses__bar > span { display: block; height: 100%; background: var(--sa-accent); }
.sa-mycourses__pct { color: var(--sa-muted); font-size: .9rem; grid-row: 1; grid-column: 2; }
.sa-producer { display: grid; grid-template-columns: minmax(0, 220px) 1fr; gap: 1.5rem; align-items: start; }
.sa-producer__photo { width: 100%; height: auto; border-radius: 10px; }
.sa-producer__place { color: var(--sa-muted); margin-top: -.5rem; }
@media (max-width: 600px) { .sa-producer { grid-template-columns: 1fr; } }
