/* Eclipse City RP — design system exclusif (démo GothamDev) */
@import url("https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&family=Syne:wght@600;700;800&display=swap");

:root {
  --ec-bg: #050508;
  --ec-surface: #0e0e16;
  --ec-surface-2: #161622;
  --ec-border: rgba(148, 163, 184, 0.14);
  --ec-violet: #7c3aed;
  --ec-violet-soft: rgba(124, 58, 237, 0.22);
  --ec-cyan: #22d3ee;
  --ec-cyan-soft: rgba(34, 211, 238, 0.18);
  --ec-text: #f8fafc;
  --ec-muted: #94a3b8;
  --ec-ok: #34d399;
  --ec-warn: #fbbf24;
  --ec-danger: #f87171;
  --ec-radius: 16px;
  --ec-radius-sm: 10px;
  --ec-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  --ec-font: "Figtree", system-ui, sans-serif;
  --ec-display: "Syne", "Figtree", sans-serif;
  --ec-header-h: 72px;
  --ec-banner-h: 0px;
  --ec-max: 1180px;
  --ec-glass: rgba(14, 14, 22, 0.72);
  --ec-glass-border: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] {
  --ec-bg: #f1f5f9;
  --ec-surface: #ffffff;
  --ec-surface-2: #e2e8f0;
  --ec-border: rgba(15, 23, 42, 0.1);
  --ec-text: #0f172a;
  --ec-muted: #64748b;
  --ec-glass: rgba(255, 255, 255, 0.85);
  --ec-glass-border: rgba(15, 23, 42, 0.08);
  --ec-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body.ec-body {
  margin: 0;
  font-family: var(--ec-font);
  background:
    radial-gradient(1000px 520px at 8% -8%, rgba(124, 58, 237, 0.28), transparent 55%),
    radial-gradient(900px 480px at 92% 0%, rgba(34, 211, 238, 0.14), transparent 50%),
    radial-gradient(700px 400px at 50% 100%, rgba(124, 58, 237, 0.08), transparent 60%),
    var(--ec-bg);
  color: var(--ec-text);
  line-height: 1.6;
  min-height: 100vh;
  padding-bottom: calc(var(--ec-banner-h) + 1rem);
}
body.ec-body.has-demo-banner { --ec-banner-h: 64px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ec-cyan); text-decoration: none; transition: color 0.2s; }
a:hover { color: #67e8f9; }
h1, h2, h3, h4, .ec-display {
  font-family: var(--ec-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.ec-wrap { width: min(var(--ec-max), calc(100% - 2rem)); margin: 0 auto; }
.ec-muted { color: var(--ec-muted); }
.ec-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* ── Demo banner ── */
.ec-demo-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1200;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.7rem 1.1rem;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.95), rgba(14, 14, 22, 0.96));
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  font-size: 0.88rem;
}
.ec-demo-banner[hidden] { display: none !important; }
.ec-demo-banner__actions { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; }
.ec-demo-banner .ec-btn { padding: 0.4rem 0.85rem; font-size: 0.8rem; }
.ec-demo-banner__dismiss {
  background: transparent; border: 1px solid rgba(255,255,255,0.25);
  color: #fff; border-radius: 999px; width: 32px; height: 32px; cursor: pointer;
}

/* ── Buttons ── */
.ec-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.72rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--ec-font);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.ec-btn:hover { transform: translateY(-1px); }
.ec-btn--primary {
  background: linear-gradient(135deg, var(--ec-violet), #5b21b6);
  color: #fff;
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.35);
}
.ec-btn--primary:hover { color: #fff; box-shadow: 0 14px 36px rgba(124, 58, 237, 0.5); }
.ec-btn--cyan {
  background: linear-gradient(135deg, var(--ec-cyan), #0891b2);
  color: #042f2e;
  box-shadow: 0 10px 28px rgba(34, 211, 238, 0.28);
}
.ec-btn--cyan:hover { color: #042f2e; }
.ec-btn--ghost {
  background: rgba(255,255,255,0.04);
  border-color: var(--ec-glass-border);
  color: var(--ec-text);
}
.ec-btn--ghost:hover { border-color: var(--ec-cyan); color: var(--ec-cyan); }
.ec-btn--sm { padding: 0.4rem 0.8rem; font-size: 0.82rem; }
.ec-btn-row { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* ── Header / mega menu ── */
.ec-header {
  position: sticky; top: 0; z-index: 900;
  height: var(--ec-header-h);
  background: var(--ec-glass);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--ec-glass-border);
}
.ec-header__inner {
  height: 100%;
  display: flex; align-items: center; gap: 1rem;
  width: min(1280px, calc(100% - 1.5rem));
  margin: 0 auto;
}
.ec-logo {
  display: flex; align-items: center; gap: 0.55rem;
  color: var(--ec-text); text-decoration: none; flex-shrink: 0;
}
.ec-logo__mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--ec-violet), var(--ec-cyan));
  display: grid; place-items: center;
  font-family: var(--ec-display); font-weight: 800; font-size: 0.85rem; color: #fff;
}
.ec-logo__text {
  font-family: var(--ec-display); font-weight: 800; font-size: 1.15rem;
  letter-spacing: 0.06em;
}
.ec-nav { display: flex; align-items: center; gap: 0.15rem; flex: 1; }
.ec-nav__item { position: relative; }
.ec-nav__trigger {
  background: transparent; border: 0; color: var(--ec-muted);
  font: 600 0.9rem var(--ec-font); padding: 0.55rem 0.7rem;
  border-radius: 8px; cursor: pointer;
}
.ec-nav__trigger:hover, .ec-nav__item.is-open .ec-nav__trigger,
.ec-nav__link.is-active, .ec-nav a.is-active { color: var(--ec-text); background: rgba(255,255,255,0.04); }
.ec-nav__link {
  display: inline-block; color: var(--ec-muted); font-weight: 600; font-size: 0.9rem;
  padding: 0.55rem 0.7rem; border-radius: 8px;
}
.ec-nav__link:hover { color: var(--ec-text); }
.ec-mega {
  position: absolute; top: calc(100% + 0.55rem); left: 0;
  min-width: 280px; padding: 0.85rem;
  background: var(--ec-surface);
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius);
  box-shadow: var(--ec-shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: 0.2s; z-index: 40;
}
.ec-nav__item.is-open .ec-mega { opacity: 1; visibility: visible; transform: none; }
.ec-mega a {
  display: block; padding: 0.55rem 0.7rem; border-radius: 8px;
  color: var(--ec-text); font-weight: 500;
}
.ec-mega a:hover { background: var(--ec-violet-soft); color: #fff; }
.ec-mega a small { display: block; color: var(--ec-muted); font-weight: 400; font-size: 0.78rem; }
.ec-header__right { display: flex; align-items: center; gap: 0.55rem; margin-left: auto; }
.ec-status-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.7rem; border-radius: 999px;
  background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--ec-ok); font-size: 0.78rem; font-weight: 600; white-space: nowrap;
}
.ec-status-pill .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ec-ok);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.25);
  animation: ec-pulse 2s ease infinite;
}
@keyframes ec-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.ec-connect-btn { font-size: 0.78rem; }
.ec-burger {
  display: none; width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--ec-border); background: var(--ec-surface);
  cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.ec-burger span {
  display: block; width: 18px; height: 2px; background: var(--ec-text); border-radius: 2px;
  transition: 0.2s;
}
.ec-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ec-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ec-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.ec-mobile {
  display: none; position: fixed; inset: var(--ec-header-h) 0 0 0;
  background: rgba(5, 5, 8, 0.96); z-index: 850; overflow: auto; padding: 1rem 1.25rem 6rem;
}
.ec-mobile.is-open { display: block; }
.ec-mobile details { border-bottom: 1px solid var(--ec-border); padding: 0.5rem 0; }
.ec-mobile summary {
  cursor: pointer; font-weight: 700; font-family: var(--ec-display);
  padding: 0.6rem 0; list-style: none;
}
.ec-mobile summary::-webkit-details-marker { display: none; }
.ec-mobile a {
  display: block; padding: 0.45rem 0.2rem; color: var(--ec-muted); font-weight: 500;
}
.ec-mobile a:hover { color: var(--ec-cyan); }

