/*
Theme Name: ECODARNA
Theme URI: https://ecodarna.broz.be
Description: Thème design premium d'ECODARNA Solutions — constructeur de villas et bungalows éco-responsables à ossature bois. Direction « studio d'architecte » : grotesque Archivo Expanded + Hanken Grotesk, grille stricte, hairlines, dark/light. Thème PUREMENT design ; toute la logique vit dans les plugins ecodarna-*. Palette de marque : olive #475841 + sable #ead9c7.
Author: MogaCode
Version: 2.0.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: ecodarna
*/

/* ============================================================ TOKENS */
:root {
	/* Brand */
	--brand-olive: #475841;
	--brand-olive-deep: #323d2b;
	--brand-green: #27763b;
	--brand-light-olive: #b9d499;
	--brand-sand: #e7d6c0;
	--brand-sand-2: #dcc7ab;
	--brand-bone: #f3ede2;

	/* Semantic — LIGHT */
	--bg: #f3ede2;
	--bg-alt: #ece3d4;
	--surface: #faf6ef;
	--surface-2: #ece3d4;
	--ink: #1b1f17;
	--text: #3c4035;
	--muted: #797d6e;
	--line: rgba(27, 31, 23, .16);
	--line-strong: rgba(27, 31, 23, .32);
	--primary: #475841;
	--primary-contrast: #f3ede2;
	--accent: #2f6b3e;
	--ring: rgba(71, 88, 65, .4);

	/* Type */
	--font-display: "Archivo Expanded", "Archivo", Arial, sans-serif;
	--font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

	/* Geometry — architectural, crisp */
	--container: 1240px;
	--wide: 1480px;
	--radius: 6px;
	--radius-sm: 4px;
	--radius-lg: 10px;
	--space: clamp(4.5rem, 9vw, 9rem);
	--header-h: 72px;

	/* Motion (emil-design-eng) */
	--ease-out: cubic-bezier(0.23, 1, 0.32, 1);
	--ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

	--shadow-sm: 0 1px 2px rgba(27,31,23,.04), 0 6px 18px rgba(27,31,23,.05);
	--shadow-md: 0 12px 40px rgba(27,31,23,.10);
	--shadow-lg: 0 30px 70px rgba(27,31,23,.16);
}

[data-theme="dark"] {
	--bg: #14170f;
	--bg-alt: #191d13;
	--surface: #1c2116;
	--surface-2: #222719;
	--ink: #f0ece0;
	--text: #cfcbbc;
	--muted: #8f9380;
	--line: rgba(240,236,224,.16);
	--line-strong: rgba(240,236,224,.34);
	--primary: #9cbd7f;
	--primary-contrast: #14170f;
	--accent: #8fd08c;
	--ring: rgba(156,189,127,.45);
	--shadow-sm: 0 1px 2px rgba(0,0,0,.3), 0 6px 18px rgba(0,0,0,.4);
	--shadow-md: 0 12px 40px rgba(0,0,0,.5);
	--shadow-lg: 0 30px 70px rgba(0,0,0,.6);
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #14170f; --bg-alt: #191d13; --surface: #1c2116; --surface-2: #222719;
		--ink: #f0ece0; --text: #cfcbbc; --muted: #8f9380;
		--line: rgba(240,236,224,.16); --line-strong: rgba(240,236,224,.34);
		--primary: #9cbd7f; --primary-contrast: #14170f; --accent: #8fd08c; --ring: rgba(156,189,127,.45);
		--shadow-sm: 0 1px 2px rgba(0,0,0,.3), 0 6px 18px rgba(0,0,0,.4);
		--shadow-md: 0 12px 40px rgba(0,0,0,.5); --shadow-lg: 0 30px 70px rgba(0,0,0,.6);
	}
}

/* ============================================================ BASE */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0; background: var(--bg); color: var(--text);
	font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.62;
	font-weight: 400; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
	transition: background-color .35s var(--ease-out), color .35s var(--ease-out);
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); font-weight: 700; line-height: .98; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 6vw, 5.6rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 3.3rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.4rem); letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 2.5px solid var(--ring); outline-offset: 3px; }
::selection { background: var(--brand-olive); color: var(--brand-bone); }

