/* ================================================================
   ZADY — v0.3 · Stripe mechanics + ZADY palette
   - Hero dark mesh gradient (vert profond + or + crème)
   - Alternance sections dark / white / off-white
   - Mega menus riches façon Stripe
   - Typo massive (titres jusqu'à 112px)
   - Bloc data live en hero
   - Polices : General Sans (Söhne-like, gratuit Fontshare) + Tiempos / Source Serif
   ================================================================ */

/* --------------------------- TOKENS --------------------------- */

:root {
  /* Hero / dark surfaces — ZADY ink */
  --ink: #03190F;             /* hero deepest, presque noir vert */
  --ink-2: #051F14;
  --ink-3: #082A1B;
  --ink-line: rgba(255,255,255,0.08);
  --ink-line-strong: rgba(255,255,255,0.16);
  --on-ink: #E8F1EC;          /* texte sur fond sombre */
  --on-ink-muted: #8FA095;
  --on-ink-soft: #5C6B62;

  /* Light surfaces */
  --bg: #FFFFFF;              /* sections principales */
  --bg-soft: #F6F9F7;         /* off-white verdâtre subtil (équivalent Stripe #F6F9FC) */
  --bg-cream: #F4EFE5;        /* signature ivoire ZADY pour quelques sections */
  --bg-paper: #FAFCFB;
  --bg-pale-green: #E5F0EB;
  --bg-card: #FFFFFF;

  /* ZADY colors */
  --green: #0A5C3B;           /* vert ZADY signature */
  --green-2: #07472D;
  --green-deep: #051F14;
  --green-bright: #14C77B;    /* vert vif pour CTA et accents lumineux */
  --green-bright-2: #34D58F;
  --green-soft: rgba(20, 199, 123, 0.10);
  --gold: #C9A05B;            /* or chaud accent */
  --gold-bright: #E5B968;
  --gold-soft: rgba(201, 160, 91, 0.12);
  --terracotta: #C16E48;      /* accent ponctuel chaud */
  --red: #C5392F;
  --red-soft: rgba(197, 57, 47, 0.08);

  /* Text */
  --text: #051F14;
  --text-muted: #4A5A50;
  --text-soft: #79877F;
  --text-on-cream: #1B2920;

  /* Lines */
  --line: #E5E8E5;
  --line-soft: #EFF1EE;
  --line-strong: #C9CFCB;

  /* Typography */
  --serif: 'Tiempos Headline', 'Source Serif Pro', 'Tiempos Text', 'Iowan Old Style', Georgia, serif;
  --sans: 'General Sans', 'Inter', -apple-system, system-ui, sans-serif;
  --display: 'General Sans', 'Inter', -apple-system, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, "SF Mono", Menlo, monospace;

  /* Layout */
  --container-max: 1280px;
  --container-narrow: 760px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --d-fast: 180ms;
  --d-base: 280ms;
  --d-slow: 480ms;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(5, 31, 20, 0.04), 0 2px 6px rgba(5, 31, 20, 0.04);
  --shadow-md: 0 4px 12px rgba(5, 31, 20, 0.06), 0 12px 32px rgba(5, 31, 20, 0.06);
  --shadow-lg: 0 12px 32px rgba(5, 31, 20, 0.10), 0 32px 64px rgba(5, 31, 20, 0.08);
  --shadow-glow: 0 0 0 1px rgba(20, 199, 123, 0.18), 0 8px 24px rgba(20, 199, 123, 0.16);
}

/* --------------------------- BASE --------------------------- */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  /* Empêche le débordement horizontal induit par le menu off-canvas
     (.mobile-menu translaté à 100%). 'clip' n'établit pas de conteneur de
     défilement -> ne casse pas position:sticky (topbar). */
  overflow-x: clip;
}

/* Honeypot anti-spam de la newsletter (Netlify) — hors flux, invisible */
.nl-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}
/* Liens légaux du bas de footer */
.footer-legal-links {
  margin: 6px 0 0;
  font-size: 12.5px;
  opacity: 0.8;
}
.footer-legal-links a { color: inherit; text-decoration: none; }
.footer-legal-links a:hover { text-decoration: underline; }

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
::selection { background: var(--green-bright); color: var(--ink); }

button { font-family: inherit; }

/* --------------------------- LAYOUT --------------------------- */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 32px;
}

/* --------------------------- TOPBAR — DARK ON DARK HERO --------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: transparent;
  transition: background var(--d-base) var(--ease-out), border-color var(--d-base);
  border-bottom: 1px solid transparent;
}
.topbar.is-dark {
  background: rgba(3, 25, 15, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  color: var(--on-ink);
  border-bottom-color: var(--ink-line);
}
.topbar.is-dark .nav-link { color: var(--on-ink); }
.topbar.is-dark .icon-btn,
.topbar.is-dark .kbd-hint {
  color: var(--on-ink);
  border-color: var(--ink-line-strong);
}
.topbar.is-dark .kbd-hint .kbd {
  background: rgba(255,255,255,0.06);
  border-color: var(--ink-line-strong);
}
.topbar.is-dark .brand,
.topbar.is-dark .brand-text { color: var(--on-ink); }
.topbar.is-light {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line-soft);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  max-width: var(--container-max);
  margin: 0 auto;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.025em;
  color: var(--text);
  flex-shrink: 0;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--green-bright) 0%, var(--green) 100%);
  color: #fff;
  border-radius: 8px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.04em;
  line-height: 1;
}
.brand-text { letter-spacing: -0.025em; }

.primary-nav {
  display: flex;
  gap: 4px;
  align-items: center;
}
.primary-nav .nav-item { position: relative; }
.primary-nav .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--d-fast) var(--ease-out), color var(--d-fast);
  background: transparent;
  border: none;
  color: var(--text);
}
.primary-nav .nav-link:hover { color: var(--green-bright); background: rgba(20, 199, 123, 0.08); }
.topbar.is-dark .primary-nav .nav-link:hover { background: rgba(255,255,255,0.06); }
.primary-nav .nav-link.active { color: var(--green-bright); }

/* Badge PRO en exposant — header clair (par défaut) */
.nav-pro {
  display: inline-flex;
  align-items: center;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  padding: 2px 5px 2px 5px;
  margin-left: 5px;
  border-radius: 999px;
  background: rgba(20,199,123,0.10);
  color: var(--green);
  border: 1px solid rgba(20,199,123,0.22);
  position: relative;
  top: -7px;
  vertical-align: top;
  white-space: nowrap;
  transition: background var(--d-fast), color var(--d-fast), border-color var(--d-fast);
}
/* Header sombre (homepage, intelligence) */
.topbar.is-dark .nav-pro {
  background: rgba(255,255,255,0.10);
  color: rgba(232,241,236,0.92);
  border-color: rgba(255,255,255,0.22);
}
/* Hover : on garde la teinte verte cohérente */
.nav-link:hover .nav-pro {
  background: rgba(20,199,123,0.16);
  color: var(--green);
  border-color: rgba(20,199,123,0.32);
}
.topbar.is-dark .nav-link:hover .nav-pro {
  background: rgba(20,199,123,0.18);
  color: var(--green-bright);
  border-color: rgba(20,199,123,0.40);
}
/* Mobile menu (fond sombre) — version translucide */
.mobile-menu .nav-pro {
  background: rgba(255,255,255,0.10);
  color: rgba(232,241,236,0.92);
  border-color: rgba(255,255,255,0.18);
  top: -4px; /* exposant moins prononcé en menu mobile */
  margin-left: 6px;
}
@media (max-width: 720px) {
  .nav-pro { font-size: 8.5px; padding: 1px 4px; top: -6px; }
}

/* Entrée PRO — univers professionnel, discret et premium (gold) */
.nav-link.nav-pro-entry {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(201,160,91,0.10);
  border: 1px solid rgba(201,160,91,0.22);
  transition: color var(--d-fast), background var(--d-fast), border-color var(--d-fast);
}
.nav-link.nav-pro-entry:hover {
  color: var(--gold-bright);
  background: rgba(201,160,91,0.16);
  border-color: rgba(201,160,91,0.32);
}
.nav-link.nav-pro-entry.active {
  color: var(--ink);
  background: var(--gold-bright);
  border-color: var(--gold-bright);
}
.topbar.is-dark .nav-link.nav-pro-entry {
  color: var(--gold-bright);
  background: rgba(201,160,91,0.14);
  border-color: rgba(201,160,91,0.30);
}
.topbar.is-dark .nav-link.nav-pro-entry:hover {
  color: #fff;
  background: rgba(201,160,91,0.24);
  border-color: rgba(201,160,91,0.42);
}
.topbar.is-dark .nav-link.nav-pro-entry.active {
  color: var(--ink);
  background: var(--gold-bright);
  border-color: var(--gold-bright);
}

.nav-link svg.chev {
  width: 11px; height: 11px;
  transition: transform var(--d-fast);
  opacity: 0.7;
}
.nav-item.is-open .nav-link svg.chev { transform: rotate(180deg); }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  color: var(--text);
  transition: all var(--d-fast);
}
.icon-btn:hover { border-color: var(--green-bright); color: var(--green-bright); }
.icon-btn svg { width: 16px; height: 16px; }

.kbd-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 14px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--d-fast);
  font-family: var(--sans);
}
.kbd-hint:hover { border-color: var(--green-bright); color: var(--green-bright); }
.kbd-hint .kbd {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  padding: 2px 6px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
}

/* --------------------------- MEGA MENU PANELS --------------------------- */

.nav-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 800px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px 28px 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--d-base) var(--ease-out), transform var(--d-base) var(--ease-out), visibility var(--d-base);
  color: var(--text);
}
.nav-item.is-open .nav-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.nav-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.nav-panel-section h4 {
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-soft);
  font-weight: 600;
  margin: 0 0 14px;
}
.nav-panel-link {
  display: flex;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  margin: 0 -14px;
  transition: background var(--d-fast);
  cursor: pointer;
}
.nav-panel-link:hover { background: var(--bg-soft); }
.nav-panel-link .icon-wrap {
  flex: 0 0 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--bg-pale-green) 0%, #FFFFFF 100%);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(10, 92, 59, 0.12);
}
.nav-panel-link .icon-wrap svg { width: 16px; height: 16px; }
.nav-panel-link .text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.nav-panel-link .text span {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}
.nav-panel-callout {
  grid-column: 1 / -1;
  margin: 16px -12px -4px;
  padding: 18px 22px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-3) 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--on-ink);
  position: relative;
  overflow: hidden;
}
.nav-panel-callout::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 300px 200px at 80% 50%, rgba(20, 199, 123, 0.18) 0%, transparent 60%);
  pointer-events: none;
}
.nav-panel-callout > * { position: relative; z-index: 1; }
.nav-panel-callout p { margin: 0; font-size: 13.5px; max-width: 460px; line-height: 1.5; }
.nav-panel-callout p strong { color: var(--green-bright); font-weight: 600; }
.nav-panel-callout a {
  font-size: 13px;
  font-weight: 600;
  color: var(--green-bright);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* --------------------------- BUTTONS --------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  font-weight: 600;
  font-family: var(--sans);
  cursor: pointer;
  border: none;
  transition: all var(--d-fast) var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.btn-primary {
  background: linear-gradient(135deg, var(--green-bright) 0%, var(--green) 100%);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 4px 14px rgba(20, 199, 123, 0.25);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 8px 22px rgba(20, 199, 123, 0.32);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--green-bright); color: var(--green-bright); }
.btn-on-ink {
  background: rgba(255,255,255,0.10);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(8px);
}
.btn-on-ink:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.36); }

/* --------------------------- HERO — DARK MESH GRADIENT --------------------------- */

.hero-dark {
  position: relative;
  background: var(--ink);
  color: var(--on-ink);
  overflow: hidden;
  padding: 96px 0 120px;
}
/* Mesh gradient — multiple radial gradients animated */
.hero-mesh {
  position: absolute;
  inset: -200px -10% -10% -10%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 720px 500px at 12% 18%, rgba(20, 199, 123, 0.45) 0%, transparent 60%),
    radial-gradient(ellipse 600px 460px at 88% 22%, rgba(201, 160, 91, 0.32) 0%, transparent 60%),
    radial-gradient(ellipse 700px 500px at 30% 75%, rgba(10, 92, 59, 0.65) 0%, transparent 60%),
    radial-gradient(ellipse 600px 420px at 78% 80%, rgba(193, 110, 72, 0.18) 0%, transparent 65%),
    radial-gradient(ellipse 500px 360px at 55% 45%, rgba(52, 213, 143, 0.18) 0%, transparent 60%);
  filter: blur(60px) saturate(120%);
  animation: meshFloat 22s ease-in-out infinite alternate;
}
@keyframes meshFloat {
  0%   { transform: translate(0, 0) rotate(0deg);   }
  33%  { transform: translate(20px, -30px) rotate(2deg); }
  66%  { transform: translate(-15px, 20px) rotate(-1deg); }
  100% { transform: translate(10px, -10px) rotate(1deg); }
}
/* Filigrane courbe de taux discret par-dessus le mesh */
.hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='480' height='320' viewBox='0 0 480 320'><g fill='none' stroke='%23ffffff' stroke-width='0.6' opacity='0.04'><path d='M0 240 C 80 200, 160 170, 240 145 S 400 100, 480 80'/><path d='M0 260 C 80 220, 160 195, 240 175 S 400 130, 480 110'/></g></svg>");
}
.hero-dark > .container { position: relative; z-index: 2; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--on-ink);
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}
.hero-eyebrow .pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  background: var(--green-bright);
  color: var(--ink);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero-eyebrow .pill::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--ink);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}

.hero-dark h1 {
  font-family: var(--display);
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin: 0 0 24px;
  color: #fff;
}
.hero-dark h1 em {
  font-style: italic;
  font-family: var(--serif);
  font-weight: 400;
  background: linear-gradient(135deg, var(--green-bright) 0%, var(--gold-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-dark .lede {
  font-size: 19px;
  color: rgba(232, 241, 236, 0.78);
  max-width: 560px;
  margin: 0 0 36px;
  line-height: 1.6;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-cta .meta {
  margin-left: 10px;
  font-size: 13px;
  color: var(--on-ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-cta .meta::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 0 4px rgba(20, 199, 123, 0.20);
  animation: pulse 2.4s ease-in-out infinite;
}

/* --------------------------- HERO LIVE DATA BLOCK --------------------------- */

.hero-data {
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}
.hero-data::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 400px 200px at 80% 0%, rgba(20, 199, 123, 0.18) 0%, transparent 60%);
  pointer-events: none;
}
.hero-data > * { position: relative; z-index: 1; }
.hero-data .data-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.hero-data .data-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--on-ink);
  letter-spacing: 0.02em;
}
.hero-data .live-dot {
  display: inline-flex;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green-bright);
  position: relative;
}
.hero-data .live-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--green-bright);
  opacity: 0.4;
  animation: livePulse 2s ease-out infinite;
}
@keyframes livePulse {
  0%   { transform: scale(0.8); opacity: 0.4; }
  100% { transform: scale(2.4); opacity: 0; }
}
.hero-data .data-asof { font-size: 11px; color: var(--on-ink-muted); }

