/* Ekko Network — Twilight mode (dark navy, vibrant accents) */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500&family=Unbounded:wght@700;900&display=swap');

:root {
  /* Dark navy surfaces — deep cool background, layered panels */
  --s0: #0B1224;          /* canvas — deep navy */
  --s1: #141B30;          /* header / panels */
  --s2: #1A2238;          /* cards */
  --s3: #232C46;          /* hover surface */
  --s4: #2B3553;          /* active surface */
  --s-glow: rgba(94,234,212,0.08);

  /* Text — strong contrast on navy */
  --t0: #F1F5F9;          /* near-white */
  --t1: #CBD5E1;          /* body */
  --t2: #94A3B8;          /* muted */
  --t3: #64748B;          /* placeholder */

  /* Lines — soft on dark */
  --l1: rgba(148,163,184,0.10);
  --l2: rgba(148,163,184,0.18);

  /* Brand — Ekko teal vif sur dark */
  --brand-teal: #14B8A6;
  --brand-teal-bright: #5EEAD4;
  --brand-teal-deep: #0D9488;
  --brand-blue: #7A94FF;        /* bleu ekko sur fond sombre — le même que l'application */
  --brand-blue-bright: #A9BAFF;
  --brand-green: #4ADE80;       /* le point d'« ekko. » — le même que l'application */

  /* Status */
  --ok: #34D399;
  --info: #60A5FA;
  --warn: #FBBF24;
  --crit: #F87171;

  /* Module accents (dark mode — variantes claires/saturées pour lumineux sur navy) */
  --org: #5EEAD4;          /* teal-300 */
  --network: #60A5FA;      /* blue-400 */
  --network-deep: #3B82F6; /* blue-500 */
  --pulse: #A78BFA;        /* violet-400 */
  --pulse-live: #F0ABFC;   /* fuchsia-300 */
  --academy-care: #86EFAC; /* green-300 */
  --academy-cert: #7DD3FC; /* sky-300 */
  --academy-game: #FCD34D; /* amber-300 */
  --vote-engage: #FB923C;  /* orange-400 */
  --vote-gov: #94A3B8;     /* slate-400 */
  --vote-cert: #93C5FD;    /* blue-300 */

  /* Spacing */
  --s1-: 4px; --s2-: 8px; --s3-: 12px; --s4-: 16px; --s5-: 20px;
  --s6-: 24px; --s8-: 32px; --s10-: 40px; --s12-: 48px; --s16-: 64px;

  /* Radius */
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px; --r-full: 999px;

  /* Motion */
  --m-fast: 120ms cubic-bezier(.2,.8,.2,1);
  --m-base: 200ms cubic-bezier(.2,.8,.2,1);
  --m-slow: 320ms cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--s0);
  color: var(--t1);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  /* twilight backdrop — soft teal/violet glows on deep navy */
  background:
    radial-gradient(1100px 600px at 80% -10%, rgba(94,234,212,0.08), transparent 60%),
    radial-gradient(900px 500px at 5% 25%, rgba(96,165,250,0.06), transparent 60%),
    radial-gradient(900px 700px at 50% 115%, rgba(167,139,250,0.05), transparent 60%),
    var(--s0);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--brand-teal-bright);
  outline-offset: 2px;
  border-radius: 2px;
}
/* ============ TYPE ============ */
.t-display { font-size: clamp(44px, 6vw, 72px); font-weight: 600; letter-spacing: -2px; line-height: 1.02; color: var(--t0); }
.t-h1 { font-size: clamp(32px, 3.5vw, 44px); font-weight: 600; letter-spacing: -0.8px; line-height: 1.12; color: var(--t0); }
.t-h2 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; letter-spacing: -0.5px; line-height: 1.18; color: var(--t0); }
.t-h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.18px; line-height: 1.3; color: var(--t0); }
.t-body { font-size: 15px; font-weight: 400; line-height: 1.6; color: var(--t1); }
.t-bodyL { font-size: 17px; font-weight: 400; line-height: 1.6; color: var(--t1); }
.t-caption { font-size: 12px; color: var(--t2); line-height: 1.4; }
.t-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t2);
}
.t-metric { font-size: 28px; font-weight: 600; letter-spacing: -0.5px; color: var(--t0); }