/* ============================================================ LAYOUT */
.ec-container { width: min(100% - 2.6rem, var(--container)); margin-inline: auto; }
.ec-wide { width: min(100% - 2.6rem, var(--wide)); margin-inline: auto; }
.ec-section { padding-block: var(--space); border-top: 1px solid var(--line); }
.ec-section:first-of-type { border-top: 0; }
.ec-section--alt { background: var(--bg-alt); }
.ec-grid { display: grid; gap: 1.5rem; }
@media (min-width: 720px) { .ec-grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .ec-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.ec-mt-0 { margin-top: 0; }
.ec-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Eyebrow / kicker — tracked uppercase + index numeral */
.ec-eyebrow, .ec-kicker {
	display: inline-flex; align-items: center; gap: .6rem;
	font-family: var(--font-body); font-weight: 600; font-size: .72rem;
	letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin: 0 0 1.1rem;
}
.ec-kicker::before { content: attr(data-num); font-weight: 700; color: var(--muted); letter-spacing: .1em; }
.ec-lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 56ch; line-height: 1.5; }
.ec-display { font-size: clamp(1.9rem, 4vw, 3.2rem); letter-spacing: -.025em; max-width: 20ch; }

.ec-sec-head { margin-bottom: 3rem; }
.ec-sec-head--split { display: grid; gap: 1.4rem; }
@media (min-width: 920px) { .ec-sec-head--split { grid-template-columns: 1.5fr .9fr; align-items: end; } .ec-sec-head__aside { text-align: right; padding-bottom: .4rem; } }