.live-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
}
.live-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all var(--d-fast);
}
.live-item:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.14); }
.live-item .l {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--on-ink-muted);
  font-weight: 600;
}
.live-item .v {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 500;
  color: #fff;
  font-feature-settings: "tnum";
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.live-item .d {
  font-size: 12px;
  font-weight: 500;
  font-feature-settings: "tnum";
}
.live-item .d.up { color: var(--green-bright); }
.live-item .d.down { color: var(--terracotta); }
.live-item .d.flat { color: var(--on-ink-muted); }

.hero-data .data-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.hero-data .data-foot p {
  margin: 0;
  font-size: 12.5px;
  color: var(--on-ink-muted);
}
.hero-data .data-foot a {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--green-bright);
  white-space: nowrap;
}

/* --------------------------- SECTIONS — alternance --------------------------- */

.section {
  padding: 120px 0;
}
.section.compact { padding: 80px 0; }
.section-dark {
  background: var(--ink);
  color: var(--on-ink);
}
.section-cream { background: var(--bg-cream); }
.section-soft { background: var(--bg-soft); }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--green);
  font-weight: 600;
  margin: 0 0 18px;
}
.section-eyebrow::before {
  content: "";
  width: 24px; height: 1px; background: var(--green);
}
.section-dark .section-eyebrow { color: var(--green-bright); }
.section-dark .section-eyebrow::before { background: var(--green-bright); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
  gap: 48px;
}
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 500;
  max-width: 720px;
  margin: 0;
  color: var(--text);
}
.section-head h2 em {
  font-style: italic;
  font-family: var(--serif);
  font-weight: 400;
  color: var(--green);
}
.section-dark .section-head h2 { color: #fff; }
.section-dark .section-head h2 em {
  background: linear-gradient(135deg, var(--green-bright) 0%, var(--gold-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-head .head-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--d-fast);
}
.section-head .head-link:hover { gap: 10px; }
.section-dark .section-head .head-link { color: var(--green-bright); }

.section-head .lede {
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.55;
  max-width: 560px;
  margin: 16px 0 0;
}
.section-dark .section-head .lede { color: rgba(232, 241, 236, 0.74); }

/* --------------------------- KICKER --------------------------- */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--green);
  font-weight: 600;
  margin: 0 0 18px;
}
.kicker::before {
  content: "";
  width: 24px; height: 1px; background: var(--green);
}
.section-dark .kicker { color: var(--green-bright); }
.section-dark .kicker::before { background: var(--green-bright); }

/* --------------------------- BIG CARDS / FEATURES --------------------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  transition: all var(--d-base) var(--ease-out);
  overflow: hidden;
}
.feature-card:hover {
  border-color: var(--green-bright);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.feature-card .icon-wrap {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--bg-pale-green) 0%, #fff 100%);
  border: 1px solid rgba(10, 92, 59, 0.12);
  color: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.feature-card .icon-wrap svg { width: 20px; height: 20px; }
.feature-card h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.022em;
  margin: 0 0 12px;
  color: var(--text);
  line-height: 1.18;
}
.feature-card p {
  color: var(--text-muted);
  margin: 0 0 22px;
  font-size: 14.5px;
  line-height: 1.6;
}
.feature-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--d-fast);
}
.feature-link:hover { gap: 10px; color: var(--green-bright); }

.feature-card.featured {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-3) 100%);
  color: var(--on-ink);
  border: none;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.feature-card.featured::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 400px 280px at 100% 0%, rgba(20, 199, 123, 0.20) 0%, transparent 60%);
  pointer-events: none;
}
.feature-card.featured > * { position: relative; z-index: 1; }
.feature-card.featured h3 { color: #fff; }
.feature-card.featured p { color: rgba(232, 241, 236, 0.78); }
.feature-card.featured .icon-wrap {
  background: rgba(20, 199, 123, 0.16);
  color: var(--green-bright);
  border-color: rgba(20, 199, 123, 0.28);
}
.feature-card.featured .feature-link { color: var(--green-bright); }

/* --------------------------- DATA / CHARTS --------------------------- */

.live-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 28px 0 22px;
  position: relative;
}
.live-bar-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}
.live-bar-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 22px;
  border-right: 1px solid var(--line);
}
.live-bar-item:last-child { border-right: none; }
.live-bar-item:first-child { padding-left: 0; }
.live-bar-item .l {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-soft);
  font-weight: 600;
}
.live-bar-item .v {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 500;
  color: var(--text);
  font-feature-settings: "tnum";
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.live-bar-item .d {
  font-size: 13px;
  font-weight: 500;
  font-feature-settings: "tnum";
}
.live-bar-item .d.up { color: var(--green); }
.live-bar-item .d.down { color: var(--red); }
.live-bar-item .d.flat { color: var(--text-soft); }
.live-bar-asof {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--text-soft);
}

/* --------------------------- TABLE / EXPLORER --------------------------- */

.tools-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 24px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.tools-bar input[type="search"] {
  flex: 1 1 320px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  font-size: 14px;
  font-family: var(--sans);
  outline: none;
  transition: all var(--d-fast);
}
.tools-bar input[type="search"]:focus {
  border-color: var(--green-bright);
  background: #fff;
  box-shadow: 0 0 0 3px var(--green-soft);
}
.tools-bar select {
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  font-size: 13px;
  font-family: var(--sans);
  color: var(--text);
  outline: none;
  cursor: pointer;
}
.tools-bar select:focus { border-color: var(--green-bright); }
.tools-bar .count {
  margin-left: auto;
  font-size: 13px;
  color: var(--text-muted);
}
.tools-bar .count strong { color: var(--text); font-weight: 600; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.data-table thead th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-soft);
  font-weight: 600;
  padding: 14px 16px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.data-table thead th:hover { color: var(--green); }
.data-table thead th.sorted-asc::after  { content: " ↑"; color: var(--green); }
.data-table thead th.sorted-desc::after { content: " ↓"; color: var(--green); }
.data-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
  font-feature-settings: "tnum";
  vertical-align: middle;
}
.data-table tbody tr {
  transition: background var(--d-fast);
  cursor: pointer;
}
.data-table tbody tr:hover { background: var(--bg-soft); }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table .num { text-align: right; font-feature-settings: "tnum"; }
.data-table .pos { color: var(--green); font-weight: 500; }
.data-table .neg { color: var(--red); font-weight: 500; }
.data-table .fund-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.data-table .fund-name strong { color: var(--text); font-weight: 600; }
.data-table .fund-name span { color: var(--text-muted); font-size: 12px; }

.cat-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.cat-pill.MONETAIRE  { background: rgba(20, 199, 123, 0.10); color: #0E7A48; }
.cat-pill.OCT        { background: rgba(125, 168, 255, 0.12); color: #2660C0; }
.cat-pill.OMLT       { background: rgba(86, 125, 232, 0.12); color: #2C4FA8; }
.cat-pill.ACTIONS    { background: rgba(193, 110, 72, 0.14); color: #9C4A2A; }
.cat-pill.DIVERSIFIE { background: rgba(201, 160, 91, 0.14); color: #846226; }
.cat-pill.CONTRACTUEL{ background: rgba(125, 125, 130, 0.16); color: #4A4D52; }

/* --------------------------- METHODE BAND --------------------------- */

.methode-band {
  background: var(--bg-cream);
  padding: 80px 0;
  position: relative;
}
.methode-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 56px;
}
.methode-inner h2 {
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.1;
  margin: 8px 0 14px;
  max-width: 580px;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--text-on-cream);
}
.methode-inner h2 em {
  font-style: italic; font-family: var(--serif); font-weight: 400; color: var(--green);
}
.methode-inner p {
  color: var(--text-muted);
  margin: 0;
  max-width: 580px;
  font-size: 16px;
  line-height: 1.6;
}

/* --------------------------- ARTICLE / BRIEF --------------------------- */

.article-hero {
  padding: 80px 0 24px;
  background: var(--bg);
}
.article-hero h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1.04;
  margin: 18px 0 24px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text);
}
.article-hero h1 em { font-style: italic; color: var(--green); }
.article-lede {
  font-size: 21px;
  color: var(--text);
  line-height: 1.55;
  font-weight: 400;
  margin: 0 0 24px;
  max-width: 660px;
}
.article-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-soft);
  margin: 24px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}
.article-meta strong { color: var(--text); font-weight: 600; }

.article-body {
  padding: 32px 0 80px;
}
.article-body h2 {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.18;
  margin: 64px 0 18px;
  font-weight: 500;
  color: var(--text);
}
.article-body h2 .num {
  color: var(--gold);
  margin-right: 14px;
  font-feature-settings: "tnum";
  font-weight: 400;
  font-style: italic;
}
.article-body h3 {
  font-size: 19px;
  line-height: 1.3;
  margin: 36px 0 10px;
  font-family: var(--sans);
  font-weight: 600;
  color: var(--text);
}
.article-body p {
  font-size: 17px;
  line-height: 1.72;
  margin: 0 0 22px;
  color: var(--text);
}
.article-body strong { color: var(--text); font-weight: 600; }
.article-body em { font-style: italic; color: var(--green); }
.article-body ul, .article-body ol {
  font-size: 17px;
  line-height: 1.72;
  margin: 0 0 22px;
  color: var(--text);
}
.article-body li { margin-bottom: 10px; }

.callout {
  background: linear-gradient(135deg, var(--bg-pale-green) 0%, #FFFFFF 100%);
  border-left: 3px solid var(--green-bright);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
}
.callout h4 {
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green);
  font-weight: 700;
  margin: 0 0 16px;
}
.callout ol { margin: 0; padding-left: 22px; }
.callout li { margin-bottom: 12px; font-size: 16px; line-height: 1.6; color: var(--text); }
.callout li:last-child { margin-bottom: 0; }

.chart-wrap {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 28px 22px;
  margin: 32px 0;
}
.chart-wrap .chart-title { font-size: 14px; font-weight: 600; color: var(--text); margin: 0 0 4px; }
.chart-wrap .chart-sub { font-size: 12px; color: var(--text-soft); margin: 0 0 18px; }
.chart-wrap svg { display: block; cursor: crosshair; }

.chart-tooltip {
  position: absolute;
  pointer-events: none;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-family: var(--mono);
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, calc(-100% - 14px));
  transition: opacity var(--d-fast);
  box-shadow: var(--shadow-md);
  z-index: 5;
}
.chart-tooltip::after {
  content: ""; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--ink);
}
.chart-tooltip strong {
  display: block; font-size: 14px; color: #fff;
  font-family: var(--sans); font-weight: 600; margin-bottom: 2px;
}
.chart-tooltip span { color: rgba(255,255,255,0.65); font-size: 11px; }

/* --------------------------- FUND DETAIL --------------------------- */

.breadcrumb {
  font-size: 13px;
  color: var(--text-soft);
  padding: 28px 0 0;
}
.breadcrumb a:hover { color: var(--green); }
.breadcrumb .sep { margin: 0 8px; color: var(--line-strong); }

.fund-header { padding: 24px 0 36px; border-bottom: 1px solid var(--line); }
.fund-title-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; flex-wrap: wrap;
}
.fund-header .badges { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.fund-header h1 {
  font-family: var(--display);
  font-size: clamp(36px, 4.5vw, 52px);
  line-height: 1.04;
  margin: 0 0 8px;
  font-weight: 500;
  letter-spacing: -0.025em;
}
.fund-header .manager { font-size: 17px; color: var(--text-muted); margin: 0; }
.fund-header .manager strong { color: var(--green); font-weight: 600; }
.fund-header .meta-line {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--text-soft);
  display: flex; gap: 22px; flex-wrap: wrap;
}

.stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 36px 0;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: all var(--d-base);
}
.stat-card:hover { border-color: var(--green-bright); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.stat-card .label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-soft); font-weight: 600; margin: 0 0 10px;
}
.stat-card .value {
  font-family: var(--display);
  font-weight: 500;
  font-size: 30px;
  letter-spacing: -0.025em;
  color: var(--text);
  font-feature-settings: "tnum";
  line-height: 1.05;
  margin: 0;
}
.stat-card .sub { font-size: 13px; color: var(--text-soft); margin: 6px 0 0; }
.stat-card .sub.positive { color: var(--green); font-weight: 500; }
.stat-card .sub.negative { color: var(--red); font-weight: 500; }

.section-block { padding: 56px 0; border-top: 1px solid var(--line); }
.section-block h2 {
  font-family: var(--display);
  font-size: 28px; font-weight: 500;
  margin: 0 0 24px; letter-spacing: -0.022em;
}
.section-block .section-sub { font-size: 14px; color: var(--text-soft); margin: -16px 0 28px; }

.kv-table { width: 100%; border-collapse: collapse; }
.kv-table tr { border-bottom: 1px solid var(--line-soft); }
.kv-table tr:last-child { border-bottom: none; }
.kv-table td { padding: 16px 0; font-size: 15px; vertical-align: top; }
.kv-table td:first-child { color: var(--text-soft); width: 40%; }
.kv-table td:last-child { color: var(--text); font-weight: 500; }

.peers-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.peers-table th {
  text-align: left;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-soft); font-weight: 600;
  padding: 0 14px 14px 0; border-bottom: 1px solid var(--line);
}
.peers-table td { padding: 14px 14px 14px 0; border-bottom: 1px solid var(--line-soft); font-feature-settings: "tnum"; }
.peers-table td:last-child, .peers-table th:last-child { padding-right: 0; text-align: right; }
.peers-table tr.this-fund td {
  background: var(--bg-pale-green); font-weight: 600; color: var(--text);
}

