/* ==========================================================================
   eCommune — design system du site public
   ========================================================================== */

/* ---------- Jetons ---------- */
:root {
	--ec-primary: #00704A;
	--ec-accent: #F2B705;
	--ec-deep: #06281C;
	--ec-green: #1FA35C;
	--ec-yellow: #F5C518;
	--ec-red: #E8112D;

	--ec-bg: #FFFFFF;
	--ec-surface: #FFFFFF;
	--ec-tint: color-mix(in srgb, var(--ec-primary) 5%, #F7F8F6);
	--ec-ink: #0E1726;
	--ec-ink-2: #344054;
	--ec-muted: #5F6B7A;
	--ec-line: #E5E8EC;
	--ec-line-2: #D0D5DD;
	--ec-primary-soft: color-mix(in srgb, var(--ec-primary) 10%, #fff);
	--ec-primary-ink: color-mix(in srgb, var(--ec-primary) 82%, #000);
	--ec-on-primary: #fff;

	--ec-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--ec-display: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--ec-fs: 1rem;

	--ec-r-sm: 10px;
	--ec-r: 16px;
	--ec-r-lg: 24px;
	--ec-shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
	--ec-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px -12px rgba(16, 24, 40, .18);
	--ec-shadow-lg: 0 30px 60px -30px rgba(6, 20, 14, .45);
	--ec-ease: cubic-bezier(.2, .7, .2, 1);
	--ec-container: 1240px;
	--ec-gutter: clamp(16px, 4vw, 32px);
	--ec-header-h: 76px;
	color-scheme: light;
}

:root[data-theme="dark"] {
	--ec-bg: #0B1118;
	--ec-surface: #121A23;
	--ec-tint: #0F161E;
	--ec-ink: #ECF0F4;
	--ec-ink-2: #C5CDD6;
	--ec-muted: #98A3B0;
	--ec-line: #222D39;
	--ec-line-2: #2E3A47;
	--ec-primary-soft: color-mix(in srgb, var(--ec-primary) 22%, #121A23);
	--ec-primary-ink: color-mix(in srgb, var(--ec-primary) 45%, #fff);
	--ec-shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.6);
	color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--ec-bg: #0B1118;
		--ec-surface: #121A23;
		--ec-tint: #0F161E;
		--ec-ink: #ECF0F4;
		--ec-ink-2: #C5CDD6;
		--ec-muted: #98A3B0;
		--ec-line: #222D39;
		--ec-line-2: #2E3A47;
		--ec-primary-soft: color-mix(in srgb, var(--ec-primary) 22%, #121A23);
		--ec-primary-ink: color-mix(in srgb, var(--ec-primary) 45%, #fff);
		--ec-shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.6);
		color-scheme: dark;
	}
}
/* Contraste renforcé */
.ec-hc {
	--ec-muted: var(--ec-ink-2);
	--ec-line: var(--ec-ink-2);
	--ec-primary-ink: var(--ec-deep);
}
.ec-hc a:not(.ec-btn) { text-decoration: underline !important; text-underline-offset: 3px; }
:root[data-theme="dark"].ec-hc { --ec-primary-ink: #fff; }

.ec-light-mode { --ec-font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; --ec-display: var(--ec-font); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: var(--ec-fs); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--ec-header-h) + 16px); }
body { margin: 0; font-family: var(--ec-font); font-size: 1rem; line-height: 1.6; color: var(--ec-ink); background: var(--ec-bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--ec-primary-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; cursor: pointer; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--ec-display); line-height: 1.15; letter-spacing: -.02em; margin: 0; color: var(--ec-ink); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--ec-accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--ec-accent); color: #111; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.ec-icon { flex: none; }
.ec-skip { position: absolute; left: 16px; top: -100px; z-index: 1000; background: var(--ec-ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-weight: 600; }
.ec-skip:focus { top: 12px; }
.ec-main:focus { outline: none; }

.ec-container { width: 100%; max-width: var(--ec-container); margin: 0 auto; padding-inline: var(--ec-gutter); }
.ec-section { padding-block: clamp(56px, 8vw, 104px); position: relative; }
.ec-section--tight { padding-block: clamp(32px, 5vw, 64px); }
.ec-section--tint { background: var(--ec-tint); }
.ec-section--dark { background: var(--ec-deep); color: #fff; }
.ec-section--dark h2, .ec-section--dark h3 { color: #fff; }
.ec-section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(28px, 4vw, 44px); flex-wrap: wrap; }
.ec-center { text-align: center; margin-top: 40px; }

.ec-kicker { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ec-primary-ink); margin-bottom: 12px; display: inline-flex; align-items: center; gap: 10px; }
.ec-kicker::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--ec-green) 0 33%, var(--ec-yellow) 33% 66%, var(--ec-red) 66%); }
.ec-kicker--light, .ec-kicker--accent { color: var(--ec-accent); }
.ec-h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); font-weight: 800; max-width: 22ch; text-wrap: balance; }
.ec-h2 em { font-style: normal; color: var(--ec-primary-ink); }
.ec-h2--sm { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 24px; max-width: none; }
.ec-lead { font-size: clamp(1.02rem, 1.3vw, 1.15rem); color: var(--ec-muted); max-width: 62ch; margin-top: 14px; line-height: 1.65; }
.ec-section--dark .ec-lead { color: rgba(255,255,255,.72); }
.ec-meta { font-size: .82rem; color: var(--ec-muted); font-weight: 500; }