/* ============================================================ BUTTONS (rectangular, architectural) */
.ec-btn {
	display: inline-flex; align-items: center; gap: .6rem;
	font-family: var(--font-body); font-weight: 600; font-size: .82rem;
	letter-spacing: .08em; text-transform: uppercase;
	padding: .95rem 1.5rem; border: 1px solid transparent; border-radius: var(--radius-sm);
	cursor: pointer; line-height: 1; white-space: nowrap;
	transition: transform 160ms var(--ease-out), background-color 200ms var(--ease-out), color 160ms var(--ease-out), border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.ec-btn svg { width: 16px; height: 16px; transition: transform 220ms var(--ease-out); }
.ec-btn:hover svg { transform: translateX(3px); }
.ec-btn:active { transform: scale(.975); }
.ec-btn--primary { background: var(--primary); color: var(--primary-contrast); }
.ec-btn--primary:hover { background: var(--brand-olive-deep); }
[data-theme="dark"] .ec-btn--primary:hover { background: #b3d196; }
.ec-btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.ec-btn--ghost:hover { border-color: var(--ink); }
.ec-btn--light { background: var(--brand-bone); color: var(--brand-olive-deep); }
.ec-btn--light:hover { background: #fff; }
.ec-btn--outline { background: transparent; border-color: rgba(243,237,226,.45); color: var(--brand-bone); }
.ec-btn--outline:hover { border-color: var(--brand-bone); background: rgba(243,237,226,.08); }

/* ============================================================ HEADER */
.ec-header { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s var(--ease-out); }
.ec-header.is-stuck { border-bottom-color: var(--line); }
.ec-header__inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.ec-brand { display: flex; align-items: center; gap: .55rem; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; color: var(--ink); text-transform: uppercase; }
.ec-brand img { max-height: 38px; width: auto; }
.ec-brand .ec-ico { color: var(--accent); }
.ec-nav { margin-left: auto; }
.ec-nav ul { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.ec-nav a { position: relative; color: var(--text); font-weight: 500; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; padding-block: .3rem; }
.ec-nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0; background: var(--accent); transition: width 220ms var(--ease-out); }
.ec-nav a:hover { color: var(--ink); }
.ec-nav a:hover::after, .ec-nav .current-menu-item > a::after { width: 100%; }
.ec-header__actions { display: flex; align-items: center; gap: .7rem; }
.ec-theme-toggle, .ec-burger { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: transparent; color: var(--ink); cursor: pointer; transition: border-color 180ms var(--ease-out), transform 140ms var(--ease-out); }
.ec-theme-toggle:hover, .ec-burger:hover { border-color: var(--ink); }
.ec-theme-toggle:active, .ec-burger:active { transform: scale(.92); }
.ec-theme-toggle svg { width: 18px; height: 18px; }
.ec-theme-toggle .ec-sun { display: none; }
[data-theme="dark"] .ec-theme-toggle .ec-sun { display: block; }
[data-theme="dark"] .ec-theme-toggle .ec-moon { display: none; }
.ec-burger { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ec-theme-toggle .ec-sun { display: block; } :root:not([data-theme="light"]) .ec-theme-toggle .ec-moon { display: none; } }

/* ============================================================ HERO */
.ec-hero-cine { position: relative; min-height: min(94vh, 940px); display: flex; align-items: flex-end; overflow: clip; isolation: isolate; }
.ec-hero-cine__bg { position: absolute; inset: 0; z-index: -2; }
.ec-hero-cine__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); animation: ecKen 20s var(--ease-out) forwards; }
@keyframes ecKen { to { transform: scale(1.13); } }
.ec-hero-cine::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,23,15,.30) 0%, rgba(20,23,15,.05) 35%, rgba(18,21,13,.86) 100%); }
.ec-hero-cine__inner { width: min(100% - 2.6rem, var(--wide)); margin-inline: auto; padding-block: clamp(2.5rem, 5vw, 4.5rem); color: var(--brand-bone); }
.ec-hero-cine__kicker { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--brand-bone); opacity: .92; margin-bottom: 1.6rem; padding-bottom: .7rem; border-bottom: 1px solid rgba(243,237,226,.3); }
.ec-hero-cine h1 { color: #fcf9f2; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(2.6rem, 7.4vw, 7rem); line-height: .92; letter-spacing: -.035em; max-width: 16ch; margin: 0 0 1.3rem; }
.ec-hero-cine h1 em { font-style: normal; color: var(--brand-light-olive); }
.ec-hero-cine__lede { font-size: clamp(1rem, 1.4vw, 1.2rem); max-width: 50ch; color: #ece5d6; opacity: .95; }
.ec-hero-cine__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.ec-scroll-cue { position: absolute; left: 50%; bottom: 1.3rem; transform: translateX(-50%); color: rgba(243,237,226,.65); display: grid; place-items: center; gap: .35rem; font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; }
.ec-scroll-cue span { width: 1px; height: 36px; background: linear-gradient(rgba(243,237,226,.7), transparent); animation: ecCue 1.9s ease-in-out infinite; }
@keyframes ecCue { 0%,100% { opacity: .25; transform: scaleY(.5); } 50% { opacity: 1; transform: scaleY(1); } }

/* ============================================================ TRUST STRIP */
.ec-trust-strip { background: var(--brand-olive-deep); color: var(--brand-bone); }
[data-theme="dark"] .ec-trust-strip { background: var(--surface-2); }
.ec-trust-strip__inner { display: grid; grid-template-columns: repeat(2,1fr); }
@media (min-width: 760px) { .ec-trust-strip__inner { grid-template-columns: repeat(4,1fr); } }
.ec-trust-strip__cell { padding: 1.6rem 1.5rem; border-left: 1px solid rgba(243,237,226,.14); }
.ec-trust-strip__cell:first-child { border-left: 0; }
.ec-trust-strip__cell strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1; letter-spacing: -.02em; color: #fcf9f2; }
.ec-trust-strip__cell span { font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }

/* ============================================================ MANIFESTO / SPLIT */
.ec-split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 920px) { .ec-split { grid-template-columns: 1fr 1fr; gap: 4.5rem; } .ec-split--wide-l { grid-template-columns: 1.1fr .9fr; } }
.ec-manifesto { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.6rem, 3.2vw, 2.7rem); line-height: 1.04; letter-spacing: -.03em; max-width: 18ch; color: var(--ink); }
.ec-manifesto em { font-style: normal; color: var(--accent); }

/* ============================================================ PILLARS (numbered, hairline) */
.ec-pillar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.9rem 2.1rem; transition: transform 240ms var(--ease-out), border-color 240ms var(--ease-out), box-shadow 240ms var(--ease-out); }
.ec-pillar:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.ec-pillar__num { font-family: var(--font-display); font-weight: 700; font-size: .9rem; letter-spacing: .1em; color: var(--muted); margin-bottom: 1.6rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.ec-pillar__icon { color: var(--accent); margin-bottom: 1rem; }
.ec-pillar h3 { text-transform: uppercase; letter-spacing: -.005em; }

/* ============================================================ MODEL CARDS */
.ec-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform 240ms var(--ease-out), border-color 240ms var(--ease-out), box-shadow 240ms var(--ease-out); }
.ec-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow-lg); }
.ec-card__media { aspect-ratio: 4/3; overflow: hidden; background: var(--surface-2); }
.ec-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.ec-card:hover .ec-card__media img { transform: scale(1.05); }
.ec-card__body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.ec-card__tag { font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: .6rem; }
.ec-card h3 { text-transform: uppercase; margin: 0 0 .6rem; }
.ec-card__specs { display: flex; flex-wrap: wrap; gap: .5rem; margin: .2rem 0 1rem; }
.ec-chip { font-size: .76rem; color: var(--text); border: 1px solid var(--line); padding: .3rem .65rem; border-radius: var(--radius-sm); display: inline-flex; align-items: center; gap: .35rem; }
.ec-chip svg { width: 14px; height: 14px; color: var(--muted); }
.ec-card__foot { margin-top: auto; padding-top: 1.1rem; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.ec-price { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink); letter-spacing: -.01em; }
.ec-price small { display: block; font-family: var(--font-body); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: .15rem; }