/* ── Hero ── */
.ec-hero {
  position: relative; min-height: calc(100vh - var(--ec-header-h));
  display: grid; align-items: end;
  overflow: hidden;
}
.ec-hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background: #0a0a12 center/cover no-repeat;
}
.ec-hero__bg img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.92;
  transform: scale(1.06);
  animation: ec-kenburns 22s ease-in-out alternate infinite;
}
.ec-hero__bg picture, .ec-hero__bg picture img {
  width: 100%; height: 100%; display: block;
}
@keyframes ec-kenburns {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.14) translate3d(-2%, -1%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .ec-hero__bg img { animation: none; transform: none; }
}
.ec-hero__veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(5,5,8,0.35) 0%, rgba(5,5,8,0.55) 40%, rgba(5,5,8,0.96) 100%),
    radial-gradient(600px 300px at 70% 30%, rgba(124,58,237,0.35), transparent 70%);
}
.ec-hero__content {
  position: relative; z-index: 2;
  padding: 4rem 0 5rem;
  width: min(var(--ec-max), calc(100% - 2rem));
  margin: 0 auto;
}
.ec-hero__brand {
  font-family: var(--ec-display); font-weight: 800; font-size: clamp(2.8rem, 8vw, 5.5rem);
  letter-spacing: 0.04em; margin: 0 0 0.5rem;
  background: linear-gradient(120deg, #fff 20%, var(--ec-cyan) 55%, var(--ec-violet) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: ec-fade-up 0.9s ease both;
}
.ec-hero h1, .ec-hero__title {
  font-size: clamp(1.4rem, 3.2vw, 2.1rem); margin: 0 0 0.85rem; max-width: 18ch;
  animation: ec-fade-up 0.9s 0.08s ease both;
}
.ec-hero p {
  max-width: 42ch; color: var(--ec-muted); margin: 0 0 1.4rem;
  animation: ec-fade-up 0.9s 0.15s ease both;
}
.ec-hero .ec-btn-row { animation: ec-fade-up 0.9s 0.22s ease both; }
.ec-hero__meta {
  display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem;
  animation: ec-fade-up 0.9s 0.28s ease both;
}
.ec-hero__meta span {
  padding: 0.4rem 0.8rem; border-radius: 999px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--ec-glass-border);
  font-size: 0.82rem; font-weight: 600;
}
@keyframes ec-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.ec-page-hero {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--ec-border);
  background:
    radial-gradient(700px 280px at 10% 0%, rgba(124,58,237,0.18), transparent 60%),
    transparent;
}
.ec-page-hero h1 { margin: 0 0 0.6rem; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.ec-page-hero p { margin: 0; max-width: 52ch; color: var(--ec-muted); }

/* ── Sections / cards ── */
.ec-section { padding: 4rem 0; }
.ec-section--tight { padding: 2.5rem 0; }
.ec-section__head { margin-bottom: 1.75rem; }
.ec-section__head h2 { margin: 0 0 0.45rem; font-size: clamp(1.5rem, 3vw, 2rem); }
.ec-section__head p { margin: 0; color: var(--ec-muted); max-width: 54ch; }
.ec-kicker {
  display: inline-block; font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ec-cyan); font-weight: 700; margin-bottom: 0.45rem;
}

.ec-glass {
  background: var(--ec-glass);
  border: 1px solid var(--ec-glass-border);
  border-radius: var(--ec-radius);
  backdrop-filter: blur(12px);
  box-shadow: var(--ec-shadow);
}
.ec-card {
  background: var(--ec-surface);
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius);
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.ec-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.45);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}
.ec-card__media {
  aspect-ratio: 16/10;
  background:
    radial-gradient(circle at 30% 40%, rgba(124,58,237,0.45), transparent 55%),
    radial-gradient(circle at 80% 20%, rgba(34,211,238,0.3), transparent 45%),
    linear-gradient(160deg, #12121c, #0a0a12);
  position: relative; overflow: hidden;
}
.ec-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.ec-card:hover .ec-card__media img { transform: scale(1.05); }
.ec-card--lift { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.ec-card__body { padding: 1.1rem 1.2rem 1.3rem; }
.ec-card__body h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.ec-card__body p { margin: 0; color: var(--ec-muted); font-size: 0.92rem; }
.ec-badge {
  display: inline-flex; align-items: center;
  padding: 0.2rem 0.55rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700;
  background: var(--ec-violet-soft); color: #c4b5fd;
}
.ec-badge--cyan { background: var(--ec-cyan-soft); color: #67e8f9; }
.ec-badge--ok { background: rgba(52,211,153,0.15); color: var(--ec-ok); }
.ec-badge--warn { background: rgba(251,191,36,0.15); color: var(--ec-warn); }

.ec-grid-2 { display: grid; gap: 1.1rem; grid-template-columns: repeat(2, 1fr); }
.ec-grid-3 { display: grid; gap: 1.1rem; grid-template-columns: repeat(3, 1fr); }
.ec-grid-4 { display: grid; gap: 1.1rem; grid-template-columns: repeat(4, 1fr); }
.ec-grid-6 { display: grid; gap: 0.9rem; grid-template-columns: repeat(6, 1fr); }

.ec-feature {
  padding: 1.4rem;
  background: var(--ec-surface);
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius);
  position: relative; overflow: hidden;
}
.ec-feature::before {
  content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--ec-violet), var(--ec-cyan));
}
.ec-feature h3 { margin: 0.4rem 0 0.5rem; }
.ec-feature p { margin: 0; color: var(--ec-muted); }

/* ── Shop ── */
.ec-shop-toolbar {
  display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center;
  margin-bottom: 1.5rem;
}
.ec-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; flex: 1; }
.ec-chip {
  border: 1px solid var(--ec-border); background: var(--ec-surface);
  color: var(--ec-muted); border-radius: 999px; padding: 0.4rem 0.85rem;
  font-weight: 600; font-size: 0.82rem; cursor: pointer; font-family: var(--ec-font);
}
.ec-chip.is-active, .ec-chip:hover {
  background: var(--ec-violet-soft); border-color: var(--ec-violet); color: #fff;
}
.ec-search {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--ec-surface); border: 1px solid var(--ec-border);
  border-radius: 999px; padding: 0.45rem 0.9rem; min-width: min(280px, 100%);
}
.ec-search input {
  border: 0; background: transparent; color: var(--ec-text); outline: none;
  width: 100%; font: 500 0.92rem var(--ec-font);
}
.ec-product-grid {
  display: grid; gap: 1.15rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.ec-product {
  background: var(--ec-surface); border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius); overflow: hidden; cursor: pointer;
  transition: 0.25s;
}
.ec-product:hover {
  border-color: rgba(34, 211, 238, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.35);
}
.ec-product__img {
  aspect-ratio: 1; min-height: 220px; position: relative;
  background: #0c0c14;
}
.ec-product__img img { width: 100%; height: 100%; object-fit: cover; }
.ec-product__img .ec-badge { position: absolute; top: 0.7rem; left: 0.7rem; }
.ec-product__body { padding: 1rem 1.05rem 1.15rem; }
.ec-product__price {
  font-family: var(--ec-display); font-weight: 700; color: var(--ec-cyan); margin-top: 0.5rem;
}
.ec-cart-fab {
  position: fixed; right: 1.1rem; bottom: calc(var(--ec-banner-h) + 1.1rem);
  z-index: 950; border: 0; cursor: pointer;
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--ec-violet), #4c1d95);
  color: #fff; font-weight: 700; box-shadow: 0 12px 30px rgba(124,58,237,0.45);
  display: grid; place-items: center;
}
.ec-cart-fab__count {
  position: absolute; top: -2px; right: -2px;
  background: var(--ec-cyan); color: #042f2e;
  width: 22px; height: 22px; border-radius: 50%;
  font-size: 0.72rem; display: grid; place-items: center;
}