.cta-strip {
  background: var(--ink);
  color: var(--on-ink);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 360px at 80% 30%, rgba(20, 199, 123, 0.20) 0%, transparent 60%),
    radial-gradient(ellipse 500px 320px at 20% 70%, rgba(201, 160, 91, 0.14) 0%, transparent 60%);
  pointer-events: none;
}
.cta-strip > * { position: relative; z-index: 1; }
.cta-strip .container {
  display: flex; justify-content: space-between; align-items: center;
  gap: 40px; flex-wrap: wrap;
}
.cta-strip h2 {
  font-family: var(--display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0;
  color: #fff;
  max-width: 580px;
}
.cta-strip h2 em {
  font-style: italic; font-family: var(--serif); font-weight: 400;
  background: linear-gradient(135deg, var(--green-bright) 0%, var(--gold-bright) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cta-strip p { color: rgba(232, 241, 236, 0.74); margin: 12px 0 0; max-width: 580px; font-size: 16px; }

/* --------------------------- COMPARATEUR --------------------------- */

.compare-shell {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
}
.compare-side {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: 96px;
  align-self: start;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.compare-side h3 {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 14px;
}
.compare-side .picker-search {
  width: 100%;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 13px;
  margin-bottom: 12px;
  background: var(--bg-soft);
}
.picker-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 380px;
  overflow-y: auto;
}
.picker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: background var(--d-fast);
}
.picker-item:hover { background: var(--bg-soft); }
.picker-item input[type="checkbox"] { accent-color: var(--green-bright); }
.picker-item .item-text { flex: 1; min-width: 0; }
.picker-item .item-text strong { display: block; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; }
.picker-item .item-text span { color: var(--text-soft); font-size: 11px; }

.compare-main {
  display: flex; flex-direction: column; gap: 24px;
}
.compare-empty {
  text-align: center;
  padding: 80px 32px;
  background: var(--bg-soft);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}
.compare-empty h3 { font-family: var(--display); font-size: 22px; font-weight: 500; margin: 0 0 8px; }
.compare-empty p { color: var(--text-muted); margin: 0; }

.compare-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.compare-card h3 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 18px;
}
.compare-row {
  display: grid;
  gap: 0;
  border-bottom: 1px solid var(--line-soft);
}
.compare-row:last-child { border-bottom: none; }
.compare-row .l {
  padding: 14px 0;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-soft); font-weight: 600;
}
.compare-row .v {
  padding: 14px 12px;
  font-feature-settings: "tnum";
  font-weight: 500;
  border-left: 1px solid var(--line-soft);
}
.compare-row .v.pos { color: var(--green); }
.compare-row .v.neg { color: var(--red); }

/* --------------------------- METHODE / QUALITY STAMP --------------------------- */

.methode-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; padding: 24px 0;
}
.methode-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px;
}
.methode-card:hover { border-color: var(--green-bright); }
.methode-card h3 { font-family: var(--display); font-size: 22px; margin: 0 0 14px; font-weight: 600; }
.methode-card > p { color: var(--text-muted); margin: 0 0 18px; line-height: 1.6; }
.methode-card ul { margin: 0; padding-left: 0; list-style: none; }
.methode-card li {
  position: relative; padding: 10px 0 10px 24px;
  border-bottom: 1px solid var(--line-soft);
  line-height: 1.5; font-size: 14.5px;
}
.methode-card li::before {
  content: ""; position: absolute; left: 0; top: 18px; width: 12px; height: 1px;
  background: var(--green-bright);
}
.methode-card li:last-child { border-bottom: none; }

.quality-stamp {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-3) 100%);
  color: var(--on-ink);
  border-radius: var(--radius-xl);
  padding: 44px 48px;
  margin: 32px 0;
  position: relative;
  overflow: hidden;
}
.quality-stamp::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 500px 320px at 100% 0%, rgba(20, 199, 123, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse 400px 240px at 0% 100%, rgba(201, 160, 91, 0.16) 0%, transparent 60%);
  pointer-events: none;
}
.quality-stamp > * { position: relative; z-index: 1; }
.quality-stamp .stamp-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 28px; flex-wrap: wrap; gap: 8px;
}
.quality-stamp h3 { font-family: var(--display); font-size: 28px; margin: 0; font-weight: 500; color: #fff; }
.quality-stamp .stamp-period {
  color: var(--green-bright); font-weight: 600; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.12em;
}
.quality-stamp p { color: rgba(232, 241, 236, 0.78); margin: 0 0 24px; max-width: 680px; line-height: 1.6; font-size: 15px; }
.quality-stamp .stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.10);
}
.quality-stamp .qs-num {
  font-family: var(--display);
  font-size: 38px; font-weight: 500; color: var(--green-bright);
  font-feature-settings: "tnum"; line-height: 1; margin: 0;
  letter-spacing: -0.03em;
}
.quality-stamp .qs-lab { font-size: 13px; color: rgba(232, 241, 236, 0.62); margin: 8px 0 0; }

/* --------------------------- FOOTER --------------------------- */

.site-footer {
  position: relative;
  background: var(--ink);
  color: rgba(232, 241, 236, 0.65);
  padding: 88px 0 32px;
  margin-top: 0;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 400px at 0% 0%, rgba(20, 199, 123, 0.08) 0%, transparent 60%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='480' height='320' viewBox='0 0 480 320'><g fill='none' stroke='%23ffffff' stroke-width='0.6' opacity='0.04'><path d='M0 240 C 80 200, 160 170, 240 145 S 400 100, 480 80'/><path d='M0 260 C 80 220, 160 195, 240 175 S 400 130, 480 110'/></g></svg>");
  pointer-events: none;
}
.site-footer .container { position: relative; z-index: 1; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 36px; padding-bottom: 56px;
}
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer-grid > div:nth-child(5) { grid-column: span 2; }
}
.brand-footer {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 600; font-size: 22px;
  color: #fff; margin: 0 0 12px; letter-spacing: -0.025em;
}
.brand-footer .brand-mark { background: linear-gradient(135deg, var(--green-bright) 0%, var(--green) 100%); color: #fff; }
.footer-tag {
  margin: 0 0 24px; font-size: 14px; max-width: 320px;
  color: rgba(232, 241, 236, 0.55); line-height: 1.6;
}
.footer-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-meta .pill {
  font-size: 12px; padding: 5px 11px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-pill);
  color: rgba(232, 241, 236, 0.62);
}
.site-footer h4 {
  font-family: var(--sans); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.14em;
  margin: 0 0 18px; color: #fff; font-weight: 600;
}
.site-footer a {
  display: block; font-size: 14px; margin: 0 0 10px;
  color: rgba(232, 241, 236, 0.55);
  transition: color var(--d-fast);
}
.site-footer a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 28px;
  font-size: 12.5px; color: rgba(232, 241, 236, 0.45);
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { margin: 0; }

/* --------------------------- MODAL CMD+K --------------------------- */

.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(3, 25, 15, 0.55);
  backdrop-filter: blur(6px);
  z-index: 200; opacity: 0; visibility: hidden;
  transition: opacity var(--d-base), visibility var(--d-base);
}
.modal-backdrop.is-open { opacity: 1; visibility: visible; }
.modal-search {
  position: fixed; top: 12vh; left: 50%;
  transform: translateX(-50%) translateY(-12px);
  width: min(640px, calc(100vw - 32px));
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 201; opacity: 0; visibility: hidden;
  transition: opacity var(--d-base) var(--ease-out), transform var(--d-base) var(--ease-out), visibility var(--d-base);
  overflow: hidden;
}
.modal-search.is-open {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.search-input-wrap {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--line-soft);
}
.search-input-wrap svg { width: 18px; height: 18px; color: var(--text-soft); flex: 0 0 18px; }
.search-input-wrap input {
  flex: 1; border: none; background: transparent;
  font-size: 16px; color: var(--text); font-family: var(--sans); outline: none;
}
.search-input-wrap .esc {
  font-family: var(--mono); font-size: 11px;
  padding: 4px 8px; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 4px;
  color: var(--text-soft);
}
.search-results { max-height: 60vh; overflow-y: auto; padding: 8px; }
.search-section {
  padding: 8px 12px 4px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--text-soft); font-weight: 600;
}
.search-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px; border-radius: 10px;
  cursor: pointer; transition: background var(--d-fast);
}
.search-item:hover, .search-item.is-active { background: var(--bg-pale-green); }
.search-item .icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--bg-soft); display: flex;
  align-items: center; justify-content: center;
  color: var(--green); flex: 0 0 32px;
}
.search-item .icon svg { width: 16px; height: 16px; }
.search-item .body strong {
  display: block; font-size: 14px; font-weight: 600;
  color: var(--text); margin-bottom: 2px;
}
.search-item .body span { font-size: 12px; color: var(--text-soft); }
.search-item .badge-mini {
  margin-left: auto; font-size: 11px; padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--bg-soft); color: var(--text-muted); font-weight: 500;
}

/* --------------------------- SIDE PANEL --------------------------- */

/* Backdrop dédié au side-panel : overlay léger, pas de blur lourd, sous le panneau. */
.side-backdrop {
  position: fixed; inset: 0;
  background: rgba(3, 25, 15, 0.32);
  z-index: 240;
  opacity: 0; visibility: hidden;
  transition: opacity var(--d-base) var(--ease-out), visibility var(--d-base);
  pointer-events: none;
}
.side-backdrop.is-open {
  opacity: 1; visibility: visible;
  pointer-events: auto;
}

.side-panel {
  position: fixed; top: 0; right: 0; height: 100vh;
  width: min(540px, 92vw);
  background: #fff;
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  z-index: 250;
  transform: translateX(100%);
  transition: transform var(--d-base) var(--ease-out);
  display: flex; flex-direction: column;
}
.side-panel.is-open { transform: translateX(0); }
.side-panel-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 28px; border-bottom: 1px solid var(--line-soft);
}
.side-panel-head .label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--green); font-weight: 600;
}
.side-panel-body { padding: 28px; flex: 1; overflow-y: auto; }
.side-panel-body h2 {
  font-family: var(--display); font-size: 28px;
  font-weight: 500; margin: 0 0 8px; letter-spacing: -0.022em;
}
.side-panel-body .panel-manager { font-size: 15px; color: var(--text-muted); margin: 0 0 20px; }
.side-panel-body .panel-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0;
}
.side-panel-body .panel-stat {
  background: var(--bg-soft); padding: 16px 18px; border-radius: 10px;
}
.side-panel-body .panel-stat .l {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-soft); margin: 0 0 6px;
}
.side-panel-body .panel-stat .v {
  font-family: var(--display); font-size: 24px; font-weight: 500; color: var(--text);
}
.side-panel-body .panel-row {
  display: flex; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px;
}
.side-panel-body .panel-row span:first-child { color: var(--text-soft); }
.side-panel-body .panel-row span:last-child { color: var(--text); font-weight: 500; }

/* --------------------------- SCROLL REVEAL --------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  /* Fallback animation : si JS plante ou si l'observer ne déclenche pas,
     l'élément devient visible automatiquement après 3s. */
  animation: zady-reveal-fallback 700ms var(--ease-out) 3s forwards;
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
  animation: none;
}
@keyframes zady-reveal-fallback {
  to { opacity: 1; transform: translateY(0); }
}
[data-reveal-delay="1"] { transition-delay: 60ms; }
[data-reveal-delay="2"] { transition-delay: 120ms; }
[data-reveal-delay="3"] { transition-delay: 180ms; }
[data-reveal-delay="4"] { transition-delay: 240ms; }
[data-reveal-delay="5"] { transition-delay: 300ms; }

/* Reduced-motion : on n'anime jamais. Le contenu reste visible. */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
  .hero-mesh, .hero-grain { animation: none !important; }
}

/* No-JS : le contenu reste visible (la classe .no-js est retirée par le JS au chargement) */
.no-js [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

/* --------------------------- DEMO BANNER --------------------------- */

.demo-banner {
  background: linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-soft) 100%);
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
  font-size: 12.5px;
  color: var(--text-muted);
  text-align: center;
  position: relative;
  z-index: 80;
}
.demo-banner-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.demo-banner .demo-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--gold);
  color: #fff;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.demo-banner .demo-pill::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: #fff;
}
.demo-banner strong { color: var(--text); font-weight: 600; }
.demo-banner a { color: var(--green); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(10,92,59,0.3); text-underline-offset: 2px; }

/* Variant : banner discret en bas de page */
.demo-banner-bottom {
  background: var(--bg-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: none;
  padding: 8px 0;
  font-size: 11.5px;
  color: var(--text-soft);
}
.demo-banner-bottom .demo-pill {
  background: var(--bg-cream);
  color: var(--text-muted);
  font-size: 9.5px;
  padding: 2px 8px;
}
.demo-banner-bottom .demo-pill::before { background: var(--gold); }

/* Variant : banner sombre pour les pages avec hero dark (index, marche) */
.demo-banner-dark {
  background: var(--ink);
  border-bottom: 1px solid var(--ink-line);
  color: var(--on-ink-muted);
}
.demo-banner-dark strong { color: #fff; }
.demo-banner-dark a { color: var(--green-bright); text-decoration-color: rgba(20,199,123,0.4); }
.demo-banner-dark .demo-pill {
  background: var(--green-bright);
  color: var(--ink);
}
.demo-banner-dark .demo-pill::before { background: var(--ink); }

/* --------------------------- MOBILE NAV --------------------------- */

.mobile-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  padding: 0;
}
.mobile-toggle svg { width: 20px; height: 20px; }
.topbar.is-dark .mobile-toggle {
  color: var(--on-ink);
  border-color: var(--ink-line-strong);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--ink);
  color: var(--on-ink);
  z-index: 220;
  display: flex;
  flex-direction: column;
  padding: 0;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 320ms var(--ease-out), visibility 320ms;
  overflow-y: auto;
}
.mobile-menu::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 320px at 80% 12%, rgba(20, 199, 123, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 500px 320px at 0% 100%, rgba(201, 160, 91, 0.10) 0%, transparent 60%);
  pointer-events: none;
}
.mobile-menu.is-open { transform: translateX(0); visibility: visible; }

.mobile-menu-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  position: relative; z-index: 1;
}
.mobile-menu-head .brand { color: #fff; }
.mobile-menu-head .mobile-close {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--on-ink);
  width: 40px; height: 40px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  padding: 0;
}
.mobile-menu-head .mobile-close svg { width: 20px; height: 20px; }

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  padding: 12px 8px;
  position: relative; z-index: 1;
}
.mobile-menu nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-menu nav a:last-child { border-bottom: none; }
.mobile-menu nav a.active { color: var(--green-bright); }
.mobile-menu nav a .arrow {
  font-size: 18px; opacity: 0.5;
}
.mobile-menu nav a:hover { background: rgba(255,255,255,0.04); }