/* ============================================================ IMG BAND */
.ec-imgband { position: relative; min-height: clamp(400px, 58vh, 640px); display: flex; align-items: center; overflow: clip; isolation: isolate; }
.ec-imgband__bg { position: absolute; inset: 0; z-index: -2; }
.ec-imgband__bg img { width: 100%; height: 100%; object-fit: cover; }
.ec-imgband::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(18,21,13,.8), rgba(18,21,13,.35) 65%, transparent); }
.ec-imgband__inner { width: min(100% - 2.6rem, var(--container)); margin-inline: auto; color: var(--brand-bone); }
.ec-imgband h2 { color: #fcf9f2; text-transform: uppercase; max-width: 15ch; }
.ec-imgband p { color: #ece5d6; max-width: 44ch; opacity: .92; }

/* ============================================================ FIGURE */
.ec-figure { position: relative; overflow: hidden; border-radius: var(--radius); }
.ec-figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease-out); }
.ec-figure:hover img { transform: scale(1.04); }
.ec-figure--tall { aspect-ratio: 4/5; }
.ec-figure__tag { position: absolute; left: 1rem; bottom: 1rem; background: var(--brand-bone); color: var(--brand-olive-deep); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .45rem .8rem; border-radius: var(--radius-sm); }

/* ============================================================ STEPS (process — grid lines) */
.ec-steps { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 640px) { .ec-steps { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .ec-steps { grid-template-columns: repeat(3,1fr); } }
.ec-step { position: relative; counter-increment: step; padding: 1.6rem 1.5rem 1.6rem 3.8rem; border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--surface); }
.ec-step::before { content: counter(step, decimal-leading-zero); position: absolute; left: 1.4rem; top: 1.55rem; font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--accent); letter-spacing: .05em; }
.ec-steps { counter-reset: step; }

/* ============================================================ CERT BAND */
.ec-band { background: var(--brand-olive); color: var(--brand-bone); border-radius: var(--radius); padding: clamp(2.2rem, 5vw, 3.8rem); }
[data-theme="dark"] .ec-band { background: var(--surface-2); }
.ec-band h2, .ec-band h3 { color: #fcf9f2; text-transform: uppercase; }
.ec-cert { display: flex; gap: 1.1rem; align-items: flex-start; padding-top: 1.4rem; border-top: 1px solid rgba(243,237,226,.18); }
.ec-cert__badge { flex: 0 0 auto; display: grid; place-items: center; width: 50px; height: 50px; border: 1px solid rgba(243,237,226,.3); border-radius: var(--radius-sm); color: var(--brand-bone); }
.ec-band .ec-cert p { color: var(--brand-bone); opacity: .85; margin: 0; }

/* ============================================================ MARQUEE */
.ec-marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 1.5rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.ec-marquee__track { display: flex; gap: 3.5rem; width: max-content; animation: ecMarq 34s linear infinite; }
.ec-marquee:hover .ec-marquee__track { animation-play-state: paused; }
.ec-marquee__item { display: inline-flex; align-items: center; gap: .7rem; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: -.01em; font-size: 1.4rem; color: var(--ink); white-space: nowrap; }
.ec-marquee__item svg { color: var(--accent); }
@keyframes ecMarq { to { transform: translateX(-50%); } }

/* ============================================================ CTA BAND */
.ec-cta-band { position: relative; border-radius: var(--radius); overflow: hidden; padding: clamp(2.8rem, 6vw, 5.5rem) clamp(1.5rem, 4vw, 3rem); text-align: center; color: var(--brand-bone); isolation: isolate; }
.ec-cta-band__bg { position: absolute; inset: 0; z-index: -2; }
.ec-cta-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.ec-cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(35,44,28,.85), rgba(18,21,13,.9)); }
.ec-cta-band h2 { color: #fcf9f2; text-transform: uppercase; max-width: 18ch; margin-inline: auto; }
.ec-cta-band p { color: #ece5d6; max-width: 46ch; margin-inline: auto; }
.ec-cta-band .ec-btn { margin: .35rem; }

/* ============================================================ FORMS */
.ec-form { display: grid; gap: 1.1rem; max-width: 720px; }
.ec-field { display: flex; flex-direction: column; gap: .45rem; }
.ec-field label { font-weight: 600; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.ec-field input, .ec-field textarea, .ec-field select { font: inherit; padding: .85rem 1rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); transition: border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out); }
.ec-field input:focus, .ec-field textarea:focus, .ec-field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--ring); }
.ec-field--row { display: grid; gap: 1.1rem; }
@media (min-width: 620px) { .ec-field--row { grid-template-columns: 1fr 1fr; } }
.ec-form-success { border-radius: var(--radius); }