/* ── Drawer / modal ── */
.ec-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  z-index: 1000; opacity: 0; visibility: hidden; transition: 0.25s;
}
.ec-overlay.is-open { opacity: 1; visibility: visible; }
.ec-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(400px, 100%);
  background: var(--ec-surface); border-left: 1px solid var(--ec-border);
  z-index: 1001; transform: translateX(100%); transition: 0.3s; display: flex; flex-direction: column;
}
.ec-drawer.is-open { transform: none; }
.ec-drawer__head, .ec-modal__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.15rem; border-bottom: 1px solid var(--ec-border);
}
.ec-drawer__body { flex: 1; overflow: auto; padding: 1rem 1.15rem; }
.ec-drawer__foot { padding: 1rem 1.15rem; border-top: 1px solid var(--ec-border); }
.ec-cart-line {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 0.7rem;
  padding: 0.75rem 0; border-bottom: 1px solid var(--ec-border); align-items: center;
}
.ec-cart-line img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.ec-qty {
  display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.35rem;
}
.ec-qty button {
  width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--ec-border);
  background: var(--ec-surface-2); color: var(--ec-text); cursor: pointer;
}
.ec-modal {
  position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center;
  padding: 1rem; opacity: 0; visibility: hidden; transition: 0.25s;
}
.ec-modal.is-open { opacity: 1; visibility: visible; }
.ec-modal__dialog {
  width: min(560px, 100%); max-height: min(90vh, 720px); overflow: auto;
  background: var(--ec-surface); border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius); box-shadow: var(--ec-shadow);
}
.ec-modal__body { padding: 1.15rem; }
.ec-close {
  background: transparent; border: 0; color: var(--ec-muted); font-size: 1.4rem;
  cursor: pointer; line-height: 1;
}

/* ── Forms ── */
.ec-form label { display: block; font-weight: 600; font-size: 0.88rem; margin: 0.85rem 0 0.35rem; }
.ec-form input, .ec-form select, .ec-form textarea {
  width: 100%; padding: 0.7rem 0.85rem; border-radius: 10px;
  border: 1px solid var(--ec-border); background: var(--ec-bg); color: var(--ec-text);
  font: 500 0.95rem var(--ec-font);
}
.ec-form input:focus, .ec-form select:focus, .ec-form textarea:focus {
  outline: 2px solid rgba(124, 58, 237, 0.45); border-color: var(--ec-violet);
}
.ec-steps { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.ec-steps span {
  flex: 1; min-width: 100px; text-align: center; padding: 0.55rem;
  border-radius: 999px; background: var(--ec-surface); border: 1px solid var(--ec-border);
  font-size: 0.82rem; font-weight: 600; color: var(--ec-muted);
}
.ec-steps span.is-active {
  background: var(--ec-violet-soft); border-color: var(--ec-violet); color: #fff;
}
.ec-steps span.is-done { color: var(--ec-ok); border-color: rgba(52,211,153,0.4); }

/* ── Tables / charts ── */
.ec-table-wrap { overflow: auto; border: 1px solid var(--ec-border); border-radius: var(--ec-radius); }
.ec-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.ec-table th, .ec-table td {
  padding: 0.75rem 0.9rem; text-align: left; border-bottom: 1px solid var(--ec-border);
}
.ec-table th {
  background: var(--ec-surface-2); font-weight: 700; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--ec-muted);
}
.ec-table tr:hover td { background: rgba(124, 58, 237, 0.06); }
.ec-bars { display: grid; gap: 0.55rem; }
.ec-bar {
  display: grid; grid-template-columns: 48px 1fr 48px; gap: 0.55rem; align-items: center;
  font-size: 0.8rem; color: var(--ec-muted);
}
.ec-bar__track {
  height: 10px; border-radius: 999px; background: var(--ec-surface-2); overflow: hidden;
}
.ec-bar__fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--ec-violet), var(--ec-cyan));
}

/* ── Accordion / tabs ── */
.ec-accordion details {
  background: var(--ec-surface); border: 1px solid var(--ec-border);
  border-radius: 12px; margin-bottom: 0.55rem; padding: 0.2rem 1rem;
}
.ec-accordion summary {
  cursor: pointer; font-weight: 700; padding: 0.85rem 0; list-style: none;
  font-family: var(--ec-display);
}
.ec-accordion summary::-webkit-details-marker { display: none; }
.ec-accordion details[open] summary { color: var(--ec-cyan); }
.ec-accordion p { color: var(--ec-muted); margin: 0 0 1rem; }
.ec-tabs { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-bottom: 1rem; }
.ec-tab {
  border: 1px solid var(--ec-border); background: var(--ec-surface); color: var(--ec-muted);
  border-radius: 999px; padding: 0.45rem 0.9rem; font-weight: 600; cursor: pointer;
  font-family: var(--ec-font);
}
.ec-tab.is-active { background: var(--ec-cyan-soft); border-color: var(--ec-cyan); color: var(--ec-text); }
.ec-tab-panel[hidden] { display: none; }

/* ── Découvrir (présentation / lore / guide) ── */
.ec-discover-nav {
  position: sticky; top: var(--ec-header-h); z-index: 30;
  background: rgba(5,5,8,0.94); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ec-border);
}
.ec-discover-nav__row {
  display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0.7rem 0 0.55rem;
}
.ec-discover-nav__link {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.4rem 0.85rem; border-radius: 999px; font-weight: 600; font-size: 0.88rem;
  color: var(--ec-muted); border: 1px solid transparent;
}
.ec-discover-nav__n {
  font-size: 0.68rem; opacity: 0.55; font-family: var(--ec-display);
}
.ec-discover-nav__link:hover { color: var(--ec-text); background: var(--ec-surface); }
.ec-discover-nav__link.is-active {
  color: var(--ec-text); border-color: var(--ec-cyan); background: var(--ec-cyan-soft);
}
.ec-discover-progress {
  height: 2px; background: rgba(248,250,252,0.06); border-radius: 2px; overflow: hidden; margin-bottom: 0.35rem;
}
.ec-discover-progress span {
  display: block; height: 100%; background: linear-gradient(90deg, var(--ec-violet), var(--ec-cyan));
  transition: width 0.45s ease;
}