/* ============ LAYOUT ============ */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

.section {
  padding: 96px 0;
}
.section-tight { padding: 64px 0; }
@media (max-width: 720px) {
  .section { padding: 64px 0; }
}

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 18, 36, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--l1);
}
.header-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 28px;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.brand-link svg { display: block; color: var(--brand-blue); }
.brand-wordmark {
  font-size: 26px;
  font-weight: 900;
  color: var(--t0);
  letter-spacing: -1px;
  font-family: 'Unbounded', 'Inter', sans-serif;
  line-height: 1;
}

/* ── L'onde vivante : les cinq barres du logo, qui respirent. ─────────── */
.h-onde { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.h-onde svg { height: 56px; width: auto; display: block; color: var(--brand-blue); overflow: visible; }
.h-onde rect { fill: currentColor; transform-box: fill-box; transform-origin: center; animation: ekko-respire 3.6s ease-in-out infinite; }
.h-onde rect:nth-child(1), .h-onde rect:nth-child(5) { animation-delay: .9s; }
.h-onde rect:nth-child(2), .h-onde rect:nth-child(4) { animation-delay: .45s; }
.h-onde .h-onde-mot { font-family: 'Unbounded', 'Inter', sans-serif; font-weight: 900; font-size: 34px; letter-spacing: -1.5px; color: var(--t0); line-height: 1; }
.h-onde .h-onde-mot .dot { color: var(--brand-green); }
@keyframes ekko-respire { 0%, 100% { transform: scaleY(.86); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .h-onde rect { animation: none; } }
.brand-wordmark .dot { color: var(--brand-green); }

.nav-primary {
  display: flex;
  gap: 4px;
  align-items: center;
  flex: 1;
}
.nav-primary a {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--t1);
  border-radius: var(--r-md);
  transition: var(--m-fast);
  font-weight: 500;
  text-decoration: none;
}
.nav-primary a:hover,
.nav-primary a.active {
  background: var(--s2);
  color: var(--t0);
}
.nav-primary a.has-caret::after {
  content: "▾";
  display: inline-block;
  margin-left: 6px;
  font-size: 9px;
  color: var(--t2);
  vertical-align: middle;
}

/* Nav dropdown — Produit ▾ qui révèle les 4 modules au hover */
.nav-dropdown { position: relative; }
.nav-dropdown > .dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  flex-direction: column;
  background: var(--s1);
  border: 1px solid var(--l2);
  border-radius: var(--r-md);
  padding: 6px;
  min-width: 240px;
  box-shadow: 0 18px 44px -12px rgba(0, 0, 0, 0.55);
  list-style: none;
  margin: 0;
  z-index: 110;
}
.nav-dropdown:hover > .dropdown,
.nav-dropdown:focus-within > .dropdown { display: flex; }
.nav-dropdown .dropdown li { list-style: none; }
.nav-dropdown .dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--t1);
  font-weight: 500;
  text-decoration: none;
}
.nav-dropdown .dropdown a:hover {
  background: var(--s3);
  color: var(--t0);
}
.nav-dropdown .dropdown a .mod-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.nav-dropdown .dropdown a small {
  margin-left: auto;
  color: var(--t3);
  font-size: 11px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Le menu des langues. Trois boutons côte à côte ne tenaient plus à huit
   langues : un bouton qui dit la langue courante, une liste qui s'ouvre.
   Le contenu est fabriqué par i18n.js, à partir de sa liste de langues. */
.lang-toggle {
  position: relative;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.lang-toggle .lang-courante {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--s3);
  border: 1px solid var(--l1);
  border-radius: var(--r-full);
  padding: 8px 12px;
  color: var(--t0);
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  transition: var(--m-fast);
}
.lang-toggle .lang-courante:hover { border-color: var(--l2); }
.lang-toggle .lang-fleche { font-size: 9px; color: var(--t2); }
.lang-toggle .lang-liste {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 60;
  min-width: 190px;
  max-height: min(60vh, 420px);
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--s2);
  border: 1px solid var(--l1);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}