.mobile-menu .mobile-actions {
  margin-top: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid rgba(255,255,255,0.10);
  position: relative; z-index: 1;
}
.mobile-menu .mobile-actions .btn {
  justify-content: center;
  padding: 14px 22px;
  font-size: 15px;
}
.mobile-menu .mobile-actions .mobile-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  background: rgba(255,255,255,0.08);
  color: var(--on-ink);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.mobile-menu .mobile-actions .mobile-search-btn svg { width: 16px; height: 16px; }
.mobile-menu .mobile-meta {
  font-size: 12px;
  color: rgba(232,241,236,0.55);
  text-align: center;
  margin: 0 0 6px;
}

@media (max-width: 900px) {
  .mobile-toggle { display: inline-flex; }
}

/* --------------------------- TOOL HERO (compact) --------------------------- */

.tool-hero {
  padding: 28px 0 20px !important;
}
.tool-hero h1 {
  font-family: var(--display);
  font-size: clamp(26px, 3.4vw, 38px) !important;
  line-height: 1.1 !important;
  letter-spacing: -0.022em;
  font-weight: 500;
  margin: 6px 0 8px !important;
  max-width: 920px;
}
.tool-hero h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--green);
}
.tool-hero .lede {
  max-width: 720px;
  margin: 0 !important;
  font-size: 14.5px !important;
  color: var(--text-muted);
  line-height: 1.55;
}
.tool-hero .section-eyebrow { margin-bottom: 8px; }

/* Live bar plus compact en mode tool */
.tool-mode .live-bar { padding: 18px 0 14px; }
.tool-mode .live-bar-item .v { font-size: 22px; }
.tool-mode .live-bar-asof { display: none; }
.tool-mode .section.compact { padding: 28px 0 24px; }

/* Tools-bar plus visible sur pages outils — légèrement surélevée */
.tool-mode .tools-bar {
  background: var(--bg-paper);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

/* ============================ EXPLORER v2 ============================ */

/* Presets bar */
.presets-bar {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 14px;
}
.preset-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--bg-paper);
  border: 1px solid var(--line);
  font-size: 13px; font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all var(--d-fast) var(--ease-out);
  white-space: nowrap;
}
.preset-chip:hover { border-color: var(--green-bright); color: var(--green); }
.preset-chip.is-active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  box-shadow: 0 2px 8px var(--green-glow);
}
.preset-chip svg { width: 12px; height: 12px; }

/* Advanced filters panel — collapsible */
.adv-filters {
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}
.adv-filters-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--d-fast);
}
.adv-filters.is-open .adv-filters-head { border-bottom-color: var(--line-soft); }
.adv-filters-head h4 {
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  margin: 0; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.adv-filters-head .filter-count {
  background: var(--green-bright);
  color: var(--ink);
  font-size: 11px; font-weight: 700;
  padding: 1px 7px; border-radius: 999px;
  font-feature-settings: "tnum";
}
.adv-filters-head .chev {
  width: 14px; height: 14px;
  transition: transform var(--d-fast);
  color: var(--text-muted);
}
.adv-filters.is-open .adv-filters-head .chev { transform: rotate(180deg); }
.adv-filters-body {
  display: none;
  padding: 16px 18px 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.adv-filters.is-open .adv-filters-body { display: grid; }
.adv-filter-group label {
  display: block;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-soft); font-weight: 600;
  margin: 0 0 6px;
}
.adv-filter-group input[type="number"],
.adv-filter-group input[type="text"],
.adv-filter-group select {
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  font-size: 13px;
  font-family: var(--sans);
  color: var(--text);
  outline: none;
  transition: border-color var(--d-fast);
}
.adv-filter-group input:focus, .adv-filter-group select:focus {
  border-color: var(--green-bright);
  background: #fff;
}
.adv-filter-range { display: flex; gap: 6px; align-items: center; }
.adv-filter-range span { color: var(--text-soft); font-size: 12px; }
.adv-filter-toggle {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text); cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  transition: all var(--d-fast);
}
.adv-filter-toggle input[type="checkbox"] { accent-color: var(--green-bright); }
.adv-filter-toggle:has(input:checked) {
  background: var(--green-soft);
  border-color: var(--green-bright);
  color: var(--green);
  font-weight: 600;
}
.adv-filters-actions {
  grid-column: 1/-1;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 10px; margin-top: 4px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px; color: var(--text-muted);
}
.adv-filters-actions button {
  background: transparent;
  border: none;
  color: var(--green);
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 6px;
}
.adv-filters-actions button:hover { background: var(--green-soft); }

/* Columns dropdown */
.columns-toggle {
  position: relative;
}
.columns-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 13px; color: var(--text); font-weight: 500;
  cursor: pointer;
}
.columns-btn:hover { border-color: var(--green-bright); }
.columns-btn svg { width: 14px; height: 14px; }
.columns-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  padding: 8px;
  min-width: 240px;
  display: none;
  z-index: 40;
}
.columns-toggle.is-open .columns-panel { display: block; }
.columns-panel label {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
}
.columns-panel label:hover { background: var(--bg-soft); }
.columns-panel input[type="checkbox"] { accent-color: var(--green-bright); }

/* Quality badges */
.q-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.02em;
  margin-left: 6px;
  vertical-align: middle;
}
.q-badge::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: currentColor;
}
.q-badge.history-full   { background: rgba(20,199,123,0.10); color: #0E7A48; }
.q-badge.history-limited{ background: rgba(201,160,91,0.14); color: #846226; }
.q-badge.recent         { background: rgba(125,168,255,0.14); color: #2660C0; }
.q-badge.fees-high      { background: rgba(193,110,72,0.16); color: #9C4A2A; }
.q-badge.aum-low        { background: rgba(125,125,130,0.16); color: #4A4D52; }

/* Mini sparkline in side panel */
.mini-sparkline {
  width: 100%; height: 56px;
  background: linear-gradient(180deg, var(--bg-pale-green) 0%, transparent 100%);
  border-radius: 8px;
  padding: 8px;
  margin: 14px 0 18px;
}
.mini-sparkline svg { width: 100%; height: 100%; display: block; }

.panel-period-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; margin: 14px 0;
}
.panel-period-cell {
  background: var(--bg-soft); padding: 10px 12px;
  border-radius: 8px;
}
.panel-period-cell .l {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-soft); font-weight: 600;
  margin-bottom: 4px;
}
.panel-period-cell .v {
  font-family: var(--display); font-weight: 500;
  font-size: 15px; font-feature-settings: "tnum";
  color: var(--text);
}
.panel-period-cell .v.pos { color: var(--green); }
.panel-period-cell .v.neg { color: var(--red); }

/* Tool head with actions row */
.tool-head-row {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  margin-bottom: 14px;
}

@media (max-width: 700px) {
  .adv-filters-body { grid-template-columns: 1fr; }
  .panel-period-row { grid-template-columns: repeat(2, 1fr); }
}

/* ============================ COMPARER v2 ============================ */

.compare-tabs {
  display: flex; gap: 2px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 18px;
  width: fit-content;
}
.compare-tab {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  background: transparent;
  border: none;
  transition: all var(--d-fast);
}
.compare-tab:hover { color: var(--green); }
.compare-tab.is-active {
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.period-bar {
  display: flex; gap: 4px;
  margin-bottom: 14px;
}
.period-btn {
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 12px; font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--sans);
}
.period-btn.is-active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.period-btn:hover:not(.is-active) { color: var(--green); border-color: var(--green-bright); }

.compare-tab-pane {
  display: none;
}
.compare-tab-pane.is-active {
  display: block;
}

/* Risk grid in comparer */
.risk-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px; margin-top: 18px;
}
.risk-card {
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}
.risk-card h5 {
  font-family: var(--sans); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-soft); font-weight: 600;
  margin: 0 0 10px;
}
.risk-card .v {
  font-family: var(--display); font-weight: 500;
  font-size: 22px; font-feature-settings: "tnum";
  color: var(--text);
}
.risk-card .v.pos { color: var(--green); }
.risk-card .v.neg { color: var(--red); }
.risk-card .sub {
  font-size: 11px; color: var(--text-soft);
  margin-top: 4px;
}

.compare-fund-row {
  display: grid; grid-template-columns: 220px 1fr;
  gap: 14px; align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.compare-fund-row:last-child { border-bottom: none; }
.compare-fund-color {
  display: inline-block; width: 14px; height: 14px;
  border-radius: 3px; margin-right: 8px;
  vertical-align: middle;
}
.compare-fund-name { font-weight: 600; font-size: 14px; }
.compare-fund-mgr { font-size: 12px; color: var(--text-soft); }

/* ============================ STUDIO ============================ */

.studio-shell {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 22px;
}
.studio-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  align-self: start;
  position: sticky; top: 80px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}
.studio-panel h3 {
  font-family: var(--display); font-size: 15px;
  font-weight: 600; margin: 0 0 14px;
  color: var(--text);
}
.studio-panel .group {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}
.studio-panel .group:last-child { border-bottom: none; }
.studio-panel label {
  display: block;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-soft); font-weight: 600;
  margin: 0 0 6px;
}
.studio-panel input,
.studio-panel select {
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  font-size: 13px;
  font-family: var(--sans);
  color: var(--text);
  outline: none;
}
.studio-panel input:focus, .studio-panel select:focus {
  border-color: var(--green-bright); background: #fff;
}
.studio-panel .chip-row {
  display: flex; gap: 4px; flex-wrap: wrap;
}
.studio-panel .chip-row .preset-chip { font-size: 11.5px; padding: 5px 10px; }

.studio-fund-row {
  display: flex; gap: 8px; align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
}
.studio-fund-row .name { flex: 1; font-size: 12px; font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio-fund-row input[type="number"] { width: 70px; padding: 5px 8px; font-size: 12px; }
.studio-fund-row .pct-mark { font-size: 12px; color: var(--text-soft); }
.studio-fund-row .remove-btn { background: transparent; border: none; color: var(--text-soft); cursor: pointer; padding: 4px 8px; font-size: 14px; }
.studio-fund-row .remove-btn:hover { color: var(--red); }

.studio-add-fund {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-pale-green);
  border: 1px dashed var(--green);
  border-radius: 8px;
  color: var(--green);
  font-size: 12.5px; font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
}
.studio-add-fund:hover { background: var(--green-soft); }

.studio-results {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin: 22px 0;
}
.studio-result-card {
  background: linear-gradient(135deg, var(--bg-pale-green) 0%, #fff 100%);
  border: 1px solid rgba(10,92,59,0.18);
  border-radius: 12px;
  padding: 18px 20px;
  min-width: 0; /* évite que le contenu empêche le grid parent de shrink */
  overflow: hidden;
}
.studio-result-card h5 {
  font-family: var(--sans); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-soft); font-weight: 600;
  margin: 0 0 8px;
}
/* Valeur principale — taille responsive pour absorber les montants longs
   comme « 99,0 M MAD » ou « −968 491 MAD » sans déborder. clamp() dose la
   taille selon la largeur de la carte (base viewport ~ 1 vw). */
.studio-result-card .v {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(18px, 1.4vw + 12px, 26px);
  line-height: 1.15;
  font-feature-settings: "tnum"; font-variant-numeric: tabular-nums;
  color: var(--green-deep);
  letter-spacing: -0.022em;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.studio-result-card .sub {
  font-size: 12px; color: var(--text-muted);
  margin-top: 4px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.studio-disclaimer {
  background: var(--bg-cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 18px;
  line-height: 1.55;
}

@media (max-width: 1100px) {
  .studio-shell { grid-template-columns: 1fr; }
  .studio-panel { position: static; max-height: none; }
}

/* ============================ AUTH / DASHBOARD ============================ */

.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background: var(--ink);
  color: var(--on-ink);
  position: relative;
  overflow: hidden;
}
.auth-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 500px at 25% 25%, rgba(20, 199, 123, 0.30) 0%, transparent 60%),
    radial-gradient(ellipse 600px 400px at 75% 75%, rgba(201, 160, 91, 0.20) 0%, transparent 60%);
  filter: blur(60px);
}
.auth-card {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(24px);
  border-radius: 22px;
  padding: 36px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
}
.auth-card .auth-brand {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 28px;
}
.auth-card h1 {
  font-family: var(--display);
  font-size: 26px; font-weight: 500;
  letter-spacing: -0.022em;
  color: #fff;
  margin: 0 0 8px;
}
.auth-card p.intro {
  color: rgba(232,241,236,0.74);
  font-size: 14px; margin: 0 0 24px;
  line-height: 1.55;
}
.auth-card label {
  display: block;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  color: rgba(232,241,236,0.62); font-weight: 600;
  margin: 14px 0 6px;
}
.auth-card input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  outline: none;
  font-family: var(--sans);
}
.auth-card input:focus { border-color: var(--green-bright); }
.auth-card .auth-actions {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 24px;
}
.auth-card .auth-actions .btn {
  justify-content: center; padding: 12px 22px;
  font-size: 14px;
}
.auth-meta {
  text-align: center;
  color: rgba(232,241,236,0.5);
  font-size: 12px;
  margin-top: 18px;
}
.auth-meta a { color: var(--green-bright); }

.dashboard-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  padding: 28px 0;
}
.dash-side {
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  align-self: start;
  position: sticky; top: 80px;
}
.dash-side .user-block {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 8px 14px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 14px;
}
.dash-side .avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-bright), var(--green));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 600;
}
.dash-side .user-name { font-size: 14px; font-weight: 600; color: var(--text); margin: 0; }
.dash-side .user-email { font-size: 11px; color: var(--text-soft); margin: 0; }
.dash-side nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 2px;
}
.dash-side nav a:hover, .dash-side nav a.active {
  background: var(--green-soft);
  color: var(--green);
}
.dash-side nav a svg { width: 15px; height: 15px; }

.dash-main h1 {
  font-family: var(--display);
  font-size: 26px; font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.dash-main .greeting-sub {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 22px;
}

.dash-section {
  margin-bottom: 32px;
}
.dash-section-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.dash-section-head h2 {
  font-family: var(--display);
  font-size: 18px; font-weight: 600;
  margin: 0;
}
.dash-section-head a {
  font-size: 12.5px; color: var(--green); font-weight: 600;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.dash-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  transition: all var(--d-fast);
}
.dash-card:hover { border-color: var(--green-bright); box-shadow: var(--shadow-sm); }
.dash-card .label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-soft); font-weight: 600;
}
.dash-card h3 {
  font-family: var(--display);
  font-size: 16px; font-weight: 600;
  margin: 6px 0;
}
.dash-card p { color: var(--text-muted); font-size: 13px; margin: 0; line-height: 1.5; }