.ec-cine-hero {
  position: relative; min-height: min(92vh, 820px);
  display: grid; align-items: end; overflow: hidden;
}
.ec-cine-hero__bg { position: absolute; inset: 0; }
.ec-cine-hero__bg img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.05); animation: ec-kenburns 24s ease-in-out alternate infinite;
}
.ec-cine-hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(5,5,8,0.92) 0%, rgba(5,5,8,0.55) 48%, rgba(5,5,8,0.75) 100%),
    radial-gradient(500px 280px at 75% 30%, rgba(124,58,237,0.35), transparent 70%);
}
.ec-cine-hero__grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.35fr 0.75fr; gap: 1.5rem;
  align-items: end; padding: 5rem 0 4rem;
}
.ec-cine-hero__chapter {
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ec-cyan); font-weight: 700; margin: 0 0 0.6rem;
}
.ec-cine-hero__brand {
  font-family: var(--ec-display); font-weight: 800; font-size: clamp(2.4rem, 7vw, 4.8rem);
  letter-spacing: 0.06em; margin: 0 0 0.35rem; line-height: 0.95;
  background: linear-gradient(120deg, #fff 15%, var(--ec-cyan) 55%, var(--ec-violet) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ec-cine-hero h1 {
  font-size: clamp(1.35rem, 3vw, 2.05rem); max-width: 22ch; margin: 0 0 0.9rem; line-height: 1.2;
}
.ec-cine-hero__lead { color: var(--ec-muted); max-width: 48ch; margin: 0 0 1.4rem; font-size: 1.05rem; }
.ec-cine-hero__aside { display: grid; gap: 0.75rem; }
.ec-cine-hero__scroll {
  position: absolute; z-index: 2; left: 50%; bottom: 1.2rem; transform: translateX(-50%);
  color: var(--ec-muted); text-decoration: none; font-size: 1.2rem; opacity: 0.7;
  animation: ec-bounce 2s ease infinite;
}
@keyframes ec-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}
.ec-live-card {
  padding: 1rem 1.1rem; border-radius: 14px;
  background: rgba(14,14,22,0.82); border: 1px solid rgba(34,211,238,0.28);
  backdrop-filter: blur(10px);
}
.ec-live-card--soft { border-color: var(--ec-border); }
.ec-live-card__top { display: flex; align-items: center; gap: 0.45rem; font-size: 0.78rem; color: var(--ec-muted); }
.ec-live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #34d399;
  box-shadow: 0 0 0 4px rgba(52,211,153,0.2); animation: ec-pulse 1.6s ease infinite;
}
@keyframes ec-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(52,211,153,0.2); }
  50% { box-shadow: 0 0 0 6px rgba(52,211,153,0.08); }
}
.ec-live-card strong {
  display: block; font-family: var(--ec-display); font-size: 1.45rem; margin: 0.35rem 0 0.15rem;
}
.ec-live-card span { color: var(--ec-muted); font-size: 0.82rem; }

.ec-manifesto {
  text-align: center; max-width: 44rem; margin: 0 auto; padding: 1rem 0;
}
.ec-manifesto blockquote {
  margin: 0.8rem 0; font-family: var(--ec-display); font-size: clamp(1.25rem, 2.6vw, 1.85rem);
  line-height: 1.35; font-weight: 600;
}
.ec-manifesto cite { color: var(--ec-muted); font-style: normal; font-size: 0.9rem; }

.ec-journey {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.85rem;
}
.ec-journey__item {
  border-radius: var(--ec-radius); overflow: hidden; border: 1px solid var(--ec-border);
  background: var(--ec-surface); display: grid; grid-template-rows: 140px 1fr;
}
.ec-journey__item img { width: 100%; height: 140px; object-fit: cover; }
.ec-journey__item > div { padding: 1rem 1.05rem 1.15rem; }
.ec-journey__item span {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ec-cyan);
}
.ec-journey__item h3 { margin: 0.35rem 0 0.4rem; font-size: 1.02rem; }
.ec-journey__item p { margin: 0; color: var(--ec-muted); font-size: 0.9rem; }

.ec-tabs-root--rich .ec-tab-panel--rich {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 1.25rem; align-items: center;
  padding: 1.25rem; border-radius: var(--ec-radius);
  background: var(--ec-surface); border: 1px solid var(--ec-border);
}
.ec-tab-panel--rich[hidden] { display: none; }
.ec-tab-panel__media {
  border-radius: 12px; overflow: hidden; aspect-ratio: 16/11; border: 1px solid var(--ec-border);
}
.ec-tab-panel__media img { width: 100%; height: 100%; object-fit: cover; }