.lang-toggle.ouvert .lang-liste { display: block; }
.lang-toggle .lang-liste li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  color: var(--t1);
  cursor: pointer;
}
.lang-toggle .lang-liste li:hover,
.lang-toggle .lang-liste li:focus-visible { background: var(--s3); outline: none; }
.lang-toggle .lang-liste li.active { color: var(--t0); background: var(--s3); }
.lang-toggle .lang-liste .lang-code { width: 22px; color: var(--t2); }
.lang-toggle .lang-liste .lang-nom {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--t0);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

@media (max-width: 980px) {
  .mobile-menu-btn { display: block; }
  .nav-primary, .header-actions { display: none; }
  
  .site-header.mobile-menu-open .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding-bottom: 20px;
  }
  .site-header.mobile-menu-open .nav-primary,
  .site-header.mobile-menu-open .header-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
  }
  .site-header.mobile-menu-open .lang-toggle .lang-liste { right: auto; left: 0; }
  .site-header.mobile-menu-open .nav-primary {
    order: 3;
    padding-top: 16px;
    border-top: 1px solid var(--l2);
    margin-top: 16px;
    gap: 16px;
  }
  .site-header.mobile-menu-open .nav-primary a {
    font-size: 16px;
  }
  .site-header.mobile-menu-open .nav-dropdown > .dropdown {
    position: relative;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
    background: transparent;
    display: flex;
    margin-top: 8px;
  }
  .site-header.mobile-menu-open .header-actions {
    order: 4;
    margin-top: 16px;
    gap: 12px;
  }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: var(--m-fast);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand-blue);
  color: white;
  box-shadow: 0 1px 0 rgba(255,255,255,0.22) inset, 0 6px 18px -6px rgba(46,107,255,0.55);
}
.btn-primary:hover {
  background: var(--brand-blue-bright);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 10px 24px -6px rgba(46,107,255,0.7);
}
.btn-ghost {
  background: transparent;
  color: var(--t0);
  border: 1px solid var(--l2);
}
.btn-ghost:hover { background: var(--s2); border-color: var(--t2); }

.btn-lg { padding: 14px 22px; font-size: 15px; }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 96px 0 72px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--r-full);
  background: rgba(46,107,255,0.08);
  border: 1px solid rgba(46,107,255,0.20);
  margin-bottom: 24px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--brand-green);
  border-radius: var(--r-full);
  box-shadow: 0 0 8px var(--brand-green);
  animation: pulse 2.4s ease-in-out infinite;
}
.hero-eyebrow span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--t1);
  text-transform: uppercase;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero h1 {
  margin: 0 0 24px;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--brand-blue-bright) 30%, var(--brand-green) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero h1 .accent-green {
  color: var(--brand-green);
}
.hero-sub {
  font-size: 18px;
  color: var(--t1);
  max-width: 540px;
  margin: 0 0 32px;
  line-height: 1.55;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-trust {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--t2);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust .ic { color: var(--brand-green); }

/* hero visual */
.hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.05;
  max-width: 540px;
  margin-left: auto;
  border-radius: var(--r-xl);
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(45% 45% at 30% 50%, rgba(46,107,255,0.18), transparent 60%),
    radial-gradient(35% 35% at 70% 70%, rgba(33,185,122,0.10), transparent 60%);
  filter: blur(40px);
  z-index: 0;
}