/* ---------- Boutons ---------- */
.ec-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 650; font-size: .95rem; border: 0; text-decoration: none !important; transition: transform .2s var(--ec-ease), background .2s, box-shadow .2s, color .2s; white-space: nowrap; }
.ec-btn:hover { transform: translateY(-1px); }
.ec-btn--primary { background: var(--ec-primary); color: var(--ec-on-primary); box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--ec-primary) 80%, transparent); }
.ec-btn--primary:hover { background: color-mix(in srgb, var(--ec-primary) 85%, #000); color: #fff; }
.ec-btn--ghost { background: transparent; color: var(--ec-ink); box-shadow: inset 0 0 0 1.5px var(--ec-line-2); }
.ec-btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ec-primary); color: var(--ec-primary-ink); }
.ec-btn--light { background: #fff; color: var(--ec-deep); }
.ec-btn--light:hover { background: var(--ec-accent); color: #111; }
.ec-btn--block { width: 100%; }
.ec-btn--lg { min-height: 54px; padding: 0 30px; font-size: 1rem; }
.ec-iconbtn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: transparent; border: 0; color: var(--ec-ink); transition: background .2s; }
.ec-iconbtn:hover { background: var(--ec-primary-soft); color: var(--ec-primary-ink); }
.ec-link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--ec-primary-ink); }
.ec-link-arrow:hover { text-decoration: none; gap: 12px; }
.ec-link-arrow .ec-icon { transition: transform .2s; }
.ec-link-arrow--light { color: #fff; }
.ec-section--dark .ec-link-arrow { color: var(--ec-accent); }

.ec-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: .78rem; font-weight: 650; }
.ec-badge--glass { background: rgba(255,255,255,.14); color: #fff; backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.ec-badge--accent { background: var(--ec-accent); color: #1a1300; }
.ec-tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 650; background: var(--ec-primary-soft); color: var(--ec-primary-ink); }
.ec-tag--online { background: color-mix(in srgb, var(--ec-accent) 22%, transparent); color: color-mix(in srgb, var(--ec-accent) 40%, #2a1d00); }
:root[data-theme="dark"] .ec-tag--online { color: var(--ec-accent); }
.ec-tag--light { background: rgba(255,255,255,.16); color: #fff; }
.ec-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.ec-chips--center { justify-content: center; }
.ec-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--ec-surface); box-shadow: inset 0 0 0 1px var(--ec-line-2); color: var(--ec-ink); font-size: .88rem; font-weight: 550; transition: all .2s; }
.ec-chip span { font-size: .75rem; color: var(--ec-muted); background: var(--ec-tint); padding: 1px 8px; border-radius: 99px; }
.ec-chip:hover, .ec-chip.is-active { box-shadow: inset 0 0 0 1.5px var(--ec-primary); color: var(--ec-primary-ink); text-decoration: none; }
.ec-chip.is-active { background: var(--ec-primary); color: #fff; }
.ec-chip--soft { background: var(--ec-surface); }

/* ---------- Alerte ---------- */
.ec-alert { background: #1E3A8A; color: #fff; font-size: .92rem; }
.ec-alert--warning { background: #B45309; }
.ec-alert--danger { background: #B91C1C; }
.ec-alert__inner { display: flex; align-items: center; gap: 12px; min-height: 44px; padding-block: 8px; }
.ec-alert p { flex: 1; font-weight: 550; }
.ec-alert a { color: #fff; font-weight: 700; text-decoration: underline; }

/* ---------- Barre gouvernementale ---------- */
.ec-topbar { background: #0A0F14; color: rgba(255,255,255,.78); font-size: .8rem; }
.ec-topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 40px; gap: 16px; }
.ec-topbar__gov { display: flex; align-items: center; gap: 10px; font-weight: 550; }
.ec-topbar__sep { width: 1px; height: 14px; background: rgba(255,255,255,.2); }
.ec-flagmark { display: inline-flex; width: 22px; height: 15px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
.ec-flagmark i { display: block; }
.ec-flagmark i:nth-child(1) { width: 40%; background: var(--ec-green); }
.ec-flagmark i:nth-child(2), .ec-flagmark i:nth-child(3) { width: 60%; height: 50%; position: absolute; }
.ec-flagmark { position: relative; }
.ec-flagmark i:nth-child(2) { left: 40%; top: 0; background: var(--ec-yellow); }
.ec-flagmark i:nth-child(3) { left: 40%; bottom: 0; background: var(--ec-red); }
.ec-topbar__tools { display: flex; align-items: center; gap: 6px; }
.ec-topbar__link { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.82); padding: 6px 10px; border-radius: 8px; font-weight: 550; }
.ec-topbar__link:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.ec-a11y { display: flex; gap: 2px; padding: 0 6px; border-inline: 1px solid rgba(255,255,255,.12); margin-inline: 4px; }
.ec-a11y__btn { background: transparent; border: 0; color: rgba(255,255,255,.82); height: 30px; min-width: 30px; border-radius: 6px; font-weight: 700; font-size: .78rem; display: grid; place-items: center; }
.ec-a11y__btn:hover, .ec-a11y__btn[aria-pressed="true"] { background: rgba(255,255,255,.12); color: #fff; }
.ec-i-sun { display: none; }
:root[data-theme="dark"] .ec-i-sun { display: block; }
:root[data-theme="dark"] .ec-i-moon { display: none; }

/* ---------- En-tête ---------- */
.ec-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--ec-bg) 88%, transparent); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.ec-header.is-scrolled { border-bottom-color: var(--ec-line); box-shadow: 0 6px 24px -18px rgba(0,0,0,.35); }
.ec-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--ec-header-h); }
.ec-brand { display: flex; align-items: center; gap: 12px; color: var(--ec-ink); text-decoration: none !important; flex: none; }
.ec-brand__emblem svg { width: 40px; height: 46px; filter: drop-shadow(0 6px 10px color-mix(in srgb, var(--ec-primary) 35%, transparent)); }
.ec-brand__logo img { max-height: 52px; width: auto; }
.ec-brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.ec-brand__kicker { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: var(--ec-muted); }
.ec-brand__name { font-family: var(--ec-display); font-size: 1.32rem; font-weight: 800; letter-spacing: -.02em; }
.ec-nav { flex: 1; display: flex; justify-content: center; }
.ec-menu { list-style: none; display: flex; align-items: center; gap: 2px; }
.ec-menu > li { position: relative; }
.ec-menu > li > a { display: inline-flex; align-items: center; gap: 4px; padding: 10px 13px; border-radius: 10px; font-weight: 600; font-size: .94rem; color: var(--ec-ink-2); transition: background .2s, color .2s; }
.ec-menu > li > a:hover, .ec-menu > li.current-menu-item > a, .ec-menu > li.current-menu-ancestor > a, .ec-menu > li.current_page_parent > a { background: var(--ec-primary-soft); color: var(--ec-primary-ink); text-decoration: none; }
.ec-menu .menu-item-has-children > a::after { content: ""; width: 7px; height: 7px; border-right: 1.75px solid currentColor; border-bottom: 1.75px solid currentColor; transform: rotate(45deg) translateY(-3px); margin-left: 6px; opacity: .6; }
.ec-menu .sub-menu { list-style: none; position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px; background: var(--ec-surface); border-radius: 14px; padding: 8px; box-shadow: 0 0 0 1px var(--ec-line), 0 24px 48px -16px rgba(0,0,0,.25); opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .2s var(--ec-ease); }
.ec-menu .sub-menu::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.ec-menu li:hover > .sub-menu, .ec-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.ec-menu .sub-menu a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ec-ink); font-weight: 550; font-size: .92rem; }
.ec-menu .sub-menu a:hover { background: var(--ec-tint); color: var(--ec-primary-ink); text-decoration: none; }
.ec-header__actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.ec-header__cta { min-height: 42px; padding: 0 18px; }
.ec-burger { display: none; }
.ec-burger .ec-i-close { display: none; }
.ec-nav__mobile-extra { display: none; }

/* ---------- Dialogues ---------- */
.ec-dialog { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; color: var(--ec-ink); }
.ec-dialog::backdrop { background: rgba(5, 12, 10, .55); backdrop-filter: blur(6px); }
.ec-dialog[open] { display: flex; align-items: flex-start; justify-content: center; padding: 10vh var(--ec-gutter) 0; animation: ec-fade .2s ease; }
.ec-search__panel, .ec-urgences__panel { width: 100%; max-width: 720px; background: var(--ec-surface); border-radius: var(--ec-r-lg); box-shadow: var(--ec-shadow-lg); overflow: hidden; animation: ec-rise .3s var(--ec-ease); }
.ec-search__form { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 22px; border-bottom: 1px solid var(--ec-line); color: var(--ec-muted); }
.ec-search__form input { flex: 1; border: 0; background: transparent; font-size: 1.2rem; padding: 12px 0; outline: none; color: var(--ec-ink); }
.ec-search__suggest { padding: 20px 22px 24px; }
.ec-search__label { font-size: .8rem; font-weight: 700; color: var(--ec-muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.ec-urgences__panel { max-width: 480px; padding: 22px; }
.ec-urgences__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.ec-urgences__head h2 { font-size: 1.3rem; }
.ec-urgences__list { list-style: none; display: grid; gap: 8px; }
.ec-urgences__list a { display: flex; align-items: center; gap: 16px; padding: 12px; border-radius: 14px; background: var(--ec-tint); color: var(--ec-ink); font-weight: 600; }
.ec-urgences__list a:hover { background: var(--ec-primary-soft); text-decoration: none; }
.ec-urgences__num { display: grid; place-items: center; width: 64px; height: 52px; border-radius: 12px; background: var(--ec-red); color: #fff; font-family: var(--ec-display); font-size: 1.4rem; font-weight: 800; }
.ec-urgences__num--sm { background: var(--ec-primary); }
.ec-urgences__list small { color: var(--ec-muted); font-weight: 500; }

/* ---------- Hero ---------- */
.ec-hero { position: relative; isolation: isolate; color: #fff; background: var(--ec-deep); overflow: hidden; min-height: min(86vh, 820px); display: flex; flex-direction: column; justify-content: flex-end; }
.ec-hero__media { position: absolute; inset: 0; z-index: -3; }
.ec-hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: ec-kenburns 22s ease-out forwards; }
.ec-hero__shade { position: absolute; inset: 0; z-index: -2; background:
	linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 30%),
	linear-gradient(90deg, color-mix(in srgb, var(--ec-deep) 92%, transparent) 0%, color-mix(in srgb, var(--ec-deep) 60%, transparent) 50%, color-mix(in srgb, var(--ec-deep) 15%, transparent) 100%),
	linear-gradient(0deg, color-mix(in srgb, var(--ec-deep) 85%, transparent) 0%, transparent 45%); }
.ec-hero:not(.has-image) .ec-hero__shade { background: radial-gradient(90% 80% at 85% 10%, color-mix(in srgb, var(--ec-primary) 75%, transparent), transparent 60%), radial-gradient(60% 60% at 10% 100%, color-mix(in srgb, var(--ec-accent) 30%, transparent), transparent 60%), var(--ec-deep); }
.ec-hero__pattern, .ec-pagehead__pattern, .ec-vhero__pattern { position: absolute; inset: 0; z-index: -1; opacity: .09; pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23fff' stroke-width='1.5'%3E%3Cpath d='M32 4 60 32 32 60 4 32Z'/%3E%3Cpath d='M32 18 46 32 32 46 18 32Z'/%3E%3Ccircle cx='32' cy='32' r='3'/%3E%3C/g%3E%3C/svg%3E");
	background-size: 64px; mask-image: linear-gradient(90deg, transparent, #000 70%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); }
.ec-hero__inner { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .8fr); gap: clamp(24px, 4vw, 64px); align-items: end; padding-block: clamp(80px, 12vh, 140px) clamp(40px, 7vh, 72px); }
.ec-hero__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.ec-hero__title { color: #fff; margin-bottom: 14px; }
.ec-hero__pre { display: block; font-family: var(--ec-font); font-size: clamp(1rem, 1.6vw, 1.2rem); font-weight: 500; letter-spacing: 0; color: rgba(255,255,255,.8); margin-bottom: 8px; }
.ec-hero__name { display: block; font-size: clamp(3rem, 8.5vw, 6.6rem); font-weight: 800; letter-spacing: -.045em; line-height: .95; text-wrap: balance; }
.ec-hero__slogan { font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: rgba(255,255,255,.86); max-width: 40ch; margin-bottom: 32px; }
.ec-hero__search { display: flex; align-items: center; gap: 10px; max-width: 640px; padding: 8px 8px 8px 20px; background: #fff; border-radius: 999px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); color: #5F6B7A; }
.ec-hero__search input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 1.05rem; padding: 12px 0; background: transparent; color: #0E1726; }
.ec-hero__search input::placeholder { color: #8A94A3; }
.ec-hero__search .ec-btn { min-height: 50px; }
.ec-hero__popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-size: .88rem; }
.ec-hero__popular > span { color: rgba(255,255,255,.7); font-weight: 600; margin-right: 4px; }
.ec-hero__popular a { color: #fff; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); backdrop-filter: blur(8px); font-weight: 550; transition: background .2s; }
.ec-hero__popular a:hover { background: rgba(255,255,255,.24); text-decoration: none; }
.ec-hero__card { background: rgba(255,255,255,.1); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-radius: var(--ec-r-lg); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 30px 60px -30px rgba(0,0,0,.6); padding: 10px; }
.ec-hero__card-row { display: flex; gap: 14px; padding: 14px; }
.ec-hero__card-row + .ec-hero__card-row { border-top: 1px solid rgba(255,255,255,.12); }
.ec-hero__card-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.14); flex: none; }
.ec-hero__card-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: rgba(255,255,255,.65); margin-bottom: 4px; }
.ec-hero__card-value { color: #fff; font-weight: 550; font-size: .95rem; line-height: 1.45; }
.ec-open { text-transform: none; letter-spacing: 0; font-weight: 700; }
.ec-open.is-open { color: #6EE7A8; }
.ec-open.is-closed { color: #FCA5A5; }
.ec-hero__card-cta { display: flex; align-items: center; gap: 14px; padding: 16px; margin-top: 6px; border-radius: 18px; background: var(--ec-accent); color: #1a1300; transition: transform .2s; }
.ec-hero__card-cta:hover { text-decoration: none; transform: translateY(-2px); }
.ec-hero__card-cta > span:first-child { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(0,0,0,.08); flex: none; }
.ec-hero__card-cta b { display: block; font-size: .98rem; }
.ec-hero__card-cta small { display: block; font-size: .82rem; opacity: .75; }
.ec-hero__card-cta > span:nth-child(2) { flex: 1; }
.ec-hero__credit { position: absolute; right: 14px; bottom: 10px; font-size: .68rem; color: rgba(255,255,255,.55); }

/* ---------- Accès rapides ---------- */
.ec-access { padding-top: clamp(56px, 7vw, 88px); }
.ec-access__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 2fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.ec-access__intro .ec-link-arrow { margin-top: 24px; }
.ec-tiles { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ec-tiles--4 { grid-template-columns: repeat(4, 1fr); }
.ec-tile { position: relative; display: flex; flex-direction: column; gap: 6px; height: 100%; min-height: 168px; padding: 22px; border-radius: var(--ec-r); background: var(--ec-surface); box-shadow: inset 0 0 0 1px var(--ec-line); color: var(--ec-ink); transition: transform .3s var(--ec-ease), box-shadow .3s, background .3s; overflow: hidden; }
.ec-tile::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--ec-primary) 16%, transparent), transparent); opacity: 0; transition: opacity .3s; }
.ec-tile:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1.5px var(--ec-primary), var(--ec-shadow); text-decoration: none; }
.ec-tile:hover::after { opacity: 1; }
.ec-tile__icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--ec-primary-soft); color: var(--ec-primary-ink); margin-bottom: auto; transition: background .3s, color .3s; }
.ec-tile:hover .ec-tile__icon { background: var(--ec-primary); color: #fff; }
.ec-tile__title { font-family: var(--ec-display); font-weight: 700; font-size: 1.08rem; line-height: 1.25; margin-top: 18px; }
.ec-tile__count { font-size: .85rem; color: var(--ec-muted); }
.ec-tile__arrow { position: absolute; top: 20px; right: 20px; color: var(--ec-muted); transition: transform .3s var(--ec-ease), color .3s; }
.ec-tile:hover .ec-tile__arrow { transform: translate(3px, -3px); color: var(--ec-primary-ink); }
.ec-eservices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 32px; padding-top: 32px; border-top: 1px dashed var(--ec-line-2); }
.ec-eservice { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--ec-tint); color: var(--ec-ink); transition: background .2s; }
.ec-eservice:hover { background: var(--ec-primary-soft); text-decoration: none; }
.ec-eservice > span:nth-child(2) { flex: 1; min-width: 0; }
.ec-eservice b { display: block; font-size: .92rem; }
.ec-eservice small { display: block; color: var(--ec-muted); font-size: .8rem; }
.ec-eservice > .ec-icon:last-child { color: var(--ec-muted); }
.ec-eservice__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ec-surface); color: var(--ec-primary-ink); box-shadow: var(--ec-shadow-sm); flex: none; }
.ec-eservice--local { background: var(--ec-deep); color: #fff; }
.ec-eservice--local:hover { background: var(--ec-primary); }
.ec-eservice--local small, .ec-eservice--local > .ec-icon:last-child { color: rgba(255,255,255,.7); }
.ec-eservice--local .ec-eservice__icon { background: rgba(255,255,255,.12); color: var(--ec-accent); }

/* ---------- Mot du maire ---------- */
.ec-mayor__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.ec-mayor__portrait { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 28px; overflow: visible; }
.ec-mayor__portrait img, .ec-mayor__placeholder { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; border-radius: 28px; }
.ec-mayor__placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: linear-gradient(160deg, var(--ec-primary), var(--ec-deep)); color: rgba(255,255,255,.75); font-weight: 600; font-size: .9rem; }
.ec-mayor__ring { position: absolute; inset: 18px -18px -18px 18px; border-radius: 28px; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--ec-accent) 50%, transparent) 0 2px, transparent 2px 12px); z-index: 0; }
.ec-mayor__quote { margin: 26px 0 30px; padding: 0 0 0 28px; border-left: 3px solid var(--ec-accent); position: relative; }
.ec-mayor__quote p { font-family: var(--ec-display); font-size: clamp(1.1rem, 1.6vw, 1.32rem); line-height: 1.6; color: var(--ec-ink-2); font-weight: 500; letter-spacing: -.005em; }
.ec-mayor__sign { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--ec-line); }
.ec-mayor__name { font-family: var(--ec-display); font-weight: 800; font-size: 1.2rem; }
.ec-mayor__role { color: var(--ec-muted); font-size: .9rem; }