.ec-profile-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem;
}
.ec-profile-card {
  padding: 1.2rem; border-radius: var(--ec-radius);
  background: var(--ec-surface); border: 1px solid var(--ec-border);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.ec-profile-card:hover { transform: translateY(-4px); border-color: rgba(124,58,237,0.45); }
.ec-profile-card img {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(34,211,238,0.4); margin-bottom: 0.75rem;
}
.ec-profile-card h3 { margin: 0 0 0.4rem; font-size: 1.02rem; }
.ec-profile-card p { margin: 0; color: var(--ec-muted); font-size: 0.9rem; }

.ec-stat-row--xl .ec-stat { padding: 1.25rem 1.1rem; }
.ec-stat-row--xl .ec-stat strong { font-size: 1.8rem; }

.ec-next-chapter {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.6rem 1.5rem; border-radius: var(--ec-radius);
  background:
    linear-gradient(120deg, rgba(124,58,237,0.2), rgba(34,211,238,0.08)),
    var(--ec-surface);
  border: 1px solid rgba(124,58,237,0.35);
}
.ec-next-chapter h2 { margin: 0.25rem 0 0.35rem; }
.ec-next-chapter p { margin: 0; color: var(--ec-muted); }

.ec-lore-intro {
  display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 1.25rem; align-items: stretch;
}
.ec-lore-intro__quote {
  padding: 1.6rem; border-radius: var(--ec-radius);
  background: var(--ec-surface); border: 1px solid var(--ec-border);
}
.ec-lore-intro__quote p {
  margin: 0 0 1rem; font-family: var(--ec-display); font-size: 1.35rem; line-height: 1.35; font-weight: 600;
}
.ec-lore-intro__quote cite { color: var(--ec-muted); font-style: normal; font-size: 0.85rem; }
.ec-lore-intro__facts {
  display: grid; gap: 0.75rem;
}
.ec-lore-intro__facts > div {
  padding: 1rem; border-radius: 14px; background: var(--ec-surface); border: 1px solid var(--ec-border);
}
.ec-lore-intro__facts strong {
  display: block; font-family: var(--ec-display); font-size: 1.8rem; color: var(--ec-cyan);
}
.ec-lore-intro__facts span { color: var(--ec-muted); font-size: 0.85rem; }

.ec-map-layout {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 1rem; align-items: stretch;
}
.ec-map {
  position: relative; min-height: 420px; border-radius: var(--ec-radius); overflow: hidden;
  background: #0a0a12 center/cover no-repeat; border: 1px solid var(--ec-border);
}
.ec-map__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(5,5,8,0.35), rgba(5,5,8,0.72));
}
.ec-map__pin {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  z-index: 2; border: 0; cursor: pointer; padding: 0;
  background: transparent;
}
.ec-map__pin span {
  display: inline-block; padding: 0.35rem 0.65rem; border-radius: 999px;
  background: rgba(14,14,22,0.9); border: 1px solid rgba(34,211,238,0.45);
  color: #fff; font-size: 0.75rem; font-weight: 700; white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.ec-map__pin.is-active span,
.ec-map__pin:hover span {
  background: var(--ec-violet); border-color: var(--ec-cyan);
}
.ec-map__hint {
  position: absolute; left: 0.9rem; bottom: 0.8rem; z-index: 2;
  margin: 0; font-size: 0.75rem; color: rgba(248,250,252,0.65);
}
.ec-district-panel {
  display: grid; gap: 0.9rem; padding: 0; border-radius: var(--ec-radius); overflow: hidden;
  background: var(--ec-surface); border: 1px solid var(--ec-border); height: 100%;
}
.ec-district-panel[hidden] { display: none; }
.ec-district-panel img { width: 100%; height: 200px; object-fit: cover; }
.ec-district-panel > div { padding: 0 1.15rem 1.2rem; }
.ec-district-panel h3 { margin: 0.5rem 0 0.4rem; }
.ec-district-panel p { margin: 0; color: var(--ec-muted); }

.ec-chrono__track {
  display: flex; justify-content: space-between; gap: 0.35rem; margin-bottom: 1.25rem;
  position: relative; padding: 0 0.25rem;
}
.ec-chrono__track::before {
  content: ""; position: absolute; left: 4%; right: 4%; top: 50%; height: 2px;
  background: rgba(124,58,237,0.35); transform: translateY(-50%);
}
.ec-chrono__dot {
  position: relative; z-index: 1; width: 52px; height: 52px; border-radius: 50%;
  border: 2px solid var(--ec-border); background: var(--ec-surface); color: var(--ec-muted);
  cursor: pointer; font-family: var(--ec-display); font-weight: 700; font-size: 0.85rem;
}
.ec-chrono__dot.is-active {
  border-color: var(--ec-cyan); color: var(--ec-text);
  box-shadow: 0 0 0 4px rgba(34,211,238,0.15); background: #12121c;
}
.ec-chrono__panel {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.2rem; align-items: center;
  padding: 1.1rem; border-radius: var(--ec-radius);
  background: var(--ec-surface); border: 1px solid var(--ec-border);
}
.ec-chrono__panel[hidden] { display: none; }
.ec-chrono__panel img {
  width: 100%; aspect-ratio: 16/11; object-fit: cover; border-radius: 12px;
}
.ec-chrono__panel h3 { margin: 0.45rem 0 0.4rem; }
.ec-chrono__panel p { margin: 0; color: var(--ec-muted); }

.ec-guide-layout {
  display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; align-items: start;
}
.ec-guide-rail {
  position: sticky; top: calc(var(--ec-header-h) + 64px);
  padding: 1rem; border-radius: var(--ec-radius);
  background: var(--ec-surface); border: 1px solid var(--ec-border);
}
.ec-guide-rail__btn {
  display: flex; align-items: center; gap: 0.55rem; width: 100%;
  padding: 0.55rem 0.5rem; border: 0; background: transparent; color: var(--ec-muted);
  font-weight: 600; cursor: pointer; border-radius: 10px; text-align: left; font-family: var(--ec-font);
}
.ec-guide-rail__btn span {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: rgba(124,58,237,0.15); color: #c4b5fd; font-size: 0.72rem; font-family: var(--ec-display);
}
.ec-guide-rail__btn.is-active, .ec-guide-rail__btn:hover {
  background: var(--ec-cyan-soft); color: var(--ec-text);
}
.ec-guide-rail__progress {
  margin-top: 0.85rem; height: 4px; border-radius: 4px; background: rgba(248,250,252,0.08); overflow: hidden;
}
.ec-guide-rail__progress span {
  display: block; width: 100%; background: linear-gradient(180deg, var(--ec-cyan), var(--ec-violet));
  transition: height 0.3s ease;
}
.ec-guide-steps { display: grid; gap: 1rem; }
.ec-guide-step {
  display: grid; grid-template-columns: 240px 1fr; gap: 0;
  border-radius: var(--ec-radius); overflow: hidden;
  border: 1px solid var(--ec-border); background: var(--ec-surface);
}
.ec-guide-step__media img { width: 100%; height: 100%; min-height: 180px; object-fit: cover; }
.ec-guide-step__body { padding: 1.25rem 1.35rem; }
.ec-guide-step__num {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ec-cyan);
}
.ec-guide-step h3 { margin: 0.35rem 0 0.5rem; }
.ec-guide-step p { margin: 0 0 1rem; color: var(--ec-muted); }

.ec-check-board {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem;
}
.ec-check-item {
  display: flex; align-items: flex-start; gap: 0.65rem;
  padding: 0.9rem 1rem; border-radius: 12px;
  background: var(--ec-surface); border: 1px solid var(--ec-border);
  cursor: pointer; color: var(--ec-text); font-weight: 500;
}
.ec-check-item input { margin-top: 0.2rem; accent-color: var(--ec-cyan); }
.ec-check-item:has(input:checked) {
  border-color: rgba(34,211,238,0.45); background: var(--ec-cyan-soft);
}
.ec-check-board__status { margin-top: 0.85rem; }

.ec-reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  transition-delay: var(--d, 0s);
}
.ec-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .ec-reveal { opacity: 1; transform: none; transition: none; }
  .ec-cine-hero__bg img, .ec-cine-hero__scroll { animation: none; }
}

.ec-split {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.75rem; align-items: center;
}
.ec-split--compact { grid-template-columns: 200px 1fr; gap: 1.2rem; }
.ec-split__media {
  border-radius: var(--ec-radius); overflow: hidden; border: 1px solid var(--ec-border);
  aspect-ratio: 4/3; background: #0a0a12;
}
.ec-split__media img { width: 100%; height: 100%; object-fit: cover; }
.ec-checklist { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.55rem; }
.ec-checklist li { padding-left: 1.5rem; position: relative; color: var(--ec-muted); }
.ec-checklist li::before {
  content: "✓"; position: absolute; left: 0; color: var(--ec-cyan); font-weight: 700;
}

@media (max-width: 1100px) {
  .ec-journey, .ec-profile-grid { grid-template-columns: repeat(2, 1fr); }
  .ec-cine-hero__grid, .ec-map-layout, .ec-lore-intro, .ec-guide-layout,
  .ec-tab-panel--rich, .ec-chrono__panel, .ec-guide-step { grid-template-columns: 1fr; }
  .ec-guide-rail { position: static; display: flex; flex-wrap: wrap; gap: 0.35rem; }
  .ec-guide-rail__btn { width: auto; }
  .ec-guide-rail__progress { display: none; }
}
@media (max-width: 900px) {
  .ec-split, .ec-split--compact { grid-template-columns: 1fr; }
  .ec-check-board { grid-template-columns: 1fr; }
  .ec-cine-hero { min-height: 78vh; }
}
@media (max-width: 640px) {
  .ec-journey, .ec-profile-grid { grid-template-columns: 1fr; }
  .ec-chrono__dot { width: 42px; height: 42px; font-size: 0.72rem; }
}