.phone-mock {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.phone {
  width: 268px;
  height: 540px;
  background: linear-gradient(180deg, #0a0e1f 0%, #050813 100%);
  border-radius: 38px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 0 0 8px #1a1f33,
    0 30px 80px -20px rgba(46,107,255,0.30),
    0 60px 120px -30px rgba(11,20,48,0.18);
  position: relative;
  overflow: hidden;
}
.phone-screen {
  position: absolute;
  inset: 14px;
  border-radius: 28px;
  background: linear-gradient(180deg, #0d1430 0%, #060a1f 100%);
  display: flex;
  flex-direction: column;
  padding: 36px 18px 18px;
}
.phone-notch {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 22px;
  background: #000;
  border-radius: var(--r-full);
}
.phone-status {
  position: absolute;
  top: 18px;
  left: 24px; right: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 500;
  color: var(--t1);
}
.phone-app-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
  margin-top: 6px;
}
.phone-q {
  font-size: 16px;
  font-weight: 600;
  color: var(--t0);
  margin: 0 0 14px;
  line-height: 1.3;
}
.phone-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--r-md);
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 500;
}
.phone-opt .dot { width: 8px; height: 8px; border-radius: var(--r-full); background: rgba(255,255,255,0.85); }
.phone-opt.yes { background: linear-gradient(180deg, #1f9e63, #178050); color: white; }
.phone-opt.no { background: linear-gradient(180deg, #d23a36, #a82a26); color: white; }
.phone-opt.ns { background: linear-gradient(180deg, #2c4d8a, #1f3866); color: white; }
.phone-cta {
  margin-top: 14px;
  padding: 12px;
  background: linear-gradient(180deg, var(--brand-blue-bright), var(--brand-blue));
  color: white;
  text-align: center;
  font-weight: 600;
  border-radius: var(--r-md);
  font-size: 13px;
}
.phone-foot {
  margin-top: auto;
  padding-top: 12px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--t2);
  text-transform: uppercase;
}

/* waveform behind phone */
.hero-wave {
  position: absolute;
  left: -8%;
  top: 35%;
  width: 60%;
  height: 30%;
  z-index: 1;
  filter: drop-shadow(0 0 24px rgba(46,107,255,0.35));
}

/* avatar nodes around phone */
.avatar-node {
  position: absolute;
  width: 44px; height: 44px;
  border-radius: var(--r-full);
  background: #FFFFFF;
  border: 2px solid var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--t0);
  z-index: 3;
  box-shadow: 0 8px 24px rgba(11,20,48,0.12);
}
.avatar-node.a1 { top: 8%; left: 12%; }
.avatar-node.a2 { top: 6%; right: 16%; }
.avatar-node.a3 { top: 38%; right: 4%; background: var(--brand-blue); color: white; }
.avatar-node.a4 { bottom: 22%; right: 10%; }
.avatar-node.a5 { bottom: 8%; left: 18%; }
.avatar-node.a6 { top: 40%; left: 4%; }

.bubble {
  position: absolute;
  width: 28px; height: 28px;
  border-radius: 8px 8px 8px 2px;
  background: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: white;
  z-index: 3;
  box-shadow: 0 6px 18px rgba(46,107,255,0.5);
}
.bubble.b1 { top: 24%; right: 26%; }
.bubble.b2 { top: 56%; right: 22%; background: var(--brand-green); box-shadow: 0 6px 18px rgba(33,185,122,0.5); }

@media (max-width: 720px) {
  .hero-visual { max-width: 360px; margin: 0 auto; }
  .phone { width: 220px; height: 444px; }
  .phone-screen { padding: 32px 14px 14px; }
  .avatar-node { width: 36px; height: 36px; font-size: 10px; }
}

/* ============ SECTIONS ============ */
.section-head {
  text-align: center;
  margin-bottom: 56px;
}
.section-head .t-label {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--brand-blue-bright);
}
.section-head h2 {
  margin: 0 0 16px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.section-head p {
  max-width: 580px;
  margin: 0 auto;
  color: var(--t1);
  font-size: 17px;
}

/* ============ MODULES GRID ============ */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.module-card {
  position: relative;
  background: var(--s2);
  border: 1px solid var(--l1);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  transition: var(--m-base);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 240px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(11,20,48,0.04), 0 4px 12px rgba(11,20,48,0.04);
}
.module-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 100% at 0% 0%, var(--accent-faint, transparent), transparent 60%);
  opacity: 0.6;
  pointer-events: none;
}
.module-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent, var(--l2));
  box-shadow: 0 20px 40px -20px var(--accent-glow, rgba(0,0,0,0.4));
}
.module-card.organisation { grid-column: span 4; --accent: var(--org); --accent-faint: rgba(13,148,136,0.08); --accent-glow: rgba(13,148,136,0.18); }
.module-card.network { grid-column: span 8; --accent: var(--network); --accent-faint: rgba(46,107,255,0.08); --accent-glow: rgba(46,107,255,0.20); }
.module-card.pulse { grid-column: span 6; --accent: var(--pulse); --accent-faint: rgba(124,58,237,0.08); --accent-glow: rgba(124,58,237,0.20); }
.module-card.academy { grid-column: span 6; --accent: var(--academy-cert); --accent-faint: rgba(2,132,199,0.08); --accent-glow: rgba(2,132,199,0.20); }
.module-card.vote { grid-column: span 8; --accent: var(--vote-cert); --accent-faint: rgba(29,78,216,0.08); --accent-glow: rgba(29,78,216,0.20); }
.module-card.survey { grid-column: span 4; --accent: var(--vote-gov); --accent-faint: rgba(71,85,105,0.06); --accent-glow: rgba(71,85,105,0.15); opacity: 0.78; }
@media (max-width: 980px) {
  .module-card { grid-column: span 12 !important; min-height: 200px; }
}