/* ============================================================ PAGE / PROSE */
.ec-page-hero { background: var(--bg-alt); padding-block: clamp(2.8rem, 5vw, 4.5rem); border-bottom: 1px solid var(--line); }
.ec-page-hero h1 { text-transform: uppercase; }
.ec-breadcrumb { display: flex; flex-wrap: wrap; gap: .45rem; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.3rem; }
.ec-breadcrumb a { color: var(--muted); }
.ec-breadcrumb a:hover { color: var(--accent); }
.ec-prose { max-width: 70ch; }
.ec-prose h2 { margin-top: 1.8em; text-transform: uppercase; }
.ec-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.ec-prose ul, .ec-prose ol { padding-left: 1.3em; margin-bottom: 1.2em; }
.ec-prose li { margin-bottom: .4em; }
.ec-prose img { border-radius: var(--radius); margin: 1.6em 0; }
.ec-prose blockquote { border-left: 3px solid var(--accent); padding-left: 1.2rem; margin: 1.5em 0; color: var(--muted); }

/* ============================================================ TABS / SPECS */
.ec-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.ec-tab { padding: .55rem 1.1rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: transparent; color: var(--text); cursor: pointer; font: inherit; font-size: .76rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out), border-color 180ms var(--ease-out); }
.ec-tab[aria-selected="true"] { background: var(--primary); color: var(--primary-contrast); border-color: var(--primary); }
.ec-tabpanel { display: none; border-radius: var(--radius); overflow: hidden; }
.ec-tabpanel.is-active { display: block; }
.ec-specs-table { width: 100%; border-collapse: collapse; }
.ec-specs-table th, .ec-specs-table td { text-align: left; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.ec-specs-table th { color: var(--muted); font-weight: 500; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.ec-specs-table td { color: var(--ink); font-weight: 700; font-family: var(--font-display); text-align: right; letter-spacing: -.01em; }

/* ============================================================ FOOTER */
.ec-footer { background: var(--brand-olive-deep); color: #cdc6b6; padding-block: 4rem 2rem; }
[data-theme="dark"] .ec-footer { background: #0e110a; }
.ec-footer a { color: #cdc6b6; transition: color 160ms var(--ease-out); }
.ec-footer a:hover { color: #fff; }
.ec-footer__grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .ec-footer__grid { grid-template-columns: 1.7fr 1fr 1fr; } }
.ec-footer__brand { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 1.3rem; color: #fff; margin-bottom: .7rem; letter-spacing: -.01em; }
.ec-footer h4 { color: #fff; font-family: var(--font-body); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 1.1rem; }
.ec-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; font-size: .92rem; }
.ec-footer__bottom { border-top: 1px solid rgba(243,237,226,.14); margin-top: 3rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; font-size: .78rem; letter-spacing: .04em; opacity: .8; }
.ec-social { display: flex; gap: .6rem; margin-top: 1.3rem; }
.ec-social a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(243,237,226,.22); border-radius: var(--radius-sm); transition: border-color 180ms var(--ease-out), transform 140ms var(--ease-out); }
.ec-social a:hover { border-color: #fff; transform: translateY(-2px); }
.ec-social svg { width: 17px; height: 17px; }

/* ============================================================ MOBILE NAV */
@media (max-width: 900px) {
	.ec-burger { display: inline-grid; }
	.ec-header__cta { display: none; }
	.ec-nav { position: fixed; inset: var(--header-h) 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--line); transform: translateY(-115%); transition: transform .35s var(--ease-out); margin: 0; padding: 1rem 1.3rem 1.8rem; box-shadow: var(--shadow-lg); }
	.ec-nav.is-open { transform: translateY(0); }
	.ec-nav ul { flex-direction: column; gap: 0; align-items: stretch; }
	.ec-nav a { display: block; padding: .9rem .2rem; border-bottom: 1px solid var(--line); }
	.ec-nav a::after { display: none; }
}

/* ============================================================ REVEAL / MOTION (emil) */
html.js .ec-reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
html.js .ec-reveal.is-in { opacity: 1; transform: none; }
.ec-reveal[data-delay="1"] { transition-delay: .07s; }
.ec-reveal[data-delay="2"] { transition-delay: .14s; }
.ec-reveal[data-delay="3"] { transition-delay: .21s; }

@media (hover: none) {
	.ec-btn:hover, .ec-card:hover, .ec-pillar:hover { transform: none; }
	.ec-card:hover .ec-card__media img, .ec-figure:hover img { transform: none; }
	.ec-nav a:hover::after { width: 0; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	html.js .ec-reveal { opacity: 1; transform: none; transition: none; }
	.ec-hero-cine__bg img, .ec-scroll-cue span, .ec-marquee__track { animation: none !important; }
	.ec-card__media img, .ec-figure img { transition: none; }
}
.ec-ico { flex: 0 0 auto; }

/* ============================================================================
   MOTION SYSTEM — emil-design-eng (clip reveals, masked headings, stagger,
   hero intro sequence, scroll-driven parallax). Transform/opacity/clip-path only.
   ============================================================================ */

/* Generic stagger delays (applied to hero items & any [data-delay]) */
html.js [data-delay="1"] { transition-delay: 80ms; }
html.js [data-delay="2"] { transition-delay: 160ms; }
html.js [data-delay="3"] { transition-delay: 240ms; }
html.js [data-delay="4"] { transition-delay: 340ms; }
html.js [data-delay="5"] { transition-delay: 440ms; }

/* RISE — fade + translate (default content reveal) */
html.js [data-anim="rise"] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
html.js [data-anim="rise"].is-in { opacity: 1; transform: none; }

/* MASK — heading rises from behind a clipped edge (signature premium reveal) */
.ec-mask { display: block; overflow: hidden; padding-bottom: .08em; }
html.js .ec-mask > * { display: block; transform: translateY(115%); transition: transform 1s var(--ease-out); margin: 0; }
html.js .ec-mask.is-in > * { transform: translateY(0); }

/* CLIP — image unveils from bottom + settles scale (Emil "image reveal on scroll").
   Clip the INNER img, not the observed figure, so the IntersectionObserver keeps
   seeing the (un-clipped) figure box and fires reliably. */
html.js [data-anim="clip"] img { clip-path: inset(0 0 100% 0); transform: scale(1.08); transition: clip-path 1.1s var(--ease-out), transform 1.5s var(--ease-out); will-change: clip-path, transform; }
html.js [data-anim="clip"].is-in img { clip-path: inset(0 0 0 0); transform: scale(1); }

/* STAGGER — children cascade in; per-child delay assigned by JS via --d */
html.js [data-stagger] > * { opacity: 0; transform: translateY(28px); transition: opacity .65s var(--ease-out), transform .65s var(--ease-out); transition-delay: calc(var(--d, 0) * 70ms); }
html.js [data-stagger].is-in > * { opacity: 1; transform: none; }

/* HERO intro: bg clips in on load, content sequenced (handled by .is-in on load) */
html.js .ec-hero-cine__bg { clip-path: inset(0 0 0 0); }
html.js .ec-hero-cine[data-intro] .ec-hero-cine__bg { clip-path: inset(8% 8% 8% 8%); transition: clip-path 1.3s var(--ease-out); }
html.js .ec-hero-cine[data-intro].is-in .ec-hero-cine__bg { clip-path: inset(0 0 0 0); }

/* Scroll-driven parallax (off main thread; progressive enhancement) */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.ec-imgband__bg img, .ec-cta-band__bg img {
			transform: translateY(-8%) scale(1.16);
			animation: ecParallax linear both; animation-timeline: view(); animation-range: cover;
		}
		@keyframes ecParallax { from { transform: translateY(-9%) scale(1.16); } to { transform: translateY(9%) scale(1.16); } }
	}
}

/* Reduced motion: neutralize all motion, keep content visible */
@media (prefers-reduced-motion: reduce) {
	html.js [data-anim], html.js [data-stagger] > *, html.js .ec-mask > * { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
	html.js .ec-hero-cine[data-intro] .ec-hero-cine__bg { clip-path: none; }
}

/* Mask wrapper spacing (overflow:hidden removes heading bottom-margin) */
.ec-mask { margin-bottom: .9rem; }
.ec-hero-cine .ec-mask { margin-bottom: 1.3rem; }
.ec-imgband .ec-mask, .ec-cta-band .ec-mask { margin-bottom: 1rem; }
.ec-band .ec-mask { margin-bottom: .6rem; }

/* ============================================================================
   MATURE PASS — inspiré d'un template "cottage" posé (Poppins, casse normale,
   calme et riche en contenu). Couleurs & contenu ECODARNA conservés.
   ============================================================================ */
:root { --font-display: "Poppins", system-ui, -apple-system, sans-serif; }

/* Sentence case partout (la marque de maturité) — on ne garde l'uppercase
   que sur les petits libellés tracés (kicker / eyebrow / tag / specs th). */
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -.015em; }
.ec-hero-cine h1, .ec-display, .ec-manifesto, .ec-card h3, .ec-pillar h3,
.ec-imgband h2, .ec-cta-band h2, .ec-band h2, .ec-band h3, .ec-page-hero h1,
.ec-prose h2, .ec-footer__brand, .ec-marquee__item, .ec-brand, .ec-nav a,
.ec-btn, .ec-step strong, .ec-tab, .ec-specs-table td, .ec-field label {
	text-transform: none;
}

/* Hero: Poppins posé, taille calmée, accent olive conservé */
.ec-hero-cine h1 { font-weight: 600; font-size: clamp(2.5rem, 5.6vw, 5rem); line-height: 1.02; letter-spacing: -.025em; }
.ec-manifesto { font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
.ec-display { letter-spacing: -.02em; }

/* Nav & boutons : casse normale, tracking doux */
.ec-nav a { font-size: .92rem; letter-spacing: 0; text-transform: none; }
.ec-btn { letter-spacing: .005em; font-size: .9rem; padding: .95rem 1.6rem; }
.ec-brand { font-weight: 700; letter-spacing: -.01em; }
.ec-card__tag, .ec-kicker, .ec-eyebrow { letter-spacing: .14em; } /* garde un tracking lisible */

/* Specs modèle : ligne à icônes lisible (façon template mûr) */
.ec-card__specs { gap: .4rem .9rem; }
.ec-chip { border: 0; padding: 0; background: transparent; font-weight: 600; color: var(--ink); font-size: .82rem; }
.ec-chip svg { color: var(--accent); }

/* About / engagement — stat card + récit fondateur (EEAT) */
.ec-about { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 920px) { .ec-about { grid-template-columns: .85fr 1.15fr; gap: 4rem; } }
.ec-stat-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem; background: var(--surface); }
.ec-stat-card__big { font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 6vw, 4.6rem); line-height: 1; color: var(--accent); letter-spacing: -.03em; }
.ec-stat-card__lbl { color: var(--muted); font-size: 1rem; margin-top: .4rem; }
.ec-stat-card hr { border: 0; border-top: 1px solid var(--line); margin: 1.4rem 0; }
.ec-stat-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.ec-stat-card li { display: flex; gap: .6rem; align-items: center; font-weight: 500; color: var(--ink); }
.ec-stat-card li svg { color: var(--accent); flex: 0 0 auto; }
.ec-about__story p { color: var(--text); font-size: 1.08rem; line-height: 1.7; }
.ec-about__story .ec-lede { color: var(--ink); font-weight: 500; }

/* ============================================================ LOGO LOCK-UP */
.ec-brand { gap: .6rem; }
.ec-emblem { flex: 0 0 auto; display: block; }
.ec-wm { font-family: var(--font-display); font-weight: 700; letter-spacing: .03em; color: var(--ink); font-size: 1.16rem; line-height: 1; }
.ec-wm b { font-weight: 400; }
.ec-footer__brand { display: flex; align-items: center; gap: .55rem; }
.ec-footer__brand .ec-wm { color: #fff; font-size: 1.12rem; }