/* ---------- Chiffres ---------- */
.ec-stats { position: relative; margin-top: -1px; background: var(--ec-primary); color: #fff; overflow: hidden; }
.ec-stats::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 100% 0%, color-mix(in srgb, var(--ec-accent) 35%, transparent), transparent 60%), radial-gradient(50% 120% at 0% 100%, color-mix(in srgb, var(--ec-deep) 60%, transparent), transparent 70%); }
.ec-stats__grid { position: relative; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); }
.ec-stat { display: flex; flex-direction: column; gap: 4px; padding: clamp(28px, 4vw, 48px) clamp(16px, 2.5vw, 32px); }
.ec-stat + .ec-stat { border-left: 1px solid rgba(255,255,255,.16); }
.ec-stat__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.14); margin-bottom: 14px; }
.ec-stat__value { font-family: var(--ec-display); font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.ec-stat__label { color: rgba(255,255,255,.85); font-weight: 550; }
.ec-stat__note { color: rgba(255,255,255,.55); font-size: .75rem; }

/* ---------- Actualités ---------- */
.ec-news { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 28px; }
.ec-news__feature-link { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 520px; height: 100%; border-radius: var(--ec-r-lg); overflow: hidden; color: #fff; isolation: isolate; background: var(--ec-deep); }
.ec-news__feature-link:hover { text-decoration: none; }
.ec-news__feature-media { position: absolute; inset: 0; z-index: -2; }
.ec-news__feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ec-ease); }
.ec-news__feature-link:hover img { transform: scale(1.05); }
.ec-news__feature-link::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 20%, color-mix(in srgb, var(--ec-deep) 94%, transparent) 88%); }
.ec-news__feature-body { padding: clamp(24px, 3vw, 40px); }
.ec-news__feature-body .ec-meta { color: var(--ec-accent); font-weight: 650; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; }
.ec-news__feature-title { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 800; margin: 10px 0 12px; text-wrap: balance; }
.ec-news__feature-excerpt { color: rgba(255,255,255,.8); margin-bottom: 18px; max-width: 60ch; }
.ec-news__list { display: flex; flex-direction: column; gap: 6px; }
.ec-row__link { display: grid; grid-template-columns: 132px 1fr; gap: 18px; align-items: center; padding: 12px; border-radius: var(--ec-r); color: var(--ec-ink); transition: background .2s; }
.ec-row__link:hover { background: var(--ec-tint); text-decoration: none; }
.ec-row__media { aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--ec-primary-soft); }
.ec-row__media img { width: 100%; height: 100%; object-fit: cover; }
.ec-row__title { font-size: 1.04rem; font-weight: 700; line-height: 1.35; margin-top: 4px; }
.ec-row__link:hover .ec-row__title { color: var(--ec-primary-ink); }

/* ---------- Cartes ---------- */
.ec-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.ec-card__link { display: flex; flex-direction: column; height: 100%; border-radius: var(--ec-r); overflow: hidden; background: var(--ec-surface); box-shadow: inset 0 0 0 1px var(--ec-line); color: var(--ec-ink); transition: transform .3s var(--ec-ease), box-shadow .3s; }
.ec-card__link:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--ec-line), var(--ec-shadow); text-decoration: none; }
.ec-card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--ec-primary-soft); display: grid; place-items: center; }
.ec-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ec-ease); }
.ec-card__link:hover .ec-card__media img { transform: scale(1.04); }
.ec-card__fallback { color: var(--ec-primary-ink); opacity: .5; }
.ec-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.ec-card__title { font-size: 1.12rem; font-weight: 700; line-height: 1.3; }
.ec-card__excerpt { color: var(--ec-muted); font-size: .93rem; }