.module-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.module-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  background: var(--accent-faint);
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.module-name {
  font-size: 19px;
  font-weight: 600;
  color: var(--t0);
  letter-spacing: -0.2px;
}
.module-name small {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
  margin-top: 2px;
  font-weight: 500;
}
.module-pitch {
  font-size: 15px;
  color: var(--t1);
  margin: 0;
  flex: 1;
}
.module-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.module-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
}
.module-link::after {
  content: "→";
  transition: var(--m-fast);
}
.module-card:hover .module-link::after { transform: translateX(3px); }

.module-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: var(--accent-faint);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}
.coming-pill {
  background: rgba(148,163,184,0.10);
  border-color: var(--vote-gov);
  color: var(--vote-gov);
}

/* ============ MATRIX ============ */
.matrix-wrap {
  background: var(--s1);
  border: 1px solid var(--l1);
  border-radius: var(--r-xl);
  padding: 40px;
}
@media (max-width: 720px) { .matrix-wrap { padding: 24px; } }

.matrix {
  display: grid;
  grid-template-columns: 200px repeat(3, 1fr);
  gap: 1px;
  background: var(--l1);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.matrix-cell {
  background: var(--s2);
  padding: 18px 16px;
  font-size: 14px;
  color: var(--t1);
}
.matrix-cell.head {
  background: var(--s3);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--t0);
  font-weight: 600;
}.matrix-cell.head.row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.matrix-cell.head.row .swatch {
  width: 8px; height: 24px; border-radius: 2px;
}
.matrix-cell strong {
  display: block;
  color: var(--t0);
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 14px;
}
.matrix-cell em {
  font-style: normal;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.matrix-cell.empty { color: var(--t3); font-style: italic; }
@media (max-width: 720px) {
  .matrix { grid-template-columns: 1fr; }
  .matrix-cell.head.col { display: none; }
  .matrix-cell { border-bottom: 1px solid var(--l1); }
}

/* ============ TRUST ============ */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 56px;
}
@media (max-width: 980px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .trust-grid { grid-template-columns: 1fr; } }