/* ── Vie en ville ── */
.ec-job-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem;
}
.ec-job-card {
  border-radius: var(--ec-radius); overflow: hidden;
  border: 1px solid var(--ec-border); background: var(--ec-surface);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.ec-job-card:hover { transform: translateY(-4px); border-color: rgba(34,211,238,0.4); }
.ec-job-card.is-hidden { display: none; }
.ec-job-card__media { position: relative; aspect-ratio: 16/11; overflow: hidden; }
.ec-job-card__media img { width: 100%; height: 100%; object-fit: cover; }
.ec-job-card__media .ec-badge { position: absolute; top: 0.65rem; left: 0.65rem; }
.ec-job-card__body { padding: 1rem 1.05rem 1.15rem; }
.ec-job-card__body h3 { margin: 0 0 0.35rem; font-size: 1.02rem; }
.ec-job-card__body p { margin: 0; color: var(--ec-muted); font-size: 0.88rem; }
.ec-job-card__meta {
  display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.75rem;
}
.ec-job-card__meta span {
  font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.5rem; border-radius: 999px;
  background: rgba(124,58,237,0.15); color: #c4b5fd;
}
.ec-firm-grid, .ec-orga-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
}
.ec-firm-card, .ec-orga-card {
  display: grid; grid-template-columns: 180px 1fr; gap: 0;
  border-radius: var(--ec-radius); overflow: hidden;
  border: 1px solid var(--ec-border); background: var(--ec-surface);
}
.ec-firm-card img, .ec-orga-card img { width: 100%; height: 100%; min-height: 160px; object-fit: cover; }
.ec-firm-card > div, .ec-orga-card > div { padding: 1.15rem 1.2rem; }
.ec-firm-card h3, .ec-orga-card h3 { margin: 0.4rem 0 0.35rem; }
.ec-firm-card p, .ec-orga-card p { margin: 0; color: var(--ec-muted); font-size: 0.9rem; }
.ec-orga-bar {
  margin-top: 0.85rem; height: 6px; border-radius: 6px;
  background: rgba(248,250,252,0.08); overflow: hidden;
}
.ec-orga-bar span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--ec-violet), var(--ec-cyan));
}
.ec-steps { display: grid; gap: 0.85rem; }
.ec-step {
  display: grid; grid-template-columns: 52px 1fr; gap: 1rem; align-items: start;
  padding: 1.1rem 1.2rem; border-radius: var(--ec-radius);
  background: var(--ec-surface); border: 1px solid var(--ec-border);
}
.ec-step__num {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--ec-display); font-weight: 800; font-size: 1.15rem;
  background: var(--ec-violet-soft); color: #c4b5fd;
}
.ec-step h3 { margin: 0 0 0.3rem; }
.ec-step p { margin: 0; color: var(--ec-muted); }
.ec-feature { text-decoration: none; color: inherit; }
@media (max-width: 1100px) {
  .ec-job-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .ec-firm-card, .ec-orga-card { grid-template-columns: 1fr; }
  .ec-firm-card img, .ec-orga-card img { min-height: 180px; aspect-ratio: 16/9; }
}
@media (max-width: 640px) {
  .ec-job-grid, .ec-firm-grid, .ec-orga-grid { grid-template-columns: 1fr; }
}

/* ── Communauté ── */
.ec-news-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem;
}
.ec-news-card {
  border-radius: var(--ec-radius); overflow: hidden;
  border: 1px solid var(--ec-border); background: var(--ec-surface);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.ec-news-card:hover { transform: translateY(-4px); border-color: rgba(124,58,237,0.4); }
.ec-news-card.is-hidden { display: none; }
.ec-news-card__media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.ec-news-card__media img { width: 100%; height: 100%; object-fit: cover; }
.ec-news-card__media .ec-badge { position: absolute; top: 0.65rem; left: 0.65rem; }
.ec-news-card__body { padding: 1rem 1.05rem 1.15rem; }
.ec-news-card__body time {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ec-cyan);
}
.ec-news-card__body h3 { margin: 0.35rem 0 0.4rem; font-size: 1.05rem; }
.ec-news-card__body p { margin: 0; color: var(--ec-muted); font-size: 0.9rem; }
.ec-staff-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.ec-staff-card {
  display: grid; grid-template-columns: 96px 1fr; gap: 1rem; align-items: start;
  padding: 1.15rem; border-radius: var(--ec-radius);
  background: var(--ec-surface); border: 1px solid var(--ec-border);
}
.ec-staff-card img {
  width: 96px; height: 96px; border-radius: 16px; object-fit: cover;
  border: 2px solid rgba(34,211,238,0.35);
}
.ec-staff-card h3 { margin: 0.35rem 0 0.4rem; }
.ec-staff-card p { margin: 0 0 0.85rem; color: var(--ec-muted); font-size: 0.88rem; }
.ec-partner-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem;
}
.ec-partner-card {
  display: grid; grid-template-columns: 64px 1fr; gap: 0.9rem; align-items: start;
  padding: 1.15rem; border-radius: var(--ec-radius);
  background: var(--ec-surface); border: 1px solid var(--ec-border);
}
.ec-partner-card__mark {
  width: 64px; height: 64px; border-radius: 14px; display: grid; place-items: center;
  font-family: var(--ec-display); font-weight: 800; font-size: 1.1rem;
  background: linear-gradient(145deg, rgba(124,58,237,0.35), rgba(34,211,238,0.2));
  color: #fff;
}
.ec-partner-card h3 { margin: 0.35rem 0 0.35rem; }
.ec-partner-card p { margin: 0 0 0.85rem; color: var(--ec-muted); font-size: 0.88rem; }
.ec-gallery figure.is-hidden { display: none; }
@media (max-width: 1100px) {
  .ec-news-grid, .ec-staff-grid, .ec-partner-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .ec-news-grid, .ec-staff-grid, .ec-partner-grid { grid-template-columns: 1fr; }
  .ec-staff-card { grid-template-columns: 72px 1fr; }
  .ec-staff-card img { width: 72px; height: 72px; }
}