.dash-empty {
  background: var(--bg-soft);
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  color: var(--text-muted);
}
.dash-empty p { margin: 0 0 12px; font-size: 14px; }

@media (max-width: 900px) {
  .dashboard-shell { grid-template-columns: 1fr; }
  .dash-side { position: static; }
}

/* ============================ INSIGHTS ============================ */

.insights-strip {
  background: linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-soft) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.insight-card {
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.5;
}
.insight-card .insight-head {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--green); font-weight: 700;
  margin-bottom: 8px;
}
.insight-card .insight-num {
  font-family: var(--display); font-weight: 500;
  font-size: 18px; color: var(--green-deep);
  font-feature-settings: "tnum";
}
.insight-card .insight-meta {
  margin-top: 6px; font-size: 11px;
  color: var(--text-soft);
}

/* --------------------------- RESPONSIVE --------------------------- */

@media (max-width: 1100px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid > .feature-card:nth-child(3) { grid-column: 1 / -1; }
  .nav-panel { min-width: 600px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .compare-shell { grid-template-columns: 1fr; }
  .compare-side { position: static; max-height: none; }
}
@media (max-width: 900px) {
  .live-bar-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 32px; }
  .live-bar-item { border-right: none; padding: 0 0 16px; border-bottom: 1px solid var(--line-soft); }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid > .feature-card:nth-child(3) { grid-column: auto; }
  .methode-inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .methode-grid { grid-template-columns: 1fr; }
  .quality-stamp .stats-row { grid-template-columns: repeat(2, 1fr); }
  .primary-nav { display: none; }
  .kbd-hint { display: none; }
  .topbar-inner { padding: 14px 20px; }
}
@media (max-width: 700px) {
  .container, .container-narrow { padding: 0 20px; }
  .hero-dark { padding: 64px 0 88px; }
  .section { padding: 64px 0; }
  .live-bar-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .article-body p { font-size: 16px; }
  .live-grid { grid-template-columns: 1fr; }
}

/* --------------------------- RESPONSIVE — ÉLÉMENTS OUTILS --------------------------- */

@media (max-width: 900px) {
  /* Tableau scrollable horizontalement sur mobile sans casser la lisibilité */
  .data-table, .peers-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .data-table thead th, .data-table tbody td,
  .peers-table thead th, .peers-table tbody td { white-space: nowrap; }
  .data-table .fund-name { white-space: normal; }

  /* tools-bar : empile filtres sur 2 lignes */
  .tools-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    gap: 8px;
  }
  .tools-bar input[type="search"] { flex: 1 1 100%; }
  .tools-bar select { width: 100%; }
  .tools-bar .count { margin-left: 0; text-align: left; }

  /* Compare shell : la sidebar passe au-dessus du résultat */
  .compare-shell { gap: 16px; }
  .compare-side {
    position: static;
    max-height: 380px;
    padding: 14px;
  }
  .compare-side .picker-list { max-height: 220px; }

  .nav-panel-callout p { max-width: none; }

  .signal-bar { padding: 18px 0 14px; }

  /* Section heads s'empilent sur mobile */
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 36px;
  }

  /* Hero CTA en bloc sur mobile */
  .hero-cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-cta .meta { margin-left: 0; }
  .hero-cta .btn { justify-content: center; }
}

@media (max-width: 700px) {
  /* Tool hero encore plus compact */
  .tool-hero { padding: 18px 0 12px !important; }
  .tool-hero h1 { font-size: 22px !important; }
  .tool-hero .lede { font-size: 13.5px !important; }

  /* Stat cards plus petites */
  .stat-card { padding: 18px 20px; }
  .stat-card .value { font-size: 26px; }

  /* Article hero plus tassé */
  .article-hero { padding: 36px 0 16px; }
  .article-hero h1 { font-size: 30px; line-height: 1.08; }
  .article-lede { font-size: 17px; }

  /* Demo banner plus court */
  .demo-banner { padding: 7px 14px; font-size: 12px; }
  .demo-banner-inner { padding: 0 14px; gap: 8px; }
  .demo-banner .demo-pill { font-size: 9.5px; padding: 2px 8px; }
  /* Sur très petit écran, on cache le texte secondaire et on garde juste le pill */
  .demo-banner .demo-text-long { display: none; }

  /* Mobile menu : on laisse le padding par défaut */
  .topbar-inner { padding: 12px 16px; }
  .brand { font-size: 18px; }
  .brand-mark { width: 26px; height: 26px; font-size: 14px; }

  /* CTA strip stack */
  .cta-strip .container { flex-direction: column; align-items: flex-start; }

  /* Footer s'empile */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   ZADY LEARN — Module pédagogique
   ============================================================ */

/* Hero Learn */
.learn-hero {
  padding: 64px 0 32px;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-paper) 100%);
}
.learn-hero .eyebrow-row {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--green); font-weight: 600;
}
.learn-hero h1 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(32px, 4vw, 48px); line-height: 1.1;
  letter-spacing: -0.022em; margin: 0 0 14px;
}
.learn-hero .lede {
  max-width: 620px; font-size: 17px; color: var(--text-muted); line-height: 1.55;
}

/* Carte article Learn */
.learn-card {
  background: var(--bg-paper); border: 1px solid var(--line);
  border-radius: 14px; padding: 22px 22px 18px;
  display: flex; flex-direction: column; height: 100%;
  transition: transform var(--d-base), border-color var(--d-base), box-shadow var(--d-base);
}
.learn-card:hover { transform: translateY(-2px); border-color: var(--green); box-shadow: var(--shadow-md); }
.learn-card .step {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  color: var(--green); margin-bottom: 6px;
}
.learn-card .level {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.12em;
  font-weight: 700; padding: 3px 9px; border-radius: 999px;
  display: inline-block; margin-bottom: 12px;
}
.learn-card .level.beginner    { background: rgba(20,199,123,0.12); color: var(--green); }
.learn-card .level.intermediate{ background: rgba(212,175,55,0.14); color: var(--gold); }
.learn-card .level.advanced    { background: rgba(3,25,15,0.06); color: var(--text); }
.learn-card h3 {
  font-family: var(--display); font-size: 19px; font-weight: 500;
  margin: 0 0 8px; line-height: 1.25; letter-spacing: -0.012em;
}
.learn-card p {
  font-size: 14px; color: var(--text-muted); line-height: 1.55; margin: 0 0 14px;
}
.learn-card .meta {
  display: flex; gap: 12px; font-size: 11.5px; color: var(--text-soft);
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-soft);
}
.learn-card .meta .status-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px;
  background: var(--text-soft);
}
.learn-card .meta .status-dot.done { background: var(--green); }
.learn-card .meta .status-dot.review { background: var(--gold); }
.learn-card a.go {
  font-size: 13px; font-weight: 600; color: var(--green);
  text-decoration: none; margin-top: 10px;
}

/* Grille parcours */
.learn-path {
  border: 1px solid var(--line); border-radius: 16px; padding: 28px;
  background: var(--bg-paper); margin-bottom: 24px;
}
.learn-path .path-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 18px; margin-bottom: 18px; flex-wrap: wrap;
}
.learn-path .path-head h2 {
  font-family: var(--display); font-size: 24px; font-weight: 500;
  margin: 0; letter-spacing: -0.012em;
}
.learn-path .path-head p { font-size: 13px; color: var(--text-soft); margin: 4px 0 0; }
.learn-path .path-progress {
  width: 100%; height: 6px; background: var(--bg-soft); border-radius: 999px;
  overflow: hidden; margin: 12px 0 18px;
}
.learn-path .path-progress > span {
  display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--green-bright));
  transition: width 600ms var(--ease-out);
}
.learn-step-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 8px;
}
.learn-step-list li { padding: 0; }
.learn-step-list a {
  display: grid; grid-template-columns: 36px 1fr auto auto;
  gap: 14px; align-items: center;
  padding: 12px 14px; border-radius: 10px;
  background: var(--bg-soft); border: 1px solid var(--line-soft);
  text-decoration: none; color: var(--text);
  transition: background var(--d-base), border-color var(--d-base);
}
.learn-step-list a:hover { background: #fff; border-color: var(--green); }
.learn-step-list .num {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  color: var(--text-soft); width: 36px; text-align: center;
}
.learn-step-list .title { font-size: 14px; font-weight: 500; }
.learn-step-list .score { font-family: var(--mono); font-size: 12px; color: var(--text-soft); }
.learn-step-list .badge {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 700; padding: 3px 8px; border-radius: 999px;
  background: var(--bg-soft); color: var(--text-soft);
}
.learn-step-list .badge.todo { background: var(--bg-soft); color: var(--text-soft); }
.learn-step-list .badge.progress { background: rgba(212,175,55,0.14); color: var(--gold); }
.learn-step-list .badge.done { background: rgba(20,199,123,0.12); color: var(--green); }
.learn-step-list .badge.review { background: rgba(220,53,69,0.10); color: var(--red); }
.learn-step-list a .num.done { color: var(--green); }

/* Bandeau d'article Learn (en haut) */
.learn-article-hero {
  padding: 56px 0 28px;
  background: linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-paper) 100%);
  border-bottom: 1px solid var(--line-soft);
}
.learn-article-hero .crumb {
  font-size: 12px; color: var(--text-soft); margin-bottom: 14px;
}
.learn-article-hero .crumb a { color: var(--green); font-weight: 500; }
.learn-article-hero h1 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(28px, 3.5vw, 42px); line-height: 1.15;
  letter-spacing: -0.018em; margin: 0 0 14px;
}
.learn-article-hero .article-lede {
  max-width: 720px; font-size: 17px; color: var(--text-muted); line-height: 1.55;
}
.learn-article-hero .meta {
  display: flex; gap: 16px; font-size: 12.5px; color: var(--text-soft);
  margin-top: 18px; flex-wrap: wrap;
}
.learn-article-hero .meta strong { color: var(--text); }

/* Corps d'article Learn */
.learn-body {
  padding: 32px 0 56px; max-width: 740px; margin: 0 auto;
}
.learn-body h2 {
  font-family: var(--display); font-weight: 500;
  font-size: 24px; line-height: 1.25; letter-spacing: -0.012em;
  margin: 36px 0 12px;
}
.learn-body h3 {
  font-family: var(--display); font-weight: 500;
  font-size: 18px; line-height: 1.3; margin: 26px 0 8px;
}
.learn-body p {
  font-size: 16px; line-height: 1.7; color: var(--text);
  margin: 0 0 14px;
}
.learn-body ul, .learn-body ol {
  font-size: 16px; line-height: 1.7; padding-left: 22px;
  margin: 0 0 18px; color: var(--text);
}
.learn-body ul li, .learn-body ol li { margin-bottom: 6px; }
.learn-body strong { color: var(--text); font-weight: 600; }
.learn-body a { color: var(--green); font-weight: 500; }

.learn-callout {
  border: 1px solid var(--line); border-left: 3px solid var(--green);
  border-radius: 10px; padding: 16px 18px; margin: 20px 0;
  background: rgba(20,199,123,0.04);
}
.learn-callout.warn  { border-left-color: var(--gold); background: rgba(212,175,55,0.05); }
.learn-callout.error { border-left-color: var(--red);  background: rgba(220,53,69,0.04); }
.learn-callout h4 {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--green); font-weight: 700; margin: 0 0 8px;
}
.learn-callout.warn h4 { color: var(--gold); }
.learn-callout.error h4 { color: var(--red); }
.learn-callout p { font-size: 15px; margin: 0; }

.learn-summary {
  border: 1px solid var(--green); border-radius: 12px;
  padding: 20px 22px; background: rgba(20,199,123,0.05);
  margin: 28px 0;
}
.learn-summary h4 {
  font-family: var(--display); font-size: 16px; margin: 0 0 8px; color: var(--green);
  font-weight: 600;
}
.learn-summary ul { font-size: 14.5px; margin: 0; padding-left: 20px; }
.learn-summary li { margin-bottom: 4px; }

/* Quiz */
.learn-quiz {
  border: 1px solid var(--line); border-radius: 14px;
  padding: 24px 26px; background: var(--bg-paper); margin: 32px 0;
}
.learn-quiz h3 {
  font-family: var(--display); font-size: 20px; margin: 0 0 4px; font-weight: 500;
}
.learn-quiz .quiz-sub {
  font-size: 13px; color: var(--text-soft); margin: 0 0 18px;
}
.quiz-q { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line-soft); }
.quiz-q:last-of-type { border-bottom: none; padding-bottom: 0; }
.quiz-q .q-text { font-size: 15px; font-weight: 500; margin: 0 0 10px; }
.quiz-q .q-options { display: flex; flex-direction: column; gap: 6px; }
.quiz-q .q-option {
  display: block; cursor: pointer;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 14px; transition: background var(--d-base), border-color var(--d-base);
  background: #fff;
}
.quiz-q .q-option:hover { border-color: var(--green); background: var(--bg-soft); }
.quiz-q .q-option input { margin-right: 8px; }
.quiz-q.is-answered .q-option { cursor: default; pointer-events: none; opacity: 0.7; }
.quiz-q.is-answered .q-option.correct { border-color: var(--green); background: rgba(20,199,123,0.10); opacity: 1; }
.quiz-q.is-answered .q-option.wrong   { border-color: var(--red);   background: rgba(220,53,69,0.05); }
.quiz-q .q-explain {
  display: none; margin-top: 10px; padding: 10px 12px;
  background: var(--bg-soft); border-radius: 8px; font-size: 13.5px; color: var(--text-muted);
  line-height: 1.5;
}
.quiz-q.is-answered .q-explain { display: block; }

.learn-quiz .quiz-actions {
  display: flex; gap: 10px; align-items: center; margin-top: 20px;
  padding-top: 18px; border-top: 1px solid var(--line-soft); flex-wrap: wrap;
}
.learn-quiz .quiz-score {
  font-family: var(--mono); font-size: 14px; color: var(--text-soft); font-weight: 600;
}
.learn-quiz .quiz-status {
  font-size: 12px; padding: 4px 10px; border-radius: 999px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
}
.learn-quiz .quiz-status.pass { background: rgba(20,199,123,0.12); color: var(--green); }
.learn-quiz .quiz-status.fail { background: rgba(212,175,55,0.14); color: var(--gold); }