.trust-card {
  background: var(--s2);
  border: 1px solid var(--l1);
  border-radius: var(--r-lg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 1px 2px rgba(11,20,48,0.04);
}
.trust-card .ic {
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  background: rgba(46,107,255,0.10);
  border: 1px solid rgba(46,107,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue-bright);
}
.trust-card h4 {
  margin: 0;
  color: var(--t0);
  font-size: 15px;
  font-weight: 600;
}
.trust-card p {
  margin: 0;
  font-size: 13px;
  color: var(--t2);
  line-height: 1.5;
}

/* ============ MODULE SPOTLIGHT (Vote) ============ */
.spotlight {
  background:
    radial-gradient(800px 400px at 80% 50%, rgba(46,107,255,0.06), transparent 60%),
    var(--s1);
  border: 1px solid var(--l1);
  border-radius: var(--r-xl);
  padding: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  box-shadow: 0 1px 3px rgba(11,20,48,0.05), 0 20px 40px -25px rgba(11,20,48,0.10);
}
@media (max-width: 980px) {
  .spotlight { grid-template-columns: 1fr; padding: 36px 28px; gap: 36px; }
}
.spotlight h3 {
  margin: 14px 0 16px;
}
.spotlight ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.spotlight li {
  display: flex;
  gap: 12px;
  font-size: 15px;
  color: var(--t1);
  line-height: 1.5;
}
.spotlight li::before {
  content: "";
  flex-shrink: 0;
  margin-top: 8px;
  width: 6px; height: 6px;
  background: var(--vote-cert);
  border-radius: var(--r-full);
}

.vote-modes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.vote-mode {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--s2);
  border: 1px solid var(--l1);
  border-left: 3px solid var(--mode-c);
  border-radius: var(--r-md);
}
.vote-mode .name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--mode-c);
  font-weight: 600;
  text-transform: uppercase;
}
.vote-mode .desc {
  font-size: 13px;
  color: var(--t1);
}
.vote-mode .for {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--t2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.vote-mode.engage { --mode-c: var(--vote-engage); }
.vote-mode.gov { --mode-c: var(--vote-gov); }
.vote-mode.cert { --mode-c: var(--vote-cert); }

@media (max-width: 540px) {
  .vote-mode { grid-template-columns: 1fr; gap: 6px; }
  .vote-mode .for { justify-self: start; }
}

/* ============ FINAL CTA ============ */
.final-cta {
  text-align: center;
  background: linear-gradient(180deg, #FFFFFF, var(--s0));
  border: 1px solid var(--l1);
  border-radius: var(--r-xl);
  padding: 72px 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(11,20,48,0.04), 0 20px 50px -25px rgba(11,20,48,0.10);
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: -50% -10% auto -10%;
  height: 100%;
  background: radial-gradient(50% 80% at 50% 0%, rgba(46,107,255,0.10), transparent 70%);
  pointer-events: none;
}
.final-cta h2 { margin: 0 0 12px; position: relative; }
.final-cta p { max-width: 560px; margin: 0 auto 32px; color: var(--t1); position: relative; font-size: 17px; }
.final-cta .btn-row {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  position: relative;
}

/* ============ FOOTER ============ */
.site-foot {
  background: var(--s1);
  border-top: 1px solid var(--l1);
  padding: 24px 0 !important;
  margin-top: 64px;
}
.site-foot .container {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap;
  gap: 24px !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}
.site-foot .foot-grid, .site-foot .foot-brand {
  display: flex !important;
  margin: 0 !important;
  padding: 0 !important;
  grid-template-columns: none !important;
  border: none !important;
  align-items: center;
}
.site-foot .foot-grid { margin-bottom: 0 !important; }
.site-foot .foot-brand p { display: none; } /* Hide any text underneath the logo if it exists */

.site-foot .foot-bottom {
  display: flex !important;
  flex: 1 !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 0 !important;
  border-top: none !important;
  font-size: 12px;
  color: var(--t2);
  flex-wrap: wrap;
  gap: 16px !important;
}
.site-foot .legal {
  display: flex !important;
  gap: 20px !important;
  margin-left: auto !important;
}
.site-foot .legal a {
  color: var(--t2);
  transition: var(--m-fast);
}
.site-foot .legal a:hover {
  color: var(--t0);
}

@media (max-width: 768px) {
  .site-foot .container {
    flex-direction: column !important;
    text-align: center;
    gap: 16px !important;
  }
  .site-foot .foot-bottom {
    flex-direction: column !important;
    justify-content: center !important;
    gap: 12px !important;
  }
  .site-foot .legal {
    justify-content: center !important;
    margin-left: 0 !important;
  }
}

/* ============ WAVEFORM ANIMATION ============ */
.wave-animated rect {
  animation: wavePulse 1.6s ease-in-out infinite;
  transform-origin: center;
}
.wave-animated rect:nth-child(1) { animation-delay: 0s; }
.wave-animated rect:nth-child(2) { animation-delay: 0.1s; }
.wave-animated rect:nth-child(3) { animation-delay: 0.2s; }
.wave-animated rect:nth-child(4) { animation-delay: 0.3s; }
.wave-animated rect:nth-child(5) { animation-delay: 0.2s; }
.wave-animated rect:nth-child(6) { animation-delay: 0.1s; }
.wave-animated rect:nth-child(7) { animation-delay: 0s; }
@keyframes wavePulse {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.55); }
}