/* ── Support / boutique ── */
.ec-rules-highlights {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem;
}
.ec-rules-board { display: grid; gap: 1.25rem; }
.ec-rules-cat h3 {
  margin: 0 0 0.55rem; font-size: 1.05rem; color: var(--ec-cyan);
  font-family: var(--ec-display);
}
.ec-wl-layout {
  display: grid; grid-template-columns: 240px 1fr; gap: 1.25rem; align-items: start;
}
.ec-wl-side {
  position: sticky; top: calc(var(--ec-header-h) + 64px);
  padding: 1.1rem; border-radius: var(--ec-radius);
  background: var(--ec-surface); border: 1px solid var(--ec-border);
}
.ec-wl-steps { display: grid; gap: 0.35rem; margin-top: 0.75rem; }
.ec-wl-steps span {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.55rem 0.6rem; border-radius: 10px; color: var(--ec-muted); font-weight: 600; font-size: 0.9rem;
}
.ec-wl-steps span em {
  font-style: normal; width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center; font-family: var(--ec-display); font-size: 0.72rem;
  background: rgba(124,58,237,0.15); color: #c4b5fd;
}
.ec-wl-steps span.is-active {
  background: var(--ec-cyan-soft); color: var(--ec-text);
}
.ec-wl-form { padding: 1.4rem; }
.ec-support-layout {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 1.1rem; align-items: start;
}
.ec-shop-trust {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.ec-shop-trust span {
  padding: 0.45rem 0.85rem; border-radius: 999px; font-size: 0.78rem; font-weight: 700;
  border: 1px solid var(--ec-border); background: var(--ec-surface); color: var(--ec-muted);
}
.ec-checkout-steps {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.1rem;
}
.ec-checkout-steps span {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.5rem 0.9rem; border-radius: 999px; font-weight: 600; font-size: 0.88rem;
  border: 1px solid var(--ec-border); color: var(--ec-muted); background: var(--ec-surface);
}
.ec-checkout-steps span em {
  font-style: normal; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.72rem;
  background: rgba(124,58,237,0.2); color: #c4b5fd;
}
.ec-checkout-steps span.is-active {
  border-color: var(--ec-cyan); color: var(--ec-text); background: var(--ec-cyan-soft);
}
@media (max-width: 900px) {
  .ec-rules-highlights, .ec-wl-layout, .ec-support-layout { grid-template-columns: 1fr; }
  .ec-wl-side { position: static; }
  .ec-cine-hero .ec-wrap[style*="grid-template-columns:1fr 400px"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── Member dashboard (player / cyan) ── */
.ec-member-hero {
  position: relative; min-height: 280px; display: grid; align-items: end;
  overflow: hidden; margin-bottom: 0;
}
.ec-member-hero__bg { position: absolute; inset: 0; }
.ec-member-hero__bg img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.45;
}
.ec-member-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,5,8,0.2), rgba(5,5,8,0.95));
}
.ec-member-hero__inner {
  position: relative; z-index: 2; padding: 3rem 0 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; justify-content: space-between;
}
.ec-member-hero__identity { display: flex; gap: 1rem; align-items: center; }
.ec-member-hero__identity h1 { margin: 0.15rem 0 0.35rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.ec-avatar--lg {
  width: 88px; height: 88px; border-radius: 20px; border: 2px solid var(--ec-cyan);
  object-fit: cover;
}
.ec-member-hero__actions { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.ec-member--v2 { padding-top: 1.5rem; }
.ec-member__side-card {
  margin-top: 1.1rem; padding: 1rem; border-radius: 12px;
  background: rgba(34,211,238,0.08); border: 1px solid rgba(34,211,238,0.25);
}
.ec-member__side-card span { display: block; font-size: 0.75rem; color: var(--ec-muted); font-weight: 600; }
.ec-member__side-card strong {
  display: block; font-family: var(--ec-display); font-size: 1.6rem; margin: 0.25rem 0 0.5rem;
}
.ec-member__side-card a { font-size: 0.85rem; font-weight: 600; }
.ec-panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.85rem;
}
.ec-panel-head h2, .ec-panel-head h3 { margin: 0; }
.ec-char-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.ec-char-card {
  display: grid; grid-template-columns: 88px 1fr; gap: 0; overflow: hidden;
  border-radius: 12px; border: 1px solid var(--ec-border); background: var(--ec-bg);
}
.ec-char-card img { width: 100%; height: 100%; min-height: 100px; object-fit: cover; }
.ec-char-card > div { padding: 0.85rem; }
.ec-char-card h3 { margin: 0.35rem 0 0.25rem; font-size: 1rem; }
.ec-char-card p { margin: 0; color: var(--ec-muted); font-size: 0.85rem; }
.ec-status-list { list-style: none; margin: 0.75rem 0; padding: 0; display: grid; gap: 0.55rem; }
.ec-status-list li { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; color: var(--ec-muted); }
.ec-notif-list { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; gap: 0.65rem; }
.ec-notif-list li { display: grid; gap: 0.15rem; padding-bottom: 0.65rem; border-bottom: 1px solid var(--ec-border); }
.ec-notif-list li span { font-size: 0.78rem; color: var(--ec-muted); }
.ec-settings-grid { display: grid; gap: 0.55rem; }
.ec-member {
  display: grid; grid-template-columns: 260px 1fr; gap: 1.25rem; padding: 2rem 0 3rem;
}
.ec-member__side {
  background: linear-gradient(180deg, rgba(34,211,238,0.08), transparent 40%), var(--ec-surface);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: var(--ec-radius); padding: 1.25rem;
  height: fit-content; position: sticky; top: calc(var(--ec-header-h) + 12px);
}
.ec-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  border: 2px solid var(--ec-cyan); object-fit: cover; margin-bottom: 0.75rem;
}
.ec-member__side h2 { margin: 0 0 0.2rem; font-size: 1.2rem; }
.ec-member__nav { display: grid; gap: 0.25rem; margin-top: 0.35rem; }
.ec-member__nav a {
  padding: 0.55rem 0.7rem; border-radius: 10px; color: var(--ec-muted); font-weight: 600;
}
.ec-member__nav a:hover, .ec-member__nav a.is-active {
  background: var(--ec-cyan-soft); color: var(--ec-text);
}
.ec-stat-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.85rem; margin-bottom: 1.25rem;
}
.ec-stat {
  background: var(--ec-surface); border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius-sm); padding: 1rem;
}
.ec-stat span { display: block; color: var(--ec-muted); font-size: 0.78rem; font-weight: 600; }
.ec-stat strong {
  display: block; margin-top: 0.25rem; font-family: var(--ec-display); font-size: 1.35rem;
}