/* Navigation suivant/précédent */
.learn-nav {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 24px 0; border-top: 1px solid var(--line-soft);
  flex-wrap: wrap; max-width: 740px; margin: 0 auto;
}
.learn-nav a {
  display: inline-flex; flex-direction: column; gap: 2px;
  text-decoration: none; padding: 12px 16px; border-radius: 10px;
  border: 1px solid var(--line); flex: 1 1 240px; max-width: 320px;
  background: var(--bg-paper); color: var(--text);
  transition: border-color var(--d-base), background var(--d-base);
}
.learn-nav a:hover { border-color: var(--green); background: var(--bg-soft); }
.learn-nav a.next { text-align: right; margin-left: auto; }
.learn-nav .l { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-soft); font-weight: 600; }
.learn-nav .t { font-size: 14px; color: var(--green); font-weight: 500; line-height: 1.3; }

/* Glossaire */
.glossaire-toc {
  display: flex; gap: 4px; flex-wrap: wrap; margin: 18px 0 32px;
}
.glossaire-toc a {
  display: inline-block; padding: 6px 10px; border-radius: 6px;
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  color: var(--text); background: var(--bg-soft); border: 1px solid var(--line-soft);
  text-decoration: none;
}
.glossaire-toc a:hover { background: var(--green); color: #fff; border-color: var(--green); }
.glossaire-section h2 {
  font-family: var(--mono); font-size: 28px; font-weight: 600;
  color: var(--green); margin: 36px 0 12px; padding-bottom: 6px;
  border-bottom: 2px solid var(--green);
}
.glossaire-entry {
  padding: 14px 0 18px; border-bottom: 1px solid var(--line-soft);
}
.glossaire-entry h3 {
  font-family: var(--display); font-size: 17px; font-weight: 500;
  margin: 0 0 6px; color: var(--text);
}
.glossaire-entry p { font-size: 14.5px; line-height: 1.6; color: var(--text); margin: 0 0 6px; }
.glossaire-entry .why { font-size: 13px; color: var(--text-muted); margin: 4px 0 0; }
.glossaire-entry .ex {
  font-size: 13px; color: var(--text-soft); margin: 6px 0 0; font-style: italic;
}

/* Bloc dashboard Learn */
.learn-dash-header {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  margin-bottom: 24px;
}
.learn-dash-stat {
  background: var(--bg-paper); border: 1px solid var(--line);
  border-radius: 12px; padding: 18px 20px;
}
.learn-dash-stat .l {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-soft); font-weight: 600; margin: 0 0 6px;
}
.learn-dash-stat .v {
  font-family: var(--display); font-size: 26px; font-weight: 500; color: var(--text);
  margin: 0;
}
.learn-dash-stat .sub { font-size: 12px; color: var(--text-soft); margin: 4px 0 0; }
.learn-dash-level {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(90deg, rgba(20,199,123,0.10), rgba(212,175,55,0.06));
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: var(--green);
  text-transform: uppercase; letter-spacing: 0.1em;
}

@media (max-width: 700px) {
  .learn-dash-header { grid-template-columns: 1fr; }
  .learn-step-list a { grid-template-columns: 28px 1fr auto; gap: 10px; padding: 10px 12px; }
  .learn-step-list a .score { display: none; }
}

/* ============================================================
   PRÉ-LANCEMENT — chiffres et tableaux robustes
   ============================================================ */

/* Pas de retour à la ligne dans les valeurs numériques */
.num,
td.num,
th.num,
.value,
.stat-card .value,
.live-bar-item .v,
.live-item .v,
.risk-card .v,
.panel-stat .v,
.studio-result-card .v,
.metric,
.pos, .neg, .flat,
.kpi-card .v,
.fund-name strong,
.kbd,
.cat-pill,
.q-badge {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* Wrapper standard pour tables : scroll horizontal propre, fade à droite */
.table-wrap {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(3,25,15,0.04);
}
.table-wrap > table {
  margin: 0;
  border-radius: 0;
  border: none;
  width: 100%;
  min-width: 640px;
}
.table-wrap > table th,
.table-wrap > table td {
  padding: 12px 14px;
}
.table-wrap > table thead tr {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.table-wrap > table thead th {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-soft); font-weight: 600; white-space: nowrap;
}
.table-wrap > table tbody tr { border-bottom: 1px solid var(--line-soft); }
.table-wrap > table tbody tr:hover { background: var(--bg-cream); }
.table-wrap > table .num { white-space: nowrap; font-feature-settings: "tnum"; }

/* Indicateur scroll horizontal (fade à droite) */
.table-wrap::after {
  content: '';
  position: absolute; top: 0; right: 0; bottom: 0; width: 32px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.95));
  pointer-events: none; opacity: 0;
  transition: opacity var(--d-base);
}
.table-wrap.is-scrollable::after { opacity: 1; }

/* Plus dense sur mobile */
@media (max-width: 700px) {
  .table-wrap > table th,
  .table-wrap > table td { padding: 10px 12px; font-size: 13px; }
  .table-wrap > table thead th { font-size: 10.5px; padding: 10px 12px; }
}

/* Toast inline (remplace alert()) */
.zady-toast-inline {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 999px;
  background: rgba(20,199,123,0.10); border: 1px solid rgba(20,199,123,0.28);
  color: var(--green); font-size: 13px; font-weight: 600;
  margin-top: 12px;
  animation: zady-toast-fade 4s ease-in-out forwards;
}
.zady-toast-inline.error {
  background: rgba(220,53,69,0.06); border-color: rgba(220,53,69,0.22); color: var(--red);
}
@keyframes zady-toast-fade {
  0%, 80% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-4px); }
}

/* ================================================================
   ZADY · v5 — Pro shell commun
   Topbar dédiée aux espaces connectés (cockpit). Cohérence visuelle
   à travers : pro-manager, pro-institutional, pro-market, admin-access
   et access (en variante "tampon").
   ================================================================ */
.proshell-mode { background: var(--bg-soft); }
.proshell-mode > main { padding: 0; }
.proshell-mode .site-footer { display: none; }

.proshell-appbar {
  position: sticky; top: 0; z-index: 90;
  background: var(--ink); color: var(--on-ink);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  padding: 12px 24px;
  display: grid;
  grid-template-columns: minmax(280px, auto) 1fr auto;
  gap: 22px; align-items: center;
}
.proshell-appbar a { color: inherit; text-decoration: none; }
.proshell-appbar .ps-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 600;
}
.proshell-appbar .ps-brand .mark {
  width: 28px; height: 28px; border-radius: 7px; background: var(--green);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 13.5px;
}
.proshell-appbar .ps-brand .label { font-size: 14.5px; line-height: 1.1; }
.proshell-appbar .ps-brand .sub {
  display: block;
  font-size: 10px; font-weight: 600; letter-spacing: 0.16em;
  color: rgba(232,241,236,0.55); text-transform: uppercase; margin-top: 2px;
}