/* ============ DEMO MODAL ============ */
.modal-back {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(11,20,48,0.42);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: var(--m-base);
}
.modal-back.open { opacity: 1; pointer-events: auto; }
.modal-card {
  background: #FFFFFF;
  border: 1px solid var(--l2);
  border-radius: var(--r-xl);
  padding: 36px;
  max-width: 480px;
  width: 100%;
  transform: translateY(8px) scale(0.98);
  transition: var(--m-base);
  box-shadow: 0 40px 80px -20px rgba(11,20,48,0.25);
}
.modal-back.open .modal-card { transform: none; }
.modal-card h3 { margin: 0 0 8px; }
.modal-card p { margin: 0 0 24px; color: var(--t1); font-size: 14px; }
.modal-card label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--t1);
  margin-bottom: 6px;
}
.modal-card input, .modal-card select {
  width: 100%;
  padding: 11px 14px;
  background: var(--s0);
  border: 1px solid var(--l2);
  border-radius: var(--r-md);
  color: var(--t0);
  font-family: inherit;
  font-size: 14px;
  margin-bottom: 14px;
  transition: var(--m-fast);
}
.modal-card input:focus, .modal-card select:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(46,107,255,0.15);
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  color: var(--t2);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: var(--r-md);
}
.modal-close:hover { background: var(--s3); color: var(--t0); }
.modal-card { position: relative; }
.modal-success {
  text-align: center;
  padding: 20px 0;
}
.modal-success .check {
  width: 56px; height: 56px;
  border-radius: var(--r-full);
  background: rgba(33,185,122,0.10);
  border: 1px solid var(--brand-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-green);
  margin-bottom: 18px;
}

/* ============ SCROLL REVEAL ============ */
/* Visible par défaut. L'effet d'apparition au scroll requiert un
   IntersectionObserver JS qui ajoute la classe .reveal.in — quand on
   l'ajoutera (P5+), on rebascule .reveal à opacity:0 pour amorcer
   l'animation. En attendant, on ne cache rien. */
.reveal { opacity: 1; }
.reveal.in { opacity: 1; transform: none; }

/* ============ MOCK SCREENSHOTS — LIGHT INVERTED ============
   Toutes les "vignettes faux screenshots" passent en mode LIGHT local
   (fond blanc, texte sombre) pour créer un contraste maximum sur le
   dark navy du site. On override les tokens uniquement à l'intérieur
   des classes mocks — les couleurs accent (orange/vert/violet/bleu)
   restent visibles puisqu'elles sont saturées. */
.cv-board, .pm-app, .sm-feed,
.cm-app, .cm-grade,
.lm-stage, .mm-board,
.em-ballot, .em-list, .ce-panel, .gv-board, .ballot, .pulse-demo,
.aca-case-mock, .pul-case-mock, .net-case-mock, .vot-case-mock {
  --s0: #FAFBFF;
  --s1: #FFFFFF;
  --s2: #FFFFFF;
  --s3: #F1F4FB;
  --s4: #E6EBF7;
  --t0: #0B1430;
  --t1: #2A3556;
  --t2: #5A6790;
  --t3: #99A2BD;
  --l1: rgba(11,20,48,0.08);
  --l2: rgba(11,20,48,0.14);
  color: var(--t1);
}


/* ============ MODULE LOGOS (PNG with screen blend) ============
   Les PNG modules ont un fond noir (Gemini-generated). Sur fond dark navy,
   `mix-blend-mode: screen` rend le noir invisible : le logo coloré flotte
   naturellement sur le canvas sans bordure visible. */
.mod-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(0,0,0,0.30));
}
/* Tailles par contexte (sinon img prend 100% du parent qui peut être trop grand) */
.mod-eyebrow .mod-img { width: 36px; height: 36px; }
.prod-card .head .icon .mod-img { width: 56px; height: 56px; }

/* Hero brand des pages module : gros logo + nom module en grand */
.mod-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}
.mod-brand-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(0,0,0,0.40));
  flex-shrink: 0;
}
.mod-brand-name {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -1.5px;
  margin: 0;
  line-height: 1;
}
@media (max-width: 720px) {
  .mod-brand { flex-direction: column; align-items: flex-start; gap: 12px; }
  .mod-brand-logo { width: 80px; height: 80px; }
}