/* ---------- Projets ---------- */
.ec-projects { overflow: hidden; }
.ec-projects__glow { position: absolute; width: 900px; height: 900px; right: -300px; top: -400px; background: radial-gradient(closest-side, color-mix(in srgb, var(--ec-primary) 55%, transparent), transparent); opacity: .7; pointer-events: none; }
.ec-projects .ec-container { position: relative; }
.ec-projects__kpis { display: flex; gap: clamp(20px, 3vw, 44px); margin: 0; }
.ec-projects__kpis div { display: flex; flex-direction: column-reverse; }
.ec-projects__kpis dt { color: rgba(255,255,255,.6); font-size: .82rem; font-weight: 550; }
.ec-projects__kpis dd { margin: 0; font-family: var(--ec-display); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.3rem); color: #fff; letter-spacing: -.02em; }
.ec-projects__kpis small { font-size: .9rem; color: rgba(255,255,255,.6); font-weight: 600; }
.ec-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.ec-filter__btn { padding: 9px 16px; border-radius: 999px; background: transparent; border: 0; box-shadow: inset 0 0 0 1px var(--ec-line-2); color: var(--ec-ink-2); font-weight: 600; font-size: .88rem; transition: all .2s; }
.ec-filter__btn:hover { box-shadow: inset 0 0 0 1.5px var(--ec-primary); color: var(--ec-primary-ink); text-decoration: none; }
.ec-filter__btn.is-active { background: var(--ec-primary); color: #fff; box-shadow: none; }
.ec-section--dark .ec-filter__btn { box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); color: rgba(255,255,255,.85); }
.ec-section--dark .ec-filter__btn.is-active { background: var(--ec-accent); color: #1a1300; }
.ec-projects__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ec-project { transition: opacity .3s, transform .3s; }
.ec-project.is-hidden { display: none; }
.ec-project__link { display: flex; flex-direction: column; height: 100%; border-radius: var(--ec-r); overflow: hidden; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); color: #fff; transition: transform .3s var(--ec-ease), background .3s; }
.ec-project__link:hover { transform: translateY(-4px); background: rgba(255,255,255,.1); text-decoration: none; }
.ec-project__media { position: relative; aspect-ratio: 16 / 9; background: rgba(255,255,255,.06); overflow: hidden; }
.ec-project__media img { width: 100%; height: 100%; object-fit: cover; }
.ec-project__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ec-project__title { font-size: 1.12rem; font-weight: 700; line-height: 1.3; color: inherit; }
.ec-project__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .85rem; color: rgba(255,255,255,.7); }
.ec-project__facts li { display: inline-flex; align-items: center; gap: 6px; }
.ec-progress { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 8px; }
.ec-progress__bar { flex: 1; height: 8px; border-radius: 99px; background: rgba(255,255,255,.14); overflow: hidden; }
.ec-progress__bar span { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--ec-accent), color-mix(in srgb, var(--ec-accent) 60%, #fff)); transition: width 1.4s var(--ec-ease); }
.is-visible .ec-progress__bar span, .ec-no-js .ec-progress__bar span { width: var(--w); }
.ec-progress__val { font-family: var(--ec-display); font-weight: 800; font-size: .95rem; font-variant-numeric: tabular-nums; min-width: 44px; text-align: right; }
.ec-projects__grid--light .ec-project__link { background: var(--ec-surface); color: var(--ec-ink); box-shadow: inset 0 0 0 1px var(--ec-line); }
.ec-projects__grid--light .ec-project__link:hover { box-shadow: inset 0 0 0 1px var(--ec-line), var(--ec-shadow); }
.ec-projects__grid--light .ec-project__facts { color: var(--ec-muted); }
.ec-projects__grid--light .ec-progress__bar { background: var(--ec-tint); box-shadow: inset 0 0 0 1px var(--ec-line); }
.ec-projects__grid--light .ec-progress__bar span { background: linear-gradient(90deg, var(--ec-primary), color-mix(in srgb, var(--ec-primary) 55%, var(--ec-accent))); }
.ec-status { position: absolute; top: 12px; left: 12px; padding: 5px 11px; border-radius: 99px; font-size: .74rem; font-weight: 700; background: #fff; color: #111; box-shadow: 0 4px 12px -4px rgba(0,0,0,.3); display: inline-flex; align-items: center; gap: 6px; }
.ec-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ec-status--etude { color: #6B7280; }
.ec-status--lance { color: #2563EB; }
.ec-status--en_cours { color: #D97706; }
.ec-status--livre { color: #059669; }
.ec-pagehead__meta .ec-status { position: static; }
.ec-pilier { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ec-accent); }
.ec-pilier::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: currentColor; transform: rotate(45deg); }
.ec-projects__grid--light .ec-pilier, .ec-pagehead .ec-pilier { color: var(--ec-primary-ink); }
.ec-pagehead .ec-pilier { color: var(--ec-accent); }

/* ---------- Vision 2060 ---------- */
.ec-vision__head { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; margin-bottom: clamp(32px, 5vw, 56px); }
.ec-vision__mark { width: clamp(120px, 14vw, 180px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--ec-green) 0 33.3%, var(--ec-yellow) 0 66.6%, var(--ec-red) 0); padding: 8px; position: relative; }
.ec-vision__mark span { width: 100%; height: 100%; border-radius: 50%; background: var(--ec-bg); display: grid; place-items: center; font-family: var(--ec-display); font-weight: 800; font-size: clamp(1.6rem, 2.8vw, 2.4rem); letter-spacing: -.04em; color: var(--ec-ink); }
.ec-vision__head .ec-h2 { max-width: 26ch; }
.ec-pillars { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: p; }
.ec-pillar { position: relative; padding: 26px 24px 24px; border-radius: var(--ec-r-lg); background: var(--ec-surface); box-shadow: inset 0 0 0 1px var(--ec-line); display: flex; flex-direction: column; gap: 10px; overflow: hidden; transition: transform .3s var(--ec-ease), box-shadow .3s; }
.ec-pillar:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--ec-line), var(--ec-shadow); }
.ec-pillar::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--c, var(--ec-primary)); }
.ec-pillar--paix { --c: #2563EB; }
.ec-pillar--gouvernance { --c: var(--ec-primary); }
.ec-pillar--prosperite { --c: #D97706; }
.ec-pillar--rayonnement { --c: #C0264A; }
.ec-pillar__num { position: absolute; right: 20px; top: 16px; font-family: var(--ec-display); font-weight: 800; font-size: 2.6rem; color: var(--ec-line); letter-spacing: -.04em; line-height: 1; }
.ec-pillar__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--c); }
:root[data-theme="dark"] .ec-pillar__icon { color: color-mix(in srgb, var(--c) 55%, #fff); }
.ec-pillar__title { font-size: 1.12rem; font-weight: 750; line-height: 1.25; margin-top: 8px; }
.ec-pillar__text { color: var(--ec-muted); font-size: .92rem; flex: 1; }
.ec-pillar__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: .9rem; color: var(--ec-ink); margin-top: 6px; }
.ec-pillar__link:hover { color: var(--c); text-decoration: none; }

/* ---------- Agenda ---------- */
.ec-agenda { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.ec-agenda__list { display: grid; gap: 10px; }
.ec-agenda__list--wide { margin-bottom: 32px; }
.ec-event__link { display: flex; align-items: center; gap: 18px; padding: 16px 18px; border-radius: var(--ec-r); background: var(--ec-surface); box-shadow: inset 0 0 0 1px var(--ec-line); color: var(--ec-ink); transition: transform .25s var(--ec-ease), box-shadow .25s; }
.ec-event__link:hover { transform: translateX(4px); box-shadow: inset 0 0 0 1.5px var(--ec-primary); text-decoration: none; }
.ec-event__date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 64px; height: 70px; border-radius: 14px; background: var(--ec-primary-soft); color: var(--ec-primary-ink); font-size: .75rem; text-transform: uppercase; font-weight: 700; letter-spacing: .06em; flex: none; }
.ec-event__date b { font-family: var(--ec-display); font-size: 1.7rem; line-height: 1; letter-spacing: -.03em; }
.ec-event__body { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ec-event__type { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ec-primary-ink); }
.ec-event__type--conseil { color: #2563EB; }
.ec-event__type--culture { color: #C0264A; }
.ec-event__type--sante { color: #059669; }
.ec-event__type--economie { color: #D97706; }
.ec-event__title { font-family: var(--ec-display); font-weight: 700; font-size: 1.06rem; line-height: 1.3; }
.ec-event__meta { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--ec-muted); }
.ec-event__arrow { color: var(--ec-muted); }
.ec-council { position: sticky; top: calc(var(--ec-header-h) + 20px); padding: 28px; border-radius: var(--ec-r-lg); color: #fff; background: radial-gradient(100% 100% at 100% 0%, color-mix(in srgb, var(--ec-accent) 32%, transparent), transparent 55%), linear-gradient(160deg, var(--ec-primary), var(--ec-deep)); box-shadow: var(--ec-shadow-lg); }
.ec-council__title { color: #fff; font-size: 1.4rem; font-weight: 800; }
.ec-council__date { color: rgba(255,255,255,.82); margin: 8px 0 20px; font-weight: 550; }
.ec-countdown { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
.ec-countdown div { background: rgba(255,255,255,.1); border-radius: 14px; padding: 12px 8px; text-align: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.ec-countdown b { display: block; font-family: var(--ec-display); font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ec-countdown span { font-size: .75rem; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .08em; }
.ec-council__text { font-size: .9rem; color: rgba(255,255,255,.78); margin-bottom: 20px; }
.ec-month { font-size: 1.3rem; margin: 8px 0 14px; color: var(--ec-ink); }
.ec-month::first-letter { text-transform: uppercase; }
.ec-past { margin-top: 16px; }
.ec-past summary { cursor: pointer; font-weight: 650; color: var(--ec-primary-ink); padding: 12px 0; }
.ec-past .ec-event__link { opacity: .7; }

/* ---------- Découvrir ---------- */
.ec-mosaic { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 280px 280px; gap: 16px; }
.ec-mosaic__item { position: relative; border-radius: var(--ec-r-lg); overflow: hidden; display: flex; align-items: flex-end; color: #fff; isolation: isolate; background: var(--ec-deep); }
.ec-mosaic__item:first-child { grid-row: span 2; }
.ec-mosaic__item:nth-child(4) { grid-column: span 2; }
.ec-mosaic__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ec-ease); }
.ec-mosaic__item::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.75)); }
.ec-mosaic__item:hover { text-decoration: none; }
.ec-mosaic__item:hover img { transform: scale(1.06); }
.ec-mosaic__body { padding: 22px; display: flex; flex-direction: column; gap: 4px; }
.ec-mosaic__cat { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ec-accent); }
.ec-mosaic__title { font-family: var(--ec-display); font-weight: 800; font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.2; }

/* ---------- Transparence ---------- */
.ec-transp { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.ec-transp__intro .ec-chips { margin-top: 24px; }
.ec-transp__docs .ec-link-arrow { margin-top: 18px; }
.ec-docs { list-style: none; display: grid; gap: 10px; }
.ec-doc { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: var(--ec-r); background: var(--ec-surface); box-shadow: inset 0 0 0 1px var(--ec-line); transition: box-shadow .2s; }
.ec-doc:hover { box-shadow: inset 0 0 0 1.5px var(--ec-primary); }
.ec-doc__icon { position: relative; display: grid; place-items: center; width: 50px; height: 56px; border-radius: 10px; background: color-mix(in srgb, #E8112D 10%, var(--ec-surface)); color: #C8102E; flex: none; }
.ec-doc__icon small { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); background: #C8102E; color: #fff; font-size: .6rem; font-weight: 800; padding: 1px 6px; border-radius: 4px; letter-spacing: .04em; }
.ec-doc__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ec-doc__title { font-weight: 700; line-height: 1.35; }
.ec-doc__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: .82rem; color: var(--ec-muted); }
.ec-doc__dl { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--ec-primary-soft); color: var(--ec-primary-ink); font-weight: 650; font-size: .85rem; flex: none; }
.ec-doc__dl:hover { background: var(--ec-primary); color: #fff; text-decoration: none; }
.ec-doc__dl.is-pending { background: var(--ec-tint); color: var(--ec-muted); }
.ec-docs-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; }
.ec-docs-filters { position: sticky; top: calc(var(--ec-header-h) + 20px); padding: 20px; border-radius: var(--ec-r); background: var(--ec-tint); }
.ec-docs-filters__title { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ec-muted); margin: 0 0 10px; }
.ec-docs-filters__title:not(:first-child) { margin-top: 24px; }
.ec-docs-filters ul { list-style: none; display: grid; gap: 2px; }
.ec-docs-filters li a { display: flex; justify-content: space-between; padding: 9px 12px; border-radius: 10px; color: var(--ec-ink-2); font-weight: 550; font-size: .92rem; }
.ec-docs-filters li a span { color: var(--ec-muted); font-size: .8rem; }
.ec-docs-filters li a:hover { background: var(--ec-surface); text-decoration: none; }
.ec-docs-filters li a.is-active { background: var(--ec-surface); color: var(--ec-primary-ink); box-shadow: var(--ec-shadow-sm), inset 3px 0 0 var(--ec-primary); }
.ec-budget { padding: clamp(22px, 3vw, 32px); border-radius: var(--ec-r-lg); background: var(--ec-surface); box-shadow: inset 0 0 0 1px var(--ec-line); margin-bottom: 40px; }
.ec-budget__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.ec-budget__head .ec-h2 { margin: 0; }
.ec-budget__bar { display: flex; height: 18px; border-radius: 99px; overflow: hidden; gap: 3px; }
.ec-budget__seg--0 { background: var(--ec-primary); }
.ec-budget__seg--1 { background: var(--ec-accent); }
.ec-budget__seg--2 { background: #2563EB; }
.ec-budget__seg--3 { background: #C0264A; }
.ec-budget__seg--4 { background: #6B7280; }
.ec-budget__legend { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 18px; font-size: .9rem; }
.ec-budget__legend li { display: flex; align-items: center; gap: 8px; color: var(--ec-ink-2); }
.ec-budget__legend b { font-family: var(--ec-display); }
.ec-budget__legend small { color: var(--ec-muted); }
.ec-budget__dot { width: 12px; height: 12px; border-radius: 4px; }

/* ---------- Contact ---------- */
.ec-contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: stretch; }
.ec-contact__list { list-style: none; display: grid; gap: 18px; margin: 28px 0 32px; }
.ec-contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.ec-contact__list b { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ec-muted); margin-bottom: 2px; }
.ec-contact__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--ec-surface); color: var(--ec-primary-ink); box-shadow: var(--ec-shadow-sm), inset 0 0 0 1px var(--ec-line); flex: none; }
.ec-contact__sub { font-weight: 700; margin-bottom: 12px; }
.ec-map { min-height: 440px; height: 100%; border-radius: var(--ec-r-lg); overflow: hidden; background: var(--ec-surface); box-shadow: inset 0 0 0 1px var(--ec-line); z-index: 0; }
.ec-map--wide { min-height: 420px; margin-top: 32px; }
.ec-map--static { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 32px; color: var(--ec-muted); background: repeating-linear-gradient(45deg, var(--ec-tint) 0 12px, var(--ec-surface) 12px 24px); }
.ec-marker { width: 44px; height: 44px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--ec-primary); box-shadow: 0 10px 20px -8px rgba(0,0,0,.5); display: grid; place-items: center; border: 3px solid #fff; }
.ec-marker::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--ec-accent); }
.leaflet-popup-content-wrapper { border-radius: 12px; font-family: var(--ec-font); }
.ec-contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 48px; }
.ec-ccard { display: flex; flex-direction: column; gap: 4px; padding: 22px; border-radius: var(--ec-r); background: var(--ec-surface); box-shadow: inset 0 0 0 1px var(--ec-line); color: var(--ec-ink); }
a.ec-ccard:hover { box-shadow: inset 0 0 0 1.5px var(--ec-primary); text-decoration: none; }
.ec-ccard__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--ec-primary-soft); color: var(--ec-primary-ink); margin-bottom: 12px; }
.ec-ccard__label { font-size: .8rem; color: var(--ec-muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.ec-ccard__value { font-weight: 650; }
.ec-callout { margin-top: 18px; padding: 18px 20px; border-radius: var(--ec-r); background: var(--ec-tint); box-shadow: inset 3px 0 0 var(--ec-primary); display: grid; gap: 8px; }

/* ---------- En-tête de page ---------- */
.ec-pagehead { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: radial-gradient(70% 120% at 100% 0%, color-mix(in srgb, var(--ec-primary) 70%, transparent), transparent 60%), var(--ec-deep); padding: clamp(40px, 6vw, 72px) 0 clamp(44px, 6vw, 80px); }
.ec-pagehead.has-image { padding-top: clamp(80px, 12vw, 160px); }
.ec-pagehead__bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.ec-pagehead.has-image::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, color-mix(in srgb, var(--ec-deep) 95%, transparent) 5%, color-mix(in srgb, var(--ec-deep) 40%, transparent)); }
.ec-pagehead__title { color: #fff; font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.035em; max-width: 24ch; text-wrap: balance; }
.ec-pagehead__lead { color: rgba(255,255,255,.8); font-size: clamp(1rem, 1.4vw, 1.15rem); max-width: 64ch; margin-top: 16px; }
.ec-pagehead__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 20px; color: rgba(255,255,255,.82); font-size: .92rem; }
.ec-pagehead__meta > span { display: inline-flex; align-items: center; gap: 8px; }
.ec-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: .84rem; margin-bottom: 22px; }
.ec-crumbs li { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.65); }
.ec-crumbs li + li::before { content: "/"; opacity: .45; }
.ec-crumbs a { color: rgba(255,255,255,.85); }
.ec-crumbs [aria-current] { color: #fff; font-weight: 600; }

/* ---------- Article ---------- */
.ec-article { padding-block: clamp(32px, 5vw, 56px); }
.ec-article__cover { margin: 0 0 40px; border-radius: var(--ec-r-lg); overflow: hidden; margin-top: calc(-1 * clamp(32px, 5vw, 56px) - 24px); position: relative; box-shadow: var(--ec-shadow-lg); }
.ec-article__cover img { width: 100%; max-height: 560px; object-fit: cover; }
.ec-article__layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 56px; }
.ec-article__aside { position: relative; }
.ec-prose { font-size: 1.07rem; line-height: 1.75; color: var(--ec-ink-2); max-width: 72ch; }
.ec-prose--page { margin-inline: auto; }
.ec-prose > * + * { margin-top: 1.1em; }
.ec-prose h2 { font-size: 1.6rem; margin-top: 1.8em; color: var(--ec-ink); }
.ec-prose h3 { font-size: 1.25rem; margin-top: 1.5em; color: var(--ec-ink); }
.ec-prose ul, .ec-prose ol { padding-left: 1.3em; }
.ec-prose li + li { margin-top: .4em; }
.ec-prose li::marker { color: var(--ec-primary); }
.ec-prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.ec-prose blockquote { border-left: 3px solid var(--ec-accent); margin-left: 0; padding-left: 20px; font-style: italic; }
.ec-prose img { border-radius: var(--ec-r); }
.ec-prose .wp-block-button__link { background: var(--ec-primary); color: #fff; border-radius: 999px; padding: 12px 22px; text-decoration: none; font-weight: 650; }
.ec-communique { padding: 28px; border-radius: var(--ec-r); background: var(--ec-tint); box-shadow: inset 0 4px 0 var(--ec-primary); }
.ec-communique__kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 800; color: var(--ec-primary-ink); }
.ec-figures h3 { font-size: 2.4rem; color: var(--ec-primary-ink); }
.ec-share { display: flex; flex-direction: column; gap: 8px; position: sticky; top: calc(var(--ec-header-h) + 24px); }
.ec-share__label { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ec-muted); }
.ec-share__btn { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; background: var(--ec-tint); color: var(--ec-ink); font-weight: 600; font-size: .9rem; border: 0; text-align: left; }
.ec-share__btn:hover { background: var(--ec-primary-soft); text-decoration: none; }
.ec-share__btn--wa { background: #25D366; color: #06331a; }
.ec-share__btn--wa:hover { background: #1ebe5b; }
.ec-svc-aside .ec-share { position: static; margin-top: 16px; }

/* ---------- Démarches ---------- */
.ec-svc-toolbar { display: grid; gap: 18px; margin-bottom: 32px; }
.ec-searchbar { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 20px; border-radius: 999px; background: var(--ec-surface); box-shadow: inset 0 0 0 1.5px var(--ec-line-2); color: var(--ec-muted); max-width: 720px; transition: box-shadow .2s; }
.ec-searchbar:focus-within { box-shadow: inset 0 0 0 2px var(--ec-primary), 0 0 0 5px color-mix(in srgb, var(--ec-primary) 14%, transparent); }
.ec-searchbar input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 1.05rem; padding: 10px 0; min-width: 0; }
.ec-searchbar--inline { max-width: 560px; padding-right: 20px; }
.ec-svc-toolbar .ec-filter { margin: 0; }
.ec-svcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 16px; }
.ec-svc { display: flex; gap: 18px; padding: 22px; border-radius: var(--ec-r); background: var(--ec-surface); box-shadow: inset 0 0 0 1px var(--ec-line); color: var(--ec-ink); transition: transform .25s var(--ec-ease), box-shadow .25s; }
.ec-svc:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1.5px var(--ec-primary), var(--ec-shadow); text-decoration: none; }
.ec-svc.is-hidden { display: none; }
.ec-svc__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--ec-primary-soft); color: var(--ec-primary-ink); flex: none; }
.ec-svc__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ec-svc__top { display: flex; flex-wrap: wrap; gap: 6px; }
.ec-svc__title { font-family: var(--ec-display); font-weight: 750; font-size: 1.12rem; line-height: 1.3; }
.ec-svc__excerpt { color: var(--ec-muted); font-size: .9rem; }
.ec-svc__facts { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .82rem; color: var(--ec-ink-2); font-weight: 550; margin-top: 4px; }
.ec-svc__facts span { display: inline-flex; align-items: center; gap: 6px; }
.ec-svc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.ec-svc-main { display: grid; gap: 32px; min-width: 0; }
.ec-sticky { position: sticky; top: calc(var(--ec-header-h) + 20px); display: grid; gap: 14px; }
.ec-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; }
.ec-facts > div { padding: 18px; border-radius: var(--ec-r); background: var(--ec-tint); }
.ec-facts dt { display: flex; align-items: center; gap: 8px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--ec-muted); margin-bottom: 6px; }
.ec-facts dt .ec-icon { color: var(--ec-primary-ink); }
.ec-facts dd { margin: 0; font-weight: 650; line-height: 1.4; }
.ec-facts--stack { grid-template-columns: 1fr; gap: 0; border-radius: var(--ec-r); overflow: hidden; box-shadow: inset 0 0 0 1px var(--ec-line); background: var(--ec-surface); }
.ec-facts--stack > div { background: transparent; border-radius: 0; border-bottom: 1px solid var(--ec-line); }
.ec-facts--stack > div:last-child { border-bottom: 0; }
.ec-block__title { display: flex; align-items: center; gap: 12px; font-size: 1.35rem; margin-bottom: 18px; }
.ec-block__title .ec-icon { color: var(--ec-primary-ink); }
.ec-checklist { list-style: none; display: grid; gap: 8px; }
.ec-checklist label { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--ec-surface); box-shadow: inset 0 0 0 1px var(--ec-line); cursor: pointer; transition: all .2s; }
.ec-checklist input { appearance: none; width: 22px; height: 22px; border-radius: 7px; box-shadow: inset 0 0 0 2px var(--ec-line-2); flex: none; margin: 1px 0 0; display: grid; place-items: center; cursor: pointer; transition: all .2s; }
.ec-checklist input:checked { background: var(--ec-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='%23fff' stroke-width='2.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; box-shadow: none; }
.ec-checklist label:has(input:checked) { background: var(--ec-primary-soft); box-shadow: none; }
.ec-checklist label:has(input:checked) span { text-decoration: line-through; color: var(--ec-muted); }
.ec-hint { font-size: .84rem; color: var(--ec-muted); margin-top: 10px; }
.ec-steps { list-style: none; counter-reset: s; display: grid; gap: 0; }
.ec-steps li { counter-increment: s; position: relative; padding: 0 0 22px 56px; min-height: 40px; display: flex; align-items: center; font-weight: 550; }
.ec-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--ec-primary); color: #fff; font-family: var(--ec-display); font-weight: 800; }
.ec-steps li:not(:last-child)::after { content: ""; position: absolute; left: 18px; top: 40px; bottom: 2px; width: 2px; background: var(--ec-line-2); }
.ec-panel { padding: 22px; border-radius: var(--ec-r); background: var(--ec-tint); display: grid; gap: 12px; }
.ec-panel__title { display: flex; align-items: center; gap: 10px; font-family: var(--ec-display); font-weight: 750; font-size: 1.05rem; }
.ec-panel--primary { background: linear-gradient(160deg, var(--ec-primary), var(--ec-deep)); color: #fff; }
.ec-panel--primary p { color: rgba(255,255,255,.85); }
.ec-panel--dark { background: var(--ec-deep); color: #fff; }
.ec-panel__date { font-family: var(--ec-display); font-weight: 700; color: #fff !important; font-size: 1.1rem; }
.ec-panel__date b { display: block; font-size: 3rem; line-height: 1; letter-spacing: -.04em; }

/* ---------- Suivi projet ---------- */
.ec-tracker { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; padding: 28px; border-radius: var(--ec-r-lg); background: var(--ec-tint); }
.ec-tracker__ring { position: relative; width: 150px; height: 150px; }
.ec-tracker__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ec-tracker__ring circle { fill: none; stroke-width: 10; }
.ec-tracker__bg { stroke: var(--ec-line-2); }
.ec-tracker__fg { stroke: var(--ec-primary); stroke-linecap: round; transition: stroke-dasharray 1.4s var(--ec-ease); }
.ec-tracker__ring > span { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: .78rem; color: var(--ec-muted); font-weight: 600; }
.ec-tracker__ring b { font-family: var(--ec-display); font-size: 2.1rem; color: var(--ec-ink); letter-spacing: -.03em; line-height: 1; }
.ec-timeline { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.ec-timeline li { position: relative; padding-top: 30px; font-size: .86rem; font-weight: 600; color: var(--ec-muted); }
.ec-timeline li::before { content: ""; position: absolute; top: 0; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--ec-surface); box-shadow: inset 0 0 0 3px var(--ec-line-2); z-index: 1; }
.ec-timeline li::after { content: ""; position: absolute; top: 9px; left: 20px; right: 0; height: 2px; background: var(--ec-line-2); }
.ec-timeline li:last-child::after { display: none; }
.ec-timeline li.is-done { color: var(--ec-ink); }
.ec-timeline li.is-done::before { background: var(--ec-primary); box-shadow: none; }
.ec-timeline li.is-done::after { background: var(--ec-primary); }
.ec-timeline li.is-current::after { background: var(--ec-line-2); }
.ec-timeline li.is-current::before { box-shadow: 0 0 0 6px color-mix(in srgb, var(--ec-primary) 22%, transparent); }
.ec-timeline--light { grid-template-columns: repeat(3, 1fr); margin: 16px 0; }
.ec-timeline--light li { color: rgba(255,255,255,.55); }
.ec-timeline--light li.is-done { color: #fff; }
.ec-timeline--light li::before { background: var(--ec-deep); box-shadow: inset 0 0 0 3px rgba(255,255,255,.3); }
.ec-timeline--light li::after { background: rgba(255,255,255,.2); }
.ec-timeline--light li.is-done::before { background: var(--ec-accent); }
.ec-timeline--light li.is-done::after { background: var(--ec-accent); }

/* ---------- Signalement ---------- */
.ec-report { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.ec-report__aside { display: grid; gap: 14px; position: sticky; top: calc(var(--ec-header-h) + 20px); }
.ec-form { display: grid; gap: 28px; }
.ec-form__step { border: 0; padding: 0; margin: 0; }
.ec-form__step legend { display: flex; align-items: center; gap: 12px; font-family: var(--ec-display); font-weight: 750; font-size: 1.25rem; margin-bottom: 16px; padding: 0; }
.ec-form__step legend > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ec-primary); color: #fff; font-size: .95rem; }
.ec-form__step legend small { font-family: var(--ec-font); font-weight: 500; color: var(--ec-muted); font-size: .9rem; }
.ec-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.ec-cat input { position: absolute; opacity: 0; pointer-events: none; }
.ec-cat__box { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 16px; border-radius: 14px; background: var(--ec-surface); box-shadow: inset 0 0 0 1px var(--ec-line-2); font-weight: 600; font-size: .9rem; line-height: 1.3; cursor: pointer; transition: all .2s; }
.ec-cat__box .ec-icon { color: var(--ec-primary-ink); }
.ec-cat:hover .ec-cat__box { box-shadow: inset 0 0 0 1.5px var(--ec-primary); }
.ec-cat input:checked + .ec-cat__box { background: var(--ec-primary); color: #fff; box-shadow: 0 10px 24px -12px var(--ec-primary); }
.ec-cat input:checked + .ec-cat__box .ec-icon { color: var(--ec-accent); }
.ec-cat input:focus-visible + .ec-cat__box { outline: 3px solid var(--ec-accent); outline-offset: 2px; }
.ec-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ec-input { display: grid; gap: 8px; }
.ec-input--full { grid-column: 1 / -1; }
.ec-input label { font-weight: 650; font-size: .92rem; }
.ec-input abbr { color: var(--ec-red); text-decoration: none; }
.ec-input input, .ec-input textarea, .ec-track input { width: 100%; padding: 14px 16px; border-radius: 12px; border: 0; background: var(--ec-surface); box-shadow: inset 0 0 0 1.5px var(--ec-line-2); font-size: 1rem; transition: box-shadow .2s; }
.ec-input input:focus, .ec-input textarea:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--ec-primary), 0 0 0 4px color-mix(in srgb, var(--ec-primary) 14%, transparent); }
.ec-upload { display: flex !important; align-items: center; gap: 14px; padding: 18px; border-radius: 14px; border: 2px dashed var(--ec-line-2); cursor: pointer; font-weight: 500 !important; color: var(--ec-muted); }
.ec-upload:hover { border-color: var(--ec-primary); color: var(--ec-ink); }
.ec-upload input { width: auto; flex: 1; padding: 0; box-shadow: none; background: transparent; font-size: .85rem; }
.ec-upload b { color: var(--ec-ink); }
.ec-hp { position: absolute; left: -9999px; }
.ec-formerror { padding: 14px 18px; border-radius: 12px; background: color-mix(in srgb, var(--ec-red) 10%, var(--ec-surface)); color: #9F1239; font-weight: 600; margin-bottom: 20px; }
.ec-success { text-align: center; padding: clamp(32px, 5vw, 56px); border-radius: var(--ec-r-lg); background: var(--ec-tint); display: grid; justify-items: center; gap: 14px; }
.ec-success__icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--ec-primary); color: #fff; box-shadow: 0 0 0 10px color-mix(in srgb, var(--ec-primary) 15%, transparent); animation: ec-pop .5s var(--ec-ease); }
.ec-success h2 { font-size: 1.6rem; }
.ec-success p { color: var(--ec-muted); max-width: 46ch; }
.ec-success__ticket { display: inline-flex !important; align-items: center; gap: 14px; font-family: var(--ec-display); font-size: 1.6rem; font-weight: 800; letter-spacing: .04em; color: var(--ec-ink) !important; padding: 14px 22px; border-radius: 14px; background: var(--ec-surface); box-shadow: inset 0 0 0 2px dashed var(--ec-primary); border: 2px dashed var(--ec-primary); cursor: pointer; }
.ec-success__ticket span { display: inline-flex; align-items: center; gap: 6px; font-family: var(--ec-font); font-size: .8rem; font-weight: 650; color: var(--ec-primary-ink); letter-spacing: 0; }
.ec-track { display: flex; gap: 8px; }
.ec-track input { background: rgba(255,255,255,.08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); text-transform: uppercase; font-family: ui-monospace, monospace; }
.ec-track input::placeholder { color: rgba(255,255,255,.45); }
.ec-trackres { padding-top: 6px; border-top: 1px solid rgba(255,255,255,.12); }
.ec-trackres__title { font-weight: 700; }
.ec-trackres__date { font-size: .85rem; color: rgba(255,255,255,.65); }
.ec-trackres__rep { font-size: .9rem; color: rgba(255,255,255,.85); padding: 12px; border-radius: 10px; background: rgba(255,255,255,.08); }
.ec-trackres__none { color: #FCA5A5; font-size: .9rem; }
.ec-urg-inline { display: flex; gap: 8px; }
.ec-urg-inline a { flex: 1; display: flex; flex-direction: column; padding: 10px 14px; border-radius: 12px; background: var(--ec-surface); color: var(--ec-ink); font-size: .82rem; font-weight: 600; box-shadow: inset 0 0 0 1px var(--ec-line); }
.ec-urg-inline b { font-family: var(--ec-display); font-size: 1.5rem; color: var(--ec-red); }
.ec-how { list-style: none; counter-reset: h; display: grid; gap: 12px; padding: 22px; border-radius: var(--ec-r); box-shadow: inset 0 0 0 1px var(--ec-line); }
.ec-how li { counter-increment: h; position: relative; padding-left: 36px; font-size: .9rem; color: var(--ec-muted); }
.ec-how li::before { content: counter(h); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--ec-primary-soft); color: var(--ec-primary-ink); font-weight: 800; font-size: .8rem; display: grid; place-items: center; }
.ec-how b { color: var(--ec-ink); }

/* ---------- Arrondissements & personnes ---------- */
.ec-arrs { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.ec-arr { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 22px; border-radius: var(--ec-r); background: var(--ec-surface); box-shadow: inset 0 0 0 1px var(--ec-line); color: var(--ec-ink); transition: all .25s; }
.ec-arr:hover { box-shadow: inset 0 0 0 1.5px var(--ec-primary); transform: translateY(-3px); text-decoration: none; }
.ec-arr__num { font-family: var(--ec-display); font-weight: 800; color: var(--ec-primary-ink); font-size: .9rem; }
.ec-arr__name { font-family: var(--ec-display); font-weight: 750; font-size: 1.2rem; }
.ec-arr__chef { font-size: .85rem; color: var(--ec-muted); }
.ec-arr__arrow { position: absolute; top: 20px; right: 20px; color: var(--ec-muted); }
.ec-people-group + .ec-people-group { margin-top: 56px; }
.ec-people { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 20px; }
.ec-person { text-align: center; padding: 24px 18px; border-radius: var(--ec-r); background: var(--ec-surface); box-shadow: inset 0 0 0 1px var(--ec-line); }
.ec-person__photo { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 16px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(160deg, var(--ec-primary), var(--ec-deep)); color: #fff; font-family: var(--ec-display); font-weight: 800; font-size: 2rem; box-shadow: 0 0 0 4px var(--ec-surface), 0 0 0 6px color-mix(in srgb, var(--ec-accent) 60%, transparent); }
.ec-person__photo img { width: 100%; height: 100%; object-fit: cover; }
.ec-person__name { font-family: var(--ec-display); font-weight: 750; font-size: 1.05rem; }
.ec-person__role { font-size: .88rem; color: var(--ec-muted); margin-top: 4px; }
.ec-person__mail { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: .85rem; font-weight: 650; }

/* ---------- Recherche ---------- */
.ec-results { list-style: none; display: grid; gap: 10px; margin-top: 32px; }
.ec-result { display: flex; align-items: center; gap: 18px; padding: 18px 20px; border-radius: var(--ec-r); background: var(--ec-surface); box-shadow: inset 0 0 0 1px var(--ec-line); color: var(--ec-ink); }
.ec-result:hover { box-shadow: inset 0 0 0 1.5px var(--ec-primary); text-decoration: none; }
.ec-result__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--ec-primary-soft); color: var(--ec-primary-ink); flex: none; }
.ec-result__body { flex: 1; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.ec-result__title { font-family: var(--ec-display); font-weight: 750; font-size: 1.1rem; }
.ec-result__excerpt { color: var(--ec-muted); font-size: .9rem; }
.ec-empty { text-align: center; padding: 48px 24px; border-radius: var(--ec-r-lg); background: var(--ec-tint); display: grid; justify-items: center; gap: 12px; color: var(--ec-muted); }
.ec-empty--inline { padding: 24px; margin-top: 16px; }
.ec-empty__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--ec-surface); color: var(--ec-primary-ink); }
.ec-empty__title { font-family: var(--ec-display); font-weight: 750; font-size: 1.25rem; color: var(--ec-ink); }
.ec-404 { padding-block: clamp(64px, 12vw, 140px); text-align: center; }
.ec-404__inner { display: grid; justify-items: center; gap: 16px; }
.ec-404__code { font-family: var(--ec-display); font-weight: 800; font-size: clamp(5rem, 16vw, 10rem); line-height: 1; letter-spacing: -.06em; background: linear-gradient(90deg, var(--ec-green), var(--ec-yellow), var(--ec-red)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ec-404 .ec-h2 { max-width: none; }
.ec-404 .ec-searchbar { width: 100%; margin: 12px 0; }
.ec-pagination ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 48px; }
.ec-pagination a, .ec-pagination span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 12px; font-weight: 650; color: var(--ec-ink); box-shadow: inset 0 0 0 1px var(--ec-line); }
.ec-pagination .current { background: var(--ec-primary); color: #fff; box-shadow: none; }
.ec-pagination a:hover { box-shadow: inset 0 0 0 1.5px var(--ec-primary); text-decoration: none; }

/* ---------- Vision page ---------- */
.ec-vhero { position: relative; isolation: isolate; overflow: hidden; color: #fff; padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); background: radial-gradient(60% 100% at 90% 10%, color-mix(in srgb, var(--ec-accent) 30%, transparent), transparent 60%), radial-gradient(70% 100% at 0% 100%, color-mix(in srgb, var(--ec-primary) 70%, transparent), transparent 60%), var(--ec-deep); }
.ec-vhero__title { font-size: clamp(3rem, 10vw, 7.5rem); font-weight: 800; letter-spacing: -.05em; line-height: .95; color: #fff; }
.ec-vhero__title em { font-style: normal; background: linear-gradient(90deg, var(--ec-yellow), #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ec-vhero__sub { font-size: clamp(1.1rem, 2vw, 1.4rem); color: rgba(255,255,255,.82); margin-top: 16px; max-width: 46ch; }
.ec-vtimeline { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 56px; border-top: 2px solid rgba(255,255,255,.2); }
.ec-vtimeline li { position: relative; padding: 24px 20px 0 0; display: grid; gap: 6px; }
.ec-vtimeline li::before { content: ""; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--ec-deep); box-shadow: inset 0 0 0 3px #fff; }
.ec-vtimeline b { font-family: var(--ec-display); font-size: 1.4rem; letter-spacing: -.02em; }
.ec-vtimeline span { font-size: .9rem; color: rgba(255,255,255,.72); }
.ec-vtimeline .is-goal::before { background: var(--ec-accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--ec-accent) 30%, transparent); }
.ec-vtimeline .is-goal b { color: var(--ec-accent); }

/* ---------- Pied de page ---------- */
.ec-footer { background: #070B10; color: rgba(255,255,255,.72); font-size: .93rem; position: relative; }
.ec-footer__flag { display: flex; height: 5px; }
.ec-footer__flag i { flex: 1; }
.ec-footer__flag i:nth-child(1) { background: var(--ec-green); }
.ec-footer__flag i:nth-child(2) { background: var(--ec-yellow); }
.ec-footer__flag i:nth-child(3) { background: var(--ec-red); }
.ec-footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-block: clamp(48px, 7vw, 80px) 48px; }
.ec-footer__name { font-family: var(--ec-display); font-weight: 800; font-size: 1.5rem; color: #fff; letter-spacing: -.02em; }
.ec-footer__slogan { margin-top: 10px; max-width: 32ch; }
.ec-footer__title { color: #fff; font-weight: 700; margin-bottom: 16px; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; }
.ec-footer__links, .ec-footer__info { list-style: none; display: grid; gap: 10px; }
.ec-footer__info li { display: flex; gap: 10px; align-items: flex-start; }
.ec-footer__info .ec-icon { margin-top: 3px; color: var(--ec-accent); }
.ec-footer a { color: rgba(255,255,255,.78); }
.ec-footer a:hover { color: #fff; }
.ec-footer__links a { display: inline-flex; align-items: center; gap: 6px; }
.ec-socials { list-style: none; display: flex; gap: 8px; margin-top: 22px; }
.ec-socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.08); color: #fff; transition: background .2s; }
.ec-socials a:hover { background: var(--ec-primary); }
.ec-socials--dark a { background: var(--ec-tint); color: var(--ec-ink); }
.ec-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding-block: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .84rem; }
.ec-footer__legal { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.ec-footer__powered strong { color: #fff; }

/* ---------- Sélecteur de démonstration ---------- */
.ec-demo { position: fixed; left: 20px; bottom: 20px; z-index: 80; }
.ec-demo__toggle { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; border: 0; background: #0A0F14; color: #fff; font-weight: 650; font-size: .88rem; box-shadow: 0 16px 40px -12px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.12); }
.ec-demo__toggle .ec-icon { color: var(--ec-accent); }
.ec-demo__panel { position: absolute; left: 0; bottom: calc(100% + 12px); width: min(360px, calc(100vw - 40px)); max-height: 70vh; overflow: auto; padding: 18px; border-radius: 20px; background: var(--ec-surface); box-shadow: 0 0 0 1px var(--ec-line), 0 30px 60px -20px rgba(0,0,0,.45); animation: ec-rise .25s var(--ec-ease); }
.ec-demo__title { font-family: var(--ec-display); font-weight: 800; font-size: 1.1rem; }
.ec-demo__text { font-size: .85rem; color: var(--ec-muted); margin: 4px 0 14px; }
.ec-demo__list { list-style: none; display: grid; gap: 4px; }
.ec-demo__list a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--ec-ink); }
.ec-demo__list a:hover { background: var(--ec-tint); text-decoration: none; }
.ec-demo__list a.is-active { background: color-mix(in srgb, var(--p) 12%, transparent); box-shadow: inset 0 0 0 1.5px var(--p); }
.ec-demo__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--p); box-shadow: 0 0 0 3px color-mix(in srgb, var(--p) 25%, transparent); flex: none; }
.ec-demo__list b { display: block; font-size: .95rem; }
.ec-demo__list small { display: block; color: var(--ec-muted); font-size: .78rem; }

/* ---------- Animations ---------- */
@keyframes ec-fade { from { opacity: 0; } }
@keyframes ec-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes ec-pop { from { transform: scale(.4); opacity: 0; } }
@keyframes ec-kenburns { to { transform: scale(1); } }
.ec-reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ec-ease), transform .8s var(--ec-ease); }
.ec-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.ec-reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
	.ec-menu > li > a { padding: 10px 9px; font-size: .9rem; }
	.ec-pillars { grid-template-columns: repeat(2, 1fr); }
	.ec-eservices { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1080px) {
	:root { --ec-header-h: 68px; }
	.ec-burger { display: inline-grid; }
	.ec-nav { position: fixed; inset: calc(var(--ec-header-h) + 0px) 0 0 0; background: var(--ec-bg); padding: 16px var(--ec-gutter) 32px; flex-direction: column; justify-content: flex-start; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all .25s var(--ec-ease); z-index: 49; }
	.ec-nav.is-open { opacity: 1; visibility: visible; transform: none; }
	.ec-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.ec-menu > li { border-bottom: 1px solid var(--ec-line); }
	.ec-menu > li > a { padding: 16px 4px; font-size: 1.1rem; font-family: var(--ec-display); font-weight: 700; color: var(--ec-ink); width: 100%; border-radius: 0; }
	.ec-menu > li > a:hover { background: transparent; }
	.ec-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 12px 8px; min-width: 0; background: transparent; }
	.ec-menu .menu-item-has-children > a::after { display: none; }
	.ec-nav__mobile-extra { display: grid; gap: 10px; margin-top: 24px; }
	body.ec-nav-open { overflow: hidden; }
	body.ec-nav-open .ec-burger .ec-i-open { display: none; }
	body.ec-nav-open .ec-burger .ec-i-close { display: block; }
	.ec-header__cta span { display: none; }
	.ec-header__cta { width: 44px; padding: 0; }
	.ec-hero__inner { grid-template-columns: 1fr; }
	.ec-hero__card { display: none; }
	.ec-access__grid, .ec-mayor__grid, .ec-news, .ec-agenda, .ec-transp, .ec-contact__grid, .ec-svc-layout, .ec-report, .ec-article__layout, .ec-docs-layout { grid-template-columns: 1fr; }
	.ec-mayor__portrait { max-width: 380px; }
	.ec-projects__grid { grid-template-columns: repeat(2, 1fr); }
	.ec-council, .ec-sticky, .ec-report__aside, .ec-docs-filters { position: static; }
	.ec-news__feature-link { min-height: 420px; }
	.ec-tiles--4 { grid-template-columns: repeat(2, 1fr); }
	.ec-stats__grid { grid-template-columns: repeat(2, 1fr); }
	.ec-stat:nth-child(3) { border-left: 0; }
	.ec-stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.16); }
	.ec-footer__top { grid-template-columns: 1fr 1fr; }
	.ec-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 200px 200px; }
	.ec-mosaic__item:first-child { grid-row: auto; grid-column: span 2; }
	.ec-mosaic__item:nth-child(4) { grid-column: span 2; }
	.ec-article__cover { margin-top: 0; }
}
@media (max-width: 760px) {
	.ec-topbar__dep, .ec-topbar__sep, .ec-topbar__agents { display: none; }
	.ec-a11y { border: 0; margin: 0; padding: 0; }
	.ec-brand__name { font-size: 1.12rem; }
	.ec-brand__emblem svg { width: 34px; height: 40px; }
	.ec-hero { min-height: 0; }
	.ec-hero__inner { padding-block: 72px 40px; }
	.ec-hero__search { flex-wrap: wrap; border-radius: 22px; padding: 8px; }
	.ec-hero__search > .ec-icon { display: none; }
	.ec-hero__search input { padding: 12px; width: 100%; flex-basis: 100%; }
	.ec-hero__search .ec-btn { width: 100%; }
	.ec-tiles, .ec-tiles--4 { grid-template-columns: 1fr 1fr; gap: 10px; }
	.ec-tile { min-height: 150px; padding: 16px; }
	.ec-tile__title { font-size: .98rem; }
	.ec-eservices { grid-template-columns: 1fr; }
	.ec-projects__grid { grid-template-columns: 1fr; }
	.ec-projects__kpis { width: 100%; justify-content: space-between; }
	.ec-vision__head { grid-template-columns: 1fr; }
	.ec-pillars { grid-template-columns: 1fr; }
	.ec-row__link { grid-template-columns: 96px 1fr; gap: 14px; }
	.ec-facts { grid-template-columns: 1fr; }
	.ec-tracker { grid-template-columns: 1fr; justify-items: center; }
	.ec-timeline { width: 100%; }
	.ec-form__grid { grid-template-columns: 1fr; }
	.ec-doc { flex-wrap: wrap; }
	.ec-doc__dl { margin-left: 66px; }
	.ec-vtimeline { grid-template-columns: 1fr 1fr; row-gap: 24px; }
	.ec-footer__top { grid-template-columns: 1fr; gap: 32px; }
	.ec-footer__bottom { flex-direction: column; align-items: flex-start; }
	.ec-mosaic { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 240px; }
	.ec-mosaic__item:first-child, .ec-mosaic__item:nth-child(4) { grid-column: auto; }
	.ec-event__link { gap: 14px; padding: 14px; }
	.ec-event__arrow { display: none; }
	.ec-mayor__ring { inset: 12px -12px -12px 12px; }
	.ec-demo { left: 12px; bottom: 12px; }
}

/* ---------- Impression (fiches démarches) ---------- */
@media print {
	.ec-topbar, .ec-header, .ec-footer, .ec-svc-aside, .ec-demo, .ec-alert, .ec-crumbs { display: none !important; }
	.ec-pagehead { background: none !important; color: #000; padding: 0 0 16px; }
	.ec-pagehead__title, .ec-pagehead__lead { color: #000; }
	.ec-svc-layout { grid-template-columns: 1fr; }
	body { font-size: 12pt; }
}