.proshell-appbar .ps-context {
  display: flex; align-items: center; gap: 18px; min-width: 0;
}
.proshell-appbar .ps-org {
  display: flex; flex-direction: column; min-width: 0;
}
.proshell-appbar .ps-org .name {
  font-family: var(--display); font-size: 14.5px; font-weight: 500;
  color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px;
}
.proshell-appbar .ps-org .sub {
  font-size: 11.5px; color: rgba(232,241,236,0.62);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.proshell-appbar .ps-user {
  display: flex; flex-direction: column; padding-left: 18px;
  border-left: 1px solid rgba(255,255,255,0.10);
}
.proshell-appbar .ps-user .name {
  font-size: 13px; color: #fff; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.proshell-appbar .ps-user .role {
  font-size: 11px; color: rgba(232,241,236,0.55);
}
.proshell-appbar .ps-actions {
  display: flex; align-items: center; gap: 10px;
}
.proshell-appbar .ps-link {
  font-size: 12.5px; color: rgba(232,241,236,0.65);
  border-bottom: 1px dashed rgba(232,241,236,0.20); padding-bottom: 1px;
}
.proshell-appbar .ps-link:hover { color: var(--green-bright); border-color: var(--green-bright); }
.proshell-appbar .ps-btn {
  padding: 8px 14px; border-radius: 8px; font-size: 12.5px; font-weight: 600;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16); color: #fff;
  cursor: pointer; white-space: nowrap;
}
.proshell-appbar .ps-btn:hover { background: rgba(255,255,255,0.12); }
.proshell-appbar .ps-btn.is-primary {
  background: var(--green-bright); border-color: var(--green-bright); color: var(--ink);
}
.proshell-appbar .ps-btn.is-primary:hover { background: #1de28b; }

@media (max-width: 1100px) {
  .proshell-appbar {
    grid-template-columns: 1fr auto;
    padding: 10px 16px;
  }
  .proshell-appbar .ps-context {
    grid-column: 1 / -1; order: 3;
    border-top: 1px solid rgba(255,255,255,0.08); padding-top: 8px;
  }
  .proshell-appbar .ps-user { border-left: none; padding-left: 0; }
  .proshell-appbar .ps-actions { order: 2; }
}

/* ================================================================
   Statut pills · système unifié français
   - Une classe par état logique
   - Intitulés français servis par CSS attr ou par JS via .label-fr
   ================================================================ */
.zs-pill {
  display: inline-flex; align-items: center;
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.zs-pill.s-not_started, .zs-pill.s-no_profile { background: var(--bg-cream); color: var(--text-soft); }
.zs-pill.s-draft        { background: rgba(120,68,200,0.10); color: #5a3aa3; }
.zs-pill.s-submitted    { background: rgba(212,175,55,0.14); color: #8b6f0a; }
.zs-pill.s-needs_update,
.zs-pill.s-needs-update { background: rgba(197,57,47,0.10);  color: var(--red); }
.zs-pill.s-published    { background: rgba(20,199,123,0.14); color: var(--green); }
.zs-pill.s-archived     { background: var(--bg-cream); color: var(--text-soft); }
.zs-pill.s-pending      { background: var(--bg-cream); color: var(--text-soft); }
.zs-pill.s-validated    { background: rgba(212,175,55,0.14); color: #8b6f0a; }
.zs-pill.s-invitation_sent { background: rgba(20,199,123,0.10); color: var(--green); }
.zs-pill.s-active       { background: rgba(20,199,123,0.18); color: var(--green); }
.zs-pill.s-rejected     { background: rgba(197,57,47,0.10); color: var(--red); }
.zs-pill.s-pending_zady { background: rgba(212,175,55,0.14); color: #8b6f0a; }
.zs-pill.s-to_analyze   { background: var(--bg-cream); color: var(--text-soft); }
.zs-pill.s-retained     { background: rgba(20,199,123,0.14); color: var(--green); }
.zs-pill.s-to_discuss   { background: rgba(212,175,55,0.14); color: #8b6f0a; }
.zs-pill.s-open         { background: rgba(20,199,123,0.10); color: var(--green); }
.zs-pill.s-in_review    { background: rgba(212,175,55,0.14); color: #8b6f0a; }
.zs-pill.s-decided      { background: rgba(120,68,200,0.10); color: #5a3aa3; }

/* Bandeau "données de démonstration" sobre (V1) */
.demo-strip {
  background: var(--bg-cream); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 14px;
  font-size: 12.5px; color: var(--text-muted); line-height: 1.55;
}
.demo-strip strong { color: var(--text); }

/* ================================================================
   ZADY · I18N — TYPO ARABE + RTL + SÉLECTEUR DE LANGUE
   ----------------------------------------------------------------
   Ne s'active que sur les pages [lang="ar"] / [dir="rtl"].
   La version FR/EN n'est pas affectée.
   ================================================================ */

/* Police arabe propre, sobre, moderne — utilisée uniquement en lang="ar" */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@300;400;500;600;700&display=swap");

[lang="ar"] body,
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3, [lang="ar"] h4,
[lang="ar"] p, [lang="ar"] a, [lang="ar"] span, [lang="ar"] li,
[lang="ar"] button, [lang="ar"] input, [lang="ar"] select, [lang="ar"] textarea {
  font-family: "Noto Sans Arabic", var(--sans);
}
[lang="ar"] body { line-height: 1.7; }

/* En arabe : pas d'italique forcé. <em> reste un accent sobre vert. */
[lang="ar"] em {
  font-style: normal;
  color: var(--green);
  font-weight: 600;
  background: none !important;        /* annule les gradients du FR */
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
}

/* RTL — orientation générale */
[dir="rtl"] .topbar-inner { direction: rtl; }
[dir="rtl"] .primary-nav { direction: rtl; }
[dir="rtl"] .topbar-actions { direction: rtl; }
[dir="rtl"] .footer-grid { direction: rtl; }

/* Logical properties pour les composants ZADY clés */
[dir="rtl"] .obj-anchor,
[dir="rtl"] .quest-card,
[dir="rtl"] .veh-card,
[dir="rtl"] .step-card,
[dir="rtl"] .level-card,
[dir="rtl"] .journey-card,
[dir="rtl"] .opcvm-callout {
  text-align: right;
}

/* Callouts left-border → start-border en logique inline */
[dir="rtl"] .callout,
[dir="rtl"] .opcvm-callout,
[dir="rtl"] .check-card,
[dir="rtl"] .obj-anchor .reco {
  border-left: none;
  border-right: 4px solid var(--green);
}
[dir="rtl"] .proj-result,
[dir="rtl"] .mini-sim-result {
  border-left: 1px solid var(--line);
  border-right: 3px solid var(--green);
}

/* Listes : on bascule la marge de start */
[dir="rtl"] ul,
[dir="rtl"] ol { padding-right: 18px; padding-left: 0; }

/* Page intro actions : restent en flex, juste l'ordre logique */
[dir="rtl"] .page-intro-actions { direction: rtl; }

/* Hero CTA / boutons */
[dir="rtl"] .hero-cta { direction: rtl; }

/* Parcours vertical home v2 — la ligne reste centrée, mais l'alternance
   gauche/droite s'inverse logiquement. On force visuellement l'inversion
   en RTL pour garder l'esprit "stations". */
[dir="rtl"] .journey-station.is-left .journey-card  { grid-column: 3; margin-right: 0; margin-left: 32px; text-align: right; }
[dir="rtl"] .journey-station.is-right .journey-card { grid-column: 1; margin-left: 0; margin-right: 32px; text-align: right; }

/* Mobile parcours : la ligne passe à droite en RTL */
@media (max-width: 760px) {
  [dir="rtl"] .journey-line { left: auto; right: 26px; }
  [dir="rtl"] .journey-station {
    grid-template-columns: 1fr 52px;
  }
  [dir="rtl"] .journey-station.is-left .journey-card,
  [dir="rtl"] .journey-station.is-right .journey-card {
    grid-column: 1;
    margin: 0;
    text-align: right;
  }
  [dir="rtl"] .journey-marker { grid-column: 2; justify-self: end; }
}

/* Tableaux financiers : text-align logique mais NUMÉROS toujours en LTR */
[dir="rtl"] table th { text-align: right; }
[dir="rtl"] table td { text-align: right; }
[dir="rtl"] .num,
[dir="rtl"] .v,
[dir="rtl"] td.num,
[dir="rtl"] th.num,
[dir="rtl"] .uc-table .num,
[dir="rtl"] .live-bar-item .v,
[dir="rtl"] [data-bind] {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: right;          /* alignement comptable conservé */
  font-feature-settings: "tnum";
  white-space: nowrap;
}

/* Graphiques financiers : ne JAMAIS miroir en RTL */
[dir="rtl"] svg[viewBox],
[dir="rtl"] .chart-wrap svg,
[dir="rtl"] [data-chart] svg,
[dir="rtl"] .hm-curve {
  direction: ltr;
  unicode-bidi: isolate;
}

/* Footer → texte RTL aligné à droite */
[dir="rtl"] .site-footer .footer-grid { text-align: right; }

/* Sticky / sidebars */
[dir="rtl"] .studio-panel,
[dir="rtl"] .uc-selbar { direction: rtl; }

/* Mini icônes : ne s'inversent pas (les SVG gardent leur orientation) */
[dir="rtl"] .js-icon svg,
[dir="rtl"] .lc-icon svg,
[dir="rtl"] .ir-icon svg,
[dir="rtl"] .nav-pro,
[dir="rtl"] .brand-mark { direction: ltr; }

/* Flèches CTA : on inverse → en ← pour la cohérence visuelle.
   Note : nos textes EN/AR utilisent déjà ← dans les fichiers JSON. */

/* ============ Sélecteur de langue ============ */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  margin: 0 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  font-size: 11.5px;
  font-weight: 600;
}
.topbar.is-dark .lang-switcher {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.16);
}
.lang-switcher .lang-link {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background var(--d-fast), color var(--d-fast);
  white-space: nowrap;
}
.topbar.is-dark .lang-switcher .lang-link {
  color: rgba(232,241,236,0.65);
}
.lang-switcher .lang-link:hover {
  color: var(--green);
  background: rgba(20,199,123,0.10);
}
.lang-switcher .lang-link.is-active {
  background: var(--green);
  color: #fff;
}
.topbar.is-dark .lang-switcher .lang-link.is-active {
  background: var(--green-bright);
  color: var(--ink);
}
.lang-switcher .lang-link[lang="ar"] {
  font-family: "Noto Sans Arabic", var(--sans);
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
}
@media (max-width: 980px) {
  .lang-switcher { font-size: 10.5px; padding: 2px; }
  .lang-switcher .lang-link { padding: 3px 7px; }
}

/* ============ Bannière "traduction en cours" ============ */
.i18n-banner {
  background: linear-gradient(135deg, rgba(212,175,55,0.10), rgba(20,199,123,0.06));
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font-size: 13.5px;
  color: var(--text);
}
.i18n-banner .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.i18n-banner-pill {
  display: inline-flex; align-items: center;
  font-family: var(--mono); font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  background: var(--gold); color: #fff;
  padding: 3px 10px; border-radius: 999px;
}
.i18n-banner p {
  margin: 0; flex: 1; min-width: 240px;
  color: var(--text-muted);
}
.i18n-banner-link {
  font-weight: 600; color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.i18n-banner-link:hover { color: var(--green-2); }

/* ================================================================
   ZADY · APPRENDRE — BADGES & ACCÈS LIBRE
   ================================================================ */
.access-strip {
  background: rgba(20,199,123,0.06);
  border: 1px solid rgba(20,199,123,0.20);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex; align-items: center; gap: 14px;
  font-size: 13.5px; color: var(--text);
  margin-bottom: 26px;
}
.access-strip .ico {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  background: rgba(20,199,123,0.14); color: var(--green);
  display: inline-flex; align-items: center; justify-content: center;
}
.access-strip .ico svg {
  width: 16px; height: 16px; stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.access-strip strong { color: var(--text); }

/* Bandeau soft "créer un compte gratuit" */
.bdg-signup-banner {
  background: linear-gradient(135deg, rgba(20,199,123,0.08), rgba(212,175,55,0.05));
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: 14px;
  padding: 18px 22px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin-bottom: 22px;
}
.bdg-signup-banner > div { flex: 1; min-width: 240px; }
.bdg-signup-banner strong { color: var(--text); font-weight: 600; }
.bdg-signup-banner p {
  font-size: 12.5px; color: var(--text-soft); margin: 4px 0 0; line-height: 1.5;
}
.bdg-signup-banner .btn { white-space: nowrap; }

/* Grille des badges */
.bdg-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.bdg-card {
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 20px 18px;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.bdg-card.is-final {
  background: linear-gradient(135deg, rgba(20,199,123,0.05), rgba(212,175,55,0.04));
  border-color: rgba(212,175,55,0.40);
}
.bdg-medal {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--bg-cream); color: var(--text-soft);
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  margin-bottom: 14px;
  transition: background var(--d-base), color var(--d-base), border-color var(--d-base);
}
.bdg-medal svg {
  width: 22px; height: 22px; stroke: currentColor; fill: none;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.bdg-card.state-locked   .bdg-medal { /* gris */ }
.bdg-card.state-progress .bdg-medal {
  background: rgba(20,199,123,0.06); color: var(--green); border-color: rgba(20,199,123,0.20);
}
.bdg-card.state-unlocked .bdg-medal,
.bdg-card.state-saved    .bdg-medal {
  background: rgba(20,199,123,0.14); color: var(--green); border-color: rgba(20,199,123,0.32);
}
.bdg-card.is-final.state-unlocked .bdg-medal,
.bdg-card.is-final.state-saved    .bdg-medal {
  background: rgba(212,175,55,0.18); color: var(--gold); border-color: rgba(212,175,55,0.45);
}
.bdg-state {
  display: inline-block;
  font-family: var(--mono); font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  padding: 3px 9px; border-radius: 999px;
  margin: 0 0 10px;
  background: var(--bg-cream); color: var(--text-soft);
}
.bdg-state.progress { background: rgba(20,199,123,0.10); color: var(--green); }
.bdg-state.unlocked { background: rgba(20,199,123,0.16); color: var(--green); }
.bdg-state.saved    { background: rgba(20,199,123,0.16); color: var(--green); }
.bdg-card.is-final .bdg-state.unlocked,
.bdg-card.is-final .bdg-state.saved { background: rgba(212,175,55,0.18); color: var(--gold); }

.bdg-card h3 {
  font-family: var(--display); font-size: 16px; font-weight: 500;
  letter-spacing: -0.012em; margin: 0 0 6px;
  color: var(--text);
}
.bdg-card .bdg-tag {
  font-size: 13px; line-height: 1.45; color: var(--text-muted); margin: 0 0 10px;
}
.bdg-progress {
  height: 4px; background: var(--line-soft); border-radius: 2px; overflow: hidden;
  margin: 4px 0 10px;
}
.bdg-progress span {
  display: block; height: 100%; background: var(--green);
  transition: width 320ms var(--ease-out);
}
.bdg-card .bdg-hint {
  font-size: 11.5px; color: var(--text-soft); margin: auto 0 0; line-height: 1.5;
  padding-top: 10px; border-top: 1px solid var(--line-soft);
}

@media (max-width: 720px) {
  .bdg-grid { grid-template-columns: 1fr; }
  .bdg-signup-banner { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ================================================================
   ZADY · v2 HOME — PARCOURS VERTICAL DE L'ÉPARGNE
   Composant utilisé uniquement sur la home v2 candidate.
   Réversible : retirer les sections .home-v2-* d'index.html
   restaure l'ancienne home (le CSS reste dormant).
   ================================================================ */

/* Section conteneur du parcours */
.journey-section {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 50%, var(--bg) 100%);
  padding: 88px 0 96px;
}
.journey-section .section-head {
  text-align: center;
  margin-bottom: 56px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.journey-section .section-head h2 {
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 0 0 14px;
}
.journey-section .section-head h2 em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  color: var(--green);
}
.journey-section .section-head p {
  font-size: 16px; color: var(--text-muted);
  line-height: 1.55; margin: 0;
}

/* Le parcours */
.journey {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 0 40px;
}

/* Ligne centrale grise */
.journey-line {
  position: absolute;
  left: 50%; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--line);
  transform: translateX(-1px);
  z-index: 1;
  border-radius: 1px;
}
/* Remplissage progressif vert (animé au scroll) */
.journey-line .journey-fill {
  position: absolute; top: 0; left: 0; right: 0;
  height: 0%;
  background: linear-gradient(180deg, var(--green) 0%, var(--green-bright) 100%);
  border-radius: 1px;
  transition: height 320ms var(--ease-out);
}

/* Une station */
.journey-station {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 96px 1fr;
  gap: 0;
  margin-bottom: 56px;
  align-items: start;
  z-index: 2;
}
.journey-station:last-child { margin-bottom: 0; }

/* Marqueur central (cercle numéroté) */
.journey-marker {
  grid-column: 2;
  justify-self: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 13px; font-weight: 700;
  color: var(--text-soft);
  position: relative;
  z-index: 3;
  transition: border-color var(--d-base), color var(--d-base), box-shadow var(--d-base), background var(--d-base);
}
.journey-station.is-active .journey-marker {
  border-color: var(--green);
  color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 6px rgba(20,199,123,0.10), var(--shadow-md);
}
.journey-station.is-active .journey-marker::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(20,199,123,0.20);
  animation: journeyPulse 2.4s ease-in-out infinite;
}
@keyframes journeyPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 0;   transform: scale(1.18); }
}

/* Carte d'étape */
.journey-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
  opacity: 0; transform: translateY(20px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out), border-color var(--d-base), box-shadow var(--d-base);
}
.journey-station.is-revealed .journey-card {
  opacity: 1; transform: translateY(0);
}
.journey-station.is-active .journey-card {
  border-color: rgba(20,199,123,0.35);
  box-shadow: 0 8px 24px rgba(5,31,20,0.06), 0 1px 3px rgba(5,31,20,0.04);
}

.journey-card .js-eyebrow {
  display: inline-block;
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--green); margin-bottom: 10px;
}

/* Pastille pictogramme — signalétique premium, monochrome vert.
   Affichage en flex (block-level) pour empiler proprement icône
   au-dessus du eyebrow et du h3 de la carte. */
.js-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(20,199,123,0.08);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  margin: 0 0 14px;
  border: 1px solid rgba(20,199,123,0.16);
  transition: background var(--d-base), border-color var(--d-base), transform var(--d-base);
}
.js-icon svg {
  width: 18px; height: 18px;
  stroke: currentColor; fill: none; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.journey-station.is-active .js-icon {
  background: rgba(20,199,123,0.14);
  border-color: rgba(20,199,123,0.30);
  transform: scale(1.04);
}
@media (max-width: 760px) {
  .js-icon { width: 32px; height: 32px; border-radius: 9px; margin-bottom: 10px; }
  .js-icon svg { width: 16px; height: 16px; }
}

/* Pastille pictogramme — Levels (3 cartes "ZADY accompagne") */
.lc-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(20,199,123,0.08);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  margin: 0 0 14px;
  border: 1px solid rgba(20,199,123,0.16);
}
.lc-icon svg {
  width: 18px; height: 18px;
  stroke: currentColor; fill: none; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
@media (max-width: 760px) {
  .lc-icon { width: 32px; height: 32px; border-radius: 9px; }
  .lc-icon svg { width: 16px; height: 16px; }
}

/* Pastille pictogramme — rappel Intelligence (variante or pour cohérence rubrique pro) */
.ir-icon {
  width: 40px; height: 40px; border-radius: 11px;
  background: rgba(201,160,91,0.10);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  border: 1px solid rgba(201,160,91,0.22);
}
.ir-icon svg {
  width: 20px; height: 20px;
  stroke: currentColor; fill: none; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.journey-card h3 {
  font-family: var(--display);
  font-size: 22px; font-weight: 500;
  line-height: 1.16; letter-spacing: -0.014em;
  margin: 0 0 12px;
  color: var(--text);
}
.journey-card p {
  font-size: 14.5px; line-height: 1.6;
  color: var(--text-muted); margin: 0 0 16px;
}
.journey-card .js-action {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600;
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color var(--d-base);
}
.journey-card .js-action:hover {
  border-bottom-color: var(--green);
}

/* Alternance gauche / droite */
.journey-station.is-left .journey-card  { grid-column: 1; margin-right: 32px; }
.journey-station.is-right .journey-card { grid-column: 3; margin-left: 32px; }

/* Mini-tableau réceptacles (étape 5) */
.js-vehicles {
  display: grid; gap: 4px;
  margin: 10px 0 14px;
  font-size: 13px;
}
.js-vehicles .row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}
.js-vehicles .row:last-child { border-bottom: none; }
.js-vehicles .row .lbl {
  font-weight: 600; color: var(--text);
}
.js-vehicles .row .det {
  color: var(--text-muted); font-size: 12.5px; line-height: 1.45;
}

/* Mini-aperçu comparateur (étape 7) */
.js-mini-table {
  margin: 6px 0 14px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  overflow: hidden;
  font-size: 12.5px;
}
.js-mini-table .head,
.js-mini-table .row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 8px;
  padding: 8px 12px;
  align-items: center;
}
.js-mini-table .head {
  background: var(--bg-cream);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-soft);
  font-weight: 700;
}
.js-mini-table .row {
  border-top: 1px solid var(--line-soft);
}
.js-mini-table .row .name { font-weight: 600; color: var(--text); }
.js-mini-table .row .num  {
  font-family: var(--mono);
  font-feature-settings: "tnum"; white-space: nowrap;
  text-align: right;
}
.js-mini-table .row .num.up   { color: var(--green); }
.js-mini-table .row .num.down { color: var(--red); }

/* Mini-projection Studio (étape 8) */
.js-projection {
  background: linear-gradient(135deg, rgba(20,199,123,0.05), rgba(212,175,55,0.03));
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 8px 0 14px;
}
.js-projection .pj-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12.5px;
  padding: 4px 0;
}
.js-projection .pj-row .lbl { color: var(--text-soft); }
.js-projection .pj-row .val {
  font-weight: 600; color: var(--text);
  font-feature-settings: "tnum"; white-space: nowrap;
}
.js-projection .pj-result {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px dashed rgba(20,199,123,0.30);
  display: flex; justify-content: space-between; align-items: baseline;
}
.js-projection .pj-result .lbl {
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-soft); font-weight: 700;
}
.js-projection .pj-result .v {
  font-family: var(--display); font-size: 18px; font-weight: 600;
  color: var(--green); white-space: nowrap;
}

/* CTA fin de parcours */
.journey-end {
  margin-top: 36px;
  text-align: center;
}
.journey-end p {
  font-size: 13px; color: var(--text-soft);
  margin: 0 0 14px; font-style: italic;
}

/* MOBILE — passage en timeline simple */
@media (max-width: 760px) {
  .journey-section { padding: 56px 0 72px; }
  .journey-section .section-head { margin-bottom: 40px; }

  .journey { max-width: 100%; padding-left: 4px; padding-right: 4px; }
  .journey-line {
    left: 26px; transform: none;
  }
  .journey-station {
    grid-template-columns: 52px 1fr;
    gap: 14px;
    margin-bottom: 36px;
    align-items: start;
  }
  .journey-marker {
    grid-column: 1; justify-self: start;
    width: 52px; height: 52px;
  }
  .journey-station.is-left .journey-card,
  .journey-station.is-right .journey-card {
    grid-column: 2;
    margin-left: 0; margin-right: 0;
  }
  .journey-card h3 { font-size: 18px; }
  .journey-card p { font-size: 13.5px; }

  .js-mini-table .head,
  .js-mini-table .row {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
  .js-mini-table .row .col-encours,
  .js-mini-table .head .col-encours { display: none; }
}

/* ================================================================
   ZADY · v2 HOME — Section "ZADY accompagne à chaque niveau"
   ================================================================ */
.levels-section {
  padding: 88px 0;
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
}
.levels-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
@media (max-width: 900px) { .levels-grid { grid-template-columns: 1fr; } }
.level-card {
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 28px 24px;
  display: flex; flex-direction: column; height: 100%;
  transition: border-color var(--d-base), box-shadow var(--d-base);
}
.level-card:hover { border-color: var(--green); box-shadow: var(--shadow-md); }
.level-card .lc-eyebrow {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--green); margin: 0 0 10px;
}
.level-card h3 {
  font-family: var(--display); font-size: 21px; font-weight: 500;
  margin: 0 0 12px; letter-spacing: -0.014em;
}
.level-card p {
  font-size: 14.5px; color: var(--text-muted); line-height: 1.55;
  margin: 0 0 18px;
}
.level-card .lc-links {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: auto; padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}
.level-card .lc-links a {
  font-size: 12.5px; font-weight: 600;
  color: var(--text); text-decoration: none;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color var(--d-base), color var(--d-base);
}
.level-card .lc-links a:hover {
  border-color: var(--green); color: var(--green);
}

/* Indicateur scroll dans le hero */
.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.16em;
  color: rgba(232,241,236,0.55);
  text-decoration: none;
  font-weight: 600;
  z-index: 3;
}
.hero-scroll-cue .arr {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(20,199,123,0.14);
  color: var(--green-bright);
  animation: fjBounce 2.4s ease-in-out infinite;
}
@media (max-width: 720px) {
  .hero-scroll-cue { bottom: 14px; font-size: 10.5px; }
}