/* ── Admin shell ── */
.ec-admin--v2 .ec-admin__brand { margin-bottom: 1rem; padding: 0 0.35rem; }
.ec-admin--v2 .ec-admin__brand strong {
  display: block; font-family: var(--ec-display); font-size: 1.15rem; margin-top: 0.2rem;
}
.ec-admin__side-foot {
  margin-top: 1.25rem; display: grid; gap: 0.4rem; padding-top: 1rem;
  border-top: 1px solid rgba(248,113,113,0.15);
}
.ec-admin__top {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end;
  justify-content: space-between; margin-bottom: 1.25rem;
}
.ec-admin__top h1 { margin: 0 0 0.25rem; font-size: 1.55rem; }
.ec-admin__top-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.ec-admin-split {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 1rem; margin-bottom: 0.25rem;
}
.ec-admin {
  display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - var(--ec-header-h));
}
.ec-admin__side {
  background: #09090f;
  border-right: 1px solid rgba(248, 113, 113, 0.18);
  padding: 1.25rem 0.9rem;
}
.ec-admin__side .ec-kicker { color: #fca5a5; }
.ec-admin__nav { display: grid; gap: 0.2rem; margin-top: 1rem; }
.ec-admin__nav a {
  padding: 0.6rem 0.75rem; border-radius: 10px; color: #94a3b8; font-weight: 600; font-size: 0.9rem;
}
.ec-admin__nav a:hover, .ec-admin__nav a.is-active {
  background: rgba(248, 113, 113, 0.12); color: #fecaca;
}
.ec-admin__main { padding: 1.5rem 1.25rem 3rem; background: #07070c; }
.ec-kpi-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.75rem; margin-bottom: 1.25rem;
}
.ec-kpi {
  background: #111118; border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; padding: 0.95rem;
}
.ec-kpi span { color: #94a3b8; font-size: 0.75rem; font-weight: 600; }
.ec-kpi strong {
  display: block; margin-top: 0.3rem; font-family: var(--ec-display); font-size: 1.25rem; color: #fff;
}
@media (max-width: 1100px) {
  .ec-char-grid, .ec-admin-split { grid-template-columns: 1fr; }
  .ec-member { grid-template-columns: 1fr; }
  .ec-member__side { position: static; }
}
@media (max-width: 900px) {
  .ec-admin { grid-template-columns: 1fr; }
  .ec-admin__side { border-right: 0; border-bottom: 1px solid rgba(248,113,113,0.18); }
  .ec-admin__nav { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .ec-kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .ec-stat-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .ec-kpi-grid, .ec-stat-row { grid-template-columns: 1fr 1fr; }
  .ec-char-card { grid-template-columns: 72px 1fr; }
}

/* ── Gallery / testimonials / CTA ── */
.ec-gallery {
  display: grid; gap: 0.85rem;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(140px, auto);
}
.ec-gallery figure {
  margin: 0; border-radius: var(--ec-radius); overflow: hidden;
  border: 1px solid var(--ec-border); aspect-ratio: 4/3;
  background: var(--ec-surface); position: relative;
}
.ec-gallery figure:nth-child(1),
.ec-gallery figure:nth-child(6) {
  grid-column: span 2; aspect-ratio: 16/10;
}
.ec-gallery__btn {
  display: block; width: 100%; height: 100%; padding: 0; border: 0;
  background: transparent; cursor: zoom-in; position: relative;
}
.ec-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.ec-gallery__btn:hover img { transform: scale(1.05); }
.ec-gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0.55rem 0.75rem; font-size: 0.78rem; font-weight: 600;
  color: #f8fafc; background: linear-gradient(transparent, rgba(5,5,8,0.85));
  pointer-events: none;
}
.ec-visual-band {
  position: relative; min-height: 280px; margin: 1.5rem 0;
  background: #0a0a12 center/cover no-repeat;
  background-image: linear-gradient(90deg, rgba(5,5,8,0.92), rgba(5,5,8,0.45)), var(--ec-band);
  display: grid; align-items: center;
  border-block: 1px solid rgba(124,58,237,0.25);
}
.ec-visual-band__inner { padding: 3rem 0; max-width: 42rem; }
.ec-visual-band h2 { margin: 0.35rem 0 0.6rem; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.ec-visual-band p { margin: 0; color: var(--ec-muted); }
.ec-product__img { aspect-ratio: 1 / 1; min-height: 200px; }
.ec-lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(5,5,8,0.88); backdrop-filter: blur(8px);
  display: grid; place-items: center; padding: 1.5rem;
  opacity: 0; visibility: hidden; transition: 0.2s;
}
.ec-lightbox.is-open { opacity: 1; visibility: visible; }
.ec-lightbox img {
  max-width: min(1100px, 100%); max-height: 85vh;
  border-radius: 14px; border: 1px solid rgba(248,250,252,0.15);
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
}
.ec-lightbox__close {
  position: absolute; top: 1rem; right: 1rem;
  width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid rgba(248,250,252,0.2); background: #111118; color: #fff;
  font-size: 1.4rem; cursor: pointer;
}
.ec-avatar {
  object-fit: cover; border: 2px solid rgba(34,211,238,0.45);
}
.ec-quote {
  padding: 1.3rem; background: var(--ec-surface); border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius); position: relative;
}
.ec-quote::before {
  content: "“"; font-family: var(--ec-display); font-size: 3rem;
  color: var(--ec-violet); position: absolute; top: 0.2rem; left: 0.8rem; opacity: 0.5;
}
.ec-quote p { margin: 1rem 0 0.8rem; color: var(--ec-muted); }
.ec-quote strong { color: var(--ec-text); }
.ec-cta-band {
  margin: 2rem 0 1rem; padding: 2.5rem 1.5rem; text-align: center;
  border-radius: calc(var(--ec-radius) + 4px);
  background:
    radial-gradient(500px 200px at 50% 0%, rgba(124,58,237,0.35), transparent 70%),
    var(--ec-surface);
  border: 1px solid rgba(124, 58, 237, 0.35);
}
.ec-cta-band h2 { margin: 0 0 0.5rem; }
.ec-cta-band p { margin: 0 auto 1.2rem; color: var(--ec-muted); max-width: 46ch; }
.ec-cta-band .ec-btn-row { justify-content: center; }

.ec-partners {
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center;
}
.ec-partners span {
  padding: 0.7rem 1.2rem; border-radius: 12px; border: 1px solid var(--ec-border);
  background: var(--ec-surface); font-weight: 700; font-family: var(--ec-display);
  color: var(--ec-muted); letter-spacing: 0.04em;
}

/* ── Toast / pagination ── */
.ec-toast {
  position: fixed; left: 50%; bottom: calc(var(--ec-banner-h) + 5.5rem);
  transform: translateX(-50%) translateY(20px);
  background: #111118; color: #fff; border: 1px solid rgba(34,211,238,0.35);
  padding: 0.7rem 1.1rem; border-radius: 999px; z-index: 1300;
  opacity: 0; visibility: hidden; transition: 0.25s; font-weight: 600; font-size: 0.9rem;
  box-shadow: var(--ec-shadow);
}
.ec-toast.is-show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.ec-pagination { display: flex; gap: 0.35rem; margin-top: 1rem; flex-wrap: wrap; }
.ec-pagination button {
  min-width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--ec-border);
  background: var(--ec-surface); color: var(--ec-text); cursor: pointer; font-weight: 600;
}
.ec-pagination button.is-active {
  background: var(--ec-violet); border-color: var(--ec-violet); color: #fff;
}

/* ── Footer ── */
.ec-footer {
  margin-top: 3rem; padding: 3rem 0 2rem;
  border-top: 1px solid var(--ec-border);
  background: linear-gradient(180deg, transparent, rgba(124,58,237,0.06));
}
.ec-footer__grid {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 1.5rem;
}
.ec-footer h3 {
  margin: 0 0 0.8rem; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ec-muted);
}
.ec-footer ul { list-style: none; margin: 0; padding: 0; }
.ec-footer li { margin-bottom: 0.4rem; }
.ec-footer a { color: var(--ec-muted); }
.ec-footer a:hover { color: var(--ec-cyan); }
.ec-footer__brand p { color: var(--ec-muted); max-width: 36ch; font-size: 0.92rem; }
.ec-footer__bottom {
  margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--ec-border);
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between;
  color: var(--ec-muted); font-size: 0.85rem;
}

.ec-main { min-height: 50vh; }
.ec-event {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.25rem; align-items: stretch;
}
.ec-event__visual {
  border-radius: var(--ec-radius); overflow: hidden; border: 1px solid var(--ec-border);
  min-height: 240px;
  background:
    radial-gradient(circle at 40% 40%, rgba(124,58,237,0.5), transparent 55%),
    radial-gradient(circle at 80% 20%, rgba(34,211,238,0.35), transparent 50%),
    #0c0c14;
}
.ec-event__visual img { width: 100%; height: 100%; object-fit: cover; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .ec-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .ec-kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .ec-stat-row { grid-template-columns: repeat(2, 1fr); }
  .ec-admin { grid-template-columns: 200px 1fr; }
  .ec-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .ec-nav, .ec-status-pill, .ec-connect-btn.desktop-only { display: none; }
  .ec-burger { display: flex; }
  .ec-grid-3, .ec-event, .ec-member { grid-template-columns: 1fr; }
  .ec-gallery { grid-template-columns: repeat(2, 1fr); }
  .ec-gallery figure:nth-child(1),
  .ec-gallery figure:nth-child(6) { grid-column: span 1; aspect-ratio: 4/3; }
  .ec-admin { grid-template-columns: 1fr; }
  .ec-admin__side { border-right: 0; border-bottom: 1px solid rgba(248,113,113,0.18); }
  .ec-admin__nav { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
@media (max-width: 640px) {
  .ec-grid-2, .ec-grid-4, .ec-gallery { grid-template-columns: 1fr; }
  .ec-kpi-grid, .ec-stat-row { grid-template-columns: 1fr 1fr; }
  .ec-hero { min-height: 85vh; }
  .ec-header__right .ec-btn--ghost { display: none; }
  .ec-footer__grid { grid-template-columns: 1fr; }
  body.ec-body.has-demo-banner { --ec-banner-h: 110px; }
}
@media (max-width: 380px) {
  .ec-kpi-grid, .ec-stat-row { grid-template-columns: 1fr; }
}