/* Rappel Intelligence */
.intel-reminder {
  padding: 64px 0;
  background: var(--bg-cream);
  border-top: 1px solid var(--line);
}
.intel-reminder-inner {
  max-width: 880px; margin: 0 auto;
  text-align: center;
}
.intel-reminder .ir-eyebrow {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--gold); margin: 0 0 14px;
}
.intel-reminder h2 {
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12; letter-spacing: -0.018em;
  font-weight: 500; margin: 0 0 14px;
}
.intel-reminder h2 em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  color: var(--green);
}
.intel-reminder p {
  font-size: 15.5px; color: var(--text-muted);
  line-height: 1.6; margin: 0 0 22px;
  max-width: 660px; margin-left: auto; margin-right: auto;
}
.intel-reminder .btn { font-size: 14px; }

/* ================================================================
   ZADY · v4.2 — TEMPLATE INTÉRIEUR UNIQUE .page-intro
   Pages internes (epargner / learn / comparer / studio /
   journal / marche) utilisent toutes la même intro compacte
   et claire. Index garde son hero Story spécial. Intelligence
   reste une exception institutionnelle.
   ================================================================ */
.page-intro {
  background: var(--bg-paper);
  border-bottom: 1px solid var(--line);
  padding: 56px 0 36px;
}
.page-intro .section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--green); font-weight: 700;
  margin-bottom: 14px;
}
.page-intro h1 {
  font-family: var(--display);
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.022em;
  font-weight: 500;
  margin: 0 0 14px;
  max-width: 880px;
  color: var(--text);
}
.page-intro h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--green);
}
.page-intro .lede {
  font-size: clamp(15px, 1.15vw, 17.5px);
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.55;
  margin: 0;
}
.page-intro-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 22px;
}
.page-intro-actions .pi-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: border-color var(--d-base), color var(--d-base), background var(--d-base);
}
.page-intro-actions .pi-link:hover {
  border-color: var(--green);
  color: var(--green);
}
.page-intro-actions .pi-link.is-primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.page-intro-actions .pi-link.is-primary:hover {
  background: var(--green-2);
  border-color: var(--green-2);
  color: #fff;
}
@media (max-width: 720px) {
  .page-intro { padding: 40px 0 28px; }
  .page-intro h1 { font-size: 26px; }
  .page-intro .lede { font-size: 14.5px; }
  .page-intro-actions .pi-link { font-size: 12.5px; padding: 7px 12px; }
}

/* ================================================================
   ZADY · v4.1 — TEMPLATES UNIFIÉS
   Trois familles de hero seulement : Story / Learning / Product.
   Tout le site doit utiliser l'une de ces trois classes.
   ================================================================ */

/* -- Hero STORY (retail / Accueil / Épargner) ---------------------
   Hero chaleureux, layout 2 colonnes, fond ZADY plus aéré.
   Hérite de .hero-dark + .hero-grid.
   ----------------------------------------------------------------- */
.hero-story {
  padding: 88px 0 96px;
}
.hero-story h1 {
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.028em;
  font-weight: 500;
  margin: 0 0 18px;
  max-width: 720px;
  color: #fff;
}
.hero-story .lede {
  font-size: clamp(16px, 1.3vw, 19px);
  color: rgba(232,241,236,0.82);
  max-width: 560px;
  line-height: 1.55;
  margin: 0 0 28px;
}
.hero-story .hero-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-story .hero-grid { grid-template-columns: 1fr; gap: 36px; }
}
.hero-story .pro-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 24px; font-size: 13px;
  color: rgba(232,241,236,0.55);
  text-decoration: none;
  border-bottom: 1px dashed rgba(232,241,236,0.20);
  padding-bottom: 2px;
}
.hero-story .pro-link:hover {
  color: var(--green-bright); border-color: var(--green-bright);
}

/* Module illustratif côté droit du hero Story */
.hero-module {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 22px;
  padding: 24px 26px;
  backdrop-filter: blur(12px);
  position: relative;
  box-shadow: 0 24px 60px rgba(3,25,15,0.28), 0 4px 12px rgba(3,25,15,0.18);
}
.hero-module .hm-eyebrow {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
  color: rgba(232,241,236,0.55); font-weight: 700;
  margin: 0 0 14px;
}
.hero-module .hm-title {
  font-family: var(--display);
  font-size: 19px; font-weight: 500;
  margin: 0 0 4px; color: #fff;
  letter-spacing: -0.012em;
}
.hero-module .hm-sub {
  font-size: 12.5px; color: rgba(232,241,236,0.65);
  margin: 0 0 18px;
}
.hero-module .hm-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px; padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: rgba(232,241,236,0.85);
}
.hero-module .hm-row:last-of-type { border-bottom: none; }
.hero-module .hm-row .lbl { color: rgba(232,241,236,0.55); }
.hero-module .hm-row .val {
  font-weight: 600; color: #fff;
  font-feature-settings: "tnum"; white-space: nowrap;
}
.hero-module .hm-result {
  margin-top: 14px; padding: 14px 16px;
  background: rgba(20,199,123,0.10);
  border: 1px solid rgba(20,199,123,0.28);
  border-radius: 12px;
}
.hero-module .hm-result .lbl {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  color: rgba(232,241,236,0.65); font-weight: 700; margin: 0 0 4px;
}
.hero-module .hm-result .v {
  font-family: var(--display); font-size: 26px; font-weight: 500;
  color: var(--green-bright); margin: 0;
  font-feature-settings: "tnum"; white-space: nowrap;
}
.hero-module .hm-curve {
  margin-top: 14px;
  height: 56px;
  width: 100%;
  display: block;
}
.hero-module .hm-foot {
  font-size: 11px; color: rgba(232,241,236,0.45);
  margin: 12px 0 0; line-height: 1.5;
}

/* Capsule flottante "4 étapes" en bas du hero Story */
.floating-journey {
  margin-top: 40px;
  display: inline-flex; align-items: center; gap: 18px;
  padding: 12px 22px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  font-size: 13px;
  color: rgba(232,241,236,0.85);
}
.floating-journey .fj-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  color: rgba(232,241,236,0.5); font-weight: 700;
}
.floating-journey .fj-steps {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500;
}
.floating-journey .fj-steps .fj-arrow {
  color: rgba(232,241,236,0.35);
  font-family: var(--mono);
}
.floating-journey .fj-down {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(20,199,123,0.16);
  color: var(--green-bright);
  margin-left: 6px;
  animation: fjBounce 2.4s ease-in-out infinite;
}
@keyframes fjBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(3px); }
}
@media (max-width: 720px) {
  .floating-journey { flex-direction: column; gap: 8px; padding: 14px 18px; border-radius: 18px; }
  .floating-journey .fj-steps { flex-wrap: wrap; justify-content: center; gap: 6px; font-size: 12.5px; }
}

/* -- Hero LEARNING (Apprendre, articles, glossaire) ---------------
   Hero compact sur fond clair (déjà existant via .learn-hero —
   on aligne juste les valeurs pour cohérence).
   ----------------------------------------------------------------- */
.hero-learning {
  background: var(--bg-cream);
  border-bottom: 1px solid var(--line);
  padding: 56px 0 48px;
}
.hero-learning .eyebrow-row {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--green); font-weight: 700; margin-bottom: 14px;
}
.hero-learning h1 {
  font-family: var(--display);
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.06; letter-spacing: -0.022em; font-weight: 500;
  margin: 0 0 14px; max-width: 820px; color: var(--text);
}
.hero-learning h1 em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  color: var(--green);
}
.hero-learning .lede {
  font-size: clamp(15px, 1.15vw, 17px);
  color: var(--text-muted); max-width: 640px;
  line-height: 1.55; margin: 0;
}

/* -- Hero PRODUCT / DATA (Comparer, Studio, Marché, Intelligence,
       Dashboard, Fonds-detail) -------------------------------------
   Hero ultra-compact orienté action. Aligne le style "tool-hero" déjà
   existant — on le réplique sous le nom unifié pour pouvoir l'utiliser
   uniformément.
   ----------------------------------------------------------------- */
.hero-product {
  background: var(--bg-paper);
  border-bottom: 1px solid var(--line);
  padding: 28px 0 24px;
}
.hero-product .section-eyebrow { margin-bottom: 8px; }
.hero-product h1 {
  font-family: var(--display);
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.12; letter-spacing: -0.014em; font-weight: 500;
  margin: 0 0 8px; color: var(--text);
}
.hero-product h1 em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  color: var(--green);
}
.hero-product .lede {
  font-size: 14.5px; color: var(--text-muted);
  max-width: 760px; line-height: 1.55; margin: 0;
}
.hero-product .hero-product-actions {
  display: inline-flex; gap: 10px; flex-wrap: wrap; margin-top: 14px;
}

@media (max-width: 760px) {
  .hero-product { padding: 22px 0 18px; }
  .hero-product h1 { font-size: 22px; }
  .hero-product .lede { font-size: 13.5px; }
}


/* ============================================================
   Manager logo box — repère institutionnel sobre, source ASFIM.
   Utilisé dans pro-manager, pro-fund-editor, pro-fund-view, pro-institutional.
   ============================================================ */
.manager-logo-box {
  /* Default : un peu plus large que haut, accueille les ASFIM standards
     (ratio ~1.7) sans les écraser. */
  width: 96px; height: 54px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  display: inline-flex;
  align-items: center; justify-content: center;
  padding: 6px 8px;
  flex-shrink: 0;
  box-sizing: border-box;
  font-family: var(--display);
  font-weight: 600;
  color: var(--green-2, var(--green));
  letter-spacing: 0.01em;
  text-align: center;
  line-height: 1;
  overflow: hidden;
}
.manager-logo-box img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  display: block;
}

/* Variantes de taille */
.manager-logo-box.is-small {
  width: 64px; height: 34px;
  border-radius: 8px;
  padding: 4px 6px;
  font-size: 11px;
}
.manager-logo-box.is-large {
  width: 120px; height: 66px;
  border-radius: 14px;
  padding: 8px 10px;
  font-size: 16px;
}

/* Variante "wide" : wordmarks horizontaux (ALPHAVEST, ATLAS, RED MED,
   SAHAM, STERLING) — boîte plus large, padding réduit pour que le
   logo respire vraiment. */
.manager-logo-box.is-wide          { width: 132px; padding: 5px 8px; }
.manager-logo-box.is-wide.is-small { width: 88px;  padding: 4px 6px; }
.manager-logo-box.is-wide.is-large { width: 156px; padding: 6px 10px; }

/* Fallback monogramme : carré sobre vert ZADY (les initiales se lisent
   mieux dans un format proche du carré que dans un rectangle large) */
.manager-logo-box.is-monogram          { width: 54px; background: rgba(20,199,123,0.08); border-color: rgba(20,199,123,0.22); }
.manager-logo-box.is-monogram.is-small { width: 38px; }
.manager-logo-box.is-monogram.is-large { width: 66px; }
