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

:root {
  --font-sans: "Inter", "Manrope", system-ui, sans-serif;
  --font-display: "Sora", "Inter", system-ui, sans-serif;

  /* Palette sombre (hero / footer) */
  --night: #050814;
  --night-mid: #0c1230;
  --night-soft: #131837;
  --night-border: rgba(37, 99, 235, 0.18);

  /* Marque bleu premium */
  --violet: #2563eb;
  --violet-strong: #1d4ed8;
  --violet-light: #93c5fd;
  --indigo: #1e40af;
  --indigo-light: #60a5fa;

  /* Gradients */
  --grad-brand: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  --grad-hero: radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.32) 0%, transparent 45%),
               radial-gradient(circle at 85% 10%, rgba(30, 64, 175, 0.25) 0%, transparent 40%),
               radial-gradient(circle at 50% 80%, rgba(29, 78, 216, 0.18) 0%, transparent 50%),
               linear-gradient(135deg, #050814 0%, #0c1230 55%, #120d2e 100%);
  --grad-body: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);

  /* Surfaces claires */
  --surface: #ffffff;
  --surface-subtle: #f8fbff;
  --border: rgba(30, 64, 175, 0.1);
  --border-hover: rgba(37, 99, 235, 0.28);

  /* Texte */
  --ink: #0a0a1a;
  --muted: #4a4a6a;
  --soft: #7878a0;

  /* Ombres */
  --shadow-sm: 0 4px 16px rgba(10, 10, 26, 0.07);
  --shadow-md: 0 12px 36px rgba(10, 10, 26, 0.11);
  --shadow-violet: 0 8px 28px rgba(37, 99, 235, 0.32);

  /* Rayons */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.public-page {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--grad-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.public-page a {
  color: inherit;
  text-decoration: none;
}

.public-shell {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

/* ─── HEADER ─────────────────────────────────────────── */

.public-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(5, 8, 20, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(37, 99, 235, 0.14);
}

.public-header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem 0;
  justify-content: space-between;
}

.brand {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  flex-shrink: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
  background: transparent;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: rgba(147, 197, 253, 0.7);
  margin-top: 1px;
  display: block;
}

.brand-accent {
  color: #60A5FA;
  font-style: normal;
}

.public-header.app-header .brand-accent {
  color: #2563EB;
}

.public-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  color: rgba(191, 219, 254, 0.72);
  transition: all 0.18s ease;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(37, 99, 235, 0.18);
}

.nav-link.is-active {
  color: #ffffff;
  background: rgba(37, 99, 235, 0.22);
  font-weight: 600;
}

/* Items audience — niveau 1, plus visibles */
.nav-link.nav-audience {
  font-weight: 600;
  color: rgba(219, 234, 254, 0.86);
}

.nav-link.nav-audience.is-active {
  background: var(--grad-brand);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
}

.nav-link.nav-audience:not(.is-active):hover {
  color: #ffffff;
  background: rgba(37, 99, 235, 0.18);
}

/* Séparateur vertical entre segments audience et nav courante */
.nav-divider {
  display: block;
  width: 1px;
  height: 18px;
  background: rgba(37, 99, 235, 0.25);
  margin: 0 0.4rem;
  flex-shrink: 0;
}

.public-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.lang-switcher {
  position: relative;
  display: inline-flex;
  width: 36px;
  height: 34px;
  flex-shrink: 0;
}

.lang-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

.lang-current::-webkit-details-marker {
  display: none;
}

.lang-flag {
  font-size: 1.05rem;
  line-height: 1;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  z-index: 50;
  width: 36px;
  min-width: 36px;
  box-sizing: border-box;
  padding: 0.35rem;
  border: 1px solid rgba(30, 64, 175, 0.12);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16);
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 32px;
  padding: 0;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.lang-option:hover,
.lang-option.lang-active {
  color: var(--ink);
  background: rgba(37, 99, 235, 0.08);
}

.switch-pill {
  border-radius: var(--radius-pill);
  border: 1px solid rgba(37, 99, 235, 0.38);
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--violet-light);
  background: rgba(37, 99, 235, 0.1);
  transition: all 0.18s ease;
  white-space: nowrap;
}

.switch-pill:hover {
  background: rgba(37, 99, 235, 0.22);
  border-color: rgba(37, 99, 235, 0.6);
  color: #ffffff;
}

/* ─── BOUTONS ─────────────────────────────────────────── */

.btn {
  border-radius: var(--radius-pill);
  padding: 0.55rem 1.2rem;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.btn-primary {
  background: var(--violet);
  color: #fff !important;
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--violet-strong);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.28);
  color: #fff !important;
}

.btn-ghost {
  border-color: rgba(37, 99, 235, 0.32);
  color: var(--violet-light);
  background: rgba(37, 99, 235, 0.07);
}

.btn-ghost:hover {
  border-color: rgba(37, 99, 235, 0.58);
  background: rgba(37, 99, 235, 0.18);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Bouton ghost sur fond blanc */
.btn-ghost-light {
  border-color: rgba(37, 99, 235, 0.28);
  color: var(--violet);
  background: transparent;
}

.btn-ghost-light:hover {
  background: rgba(37, 99, 235, 0.06);
  border-color: var(--violet);
  transform: translateY(-1px);
}

.btn-danger {
  background: transparent;
  color: #dc2626;
  border-color: #dc2626;
}

.btn-danger:hover {
  background: rgba(220, 38, 38, 0.06);
}

.btn-lg {
  padding: 0.8rem 1.9rem;
  font-size: 1rem;
}

/* ─── HERO ────────────────────────────────────────────── */

.public-hero {
  background: var(--grad-hero);
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(4rem, 9vw, 7rem);
  position: relative;
  overflow: hidden;
}

.public-hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -8%;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.14) 0%, transparent 70%);
  pointer-events: none;
}

.public-hero::after {
  content: "";
  position: absolute;
  bottom: -15%;
  left: -5%;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 64, 175, 0.11) 0%, transparent 70%);
  pointer-events: none;
}

/* ─── TABS SWITCH ─────────────────────────────────────── */

.hero-tabs {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  padding: 4px;
  margin-bottom: 2.75rem;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(8px);
}

.hero-tab {
  padding: 0.6rem 1.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(210, 205, 255, 0.6);
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
}

.hero-tab.is-active {
  background: var(--grad-brand);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.42);
}

.hero-tab:not(.is-active):hover {
  color: rgba(210, 205, 255, 0.9);
  background: rgba(255, 255, 255, 0.05);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--violet-light);
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--grad-brand);
  border-radius: 2px;
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
  line-height: 1.07;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 1.1rem;
}

.hero-title em {
  font-style: normal;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text {
  color: rgba(220, 216, 252, 0.95);
  font-size: 1.05rem;
  line-height: 1.68;
  max-width: 52ch;
  margin-bottom: 1.75rem;
}

.hero-form {
  display: grid;
  gap: 0.75rem;
  max-width: 420px;
}

.hero-form input {
  width: 100%;
  padding: 0.9rem 1.15rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(37, 99, 235, 0.24);
  background: rgba(255, 255, 255, 0.055);
  color: #ffffff;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hero-form input::placeholder {
  color: rgba(180, 170, 230, 0.5);
}

.hero-form input:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.hero-form-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-form-link {
  font-size: 0.85rem;
  color: rgba(232, 241, 255, 0.98);
  margin-top: 0.3rem;
  display: inline-block;
  transition: color 0.18s;
}

.hero-form-link:hover {
  color: #ffffff;
}

.hero-proof {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.3rem;
}

.hero-proof-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.24);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--violet-light);
}

.hero-proof-item::before {
  content: "✓";
  font-size: 0.72rem;
}

/* Carte hero droite */
.hero-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-lg);
  padding: 2rem 2rem 1.75rem;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.hero-card .section-title {
  color: #ffffff;
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.hero-card .section-lead {
  color: rgba(200, 195, 240, 0.78);
  font-size: 0.95rem;
}

.hero-card .public-list {
  color: rgba(200, 195, 240, 0.78);
  margin-top: 1.25rem;
}

.hero-card .public-list li::before {
  color: var(--violet-light);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.metric {
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  text-align: center;
}

.metric strong {
  display: block;
  font-size: 1.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.025em;
}

.metric span {
  font-size: 0.79rem;
  color: rgba(180, 170, 230, 0.65);
  margin-top: 0.25rem;
  display: block;
}

/* ─── HERO HEADLINE (Option A) ──────────────────────── */

.hero-headline {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3rem;
}

.hero-headline .hero-kicker {
  justify-content: center;
}

.hero-headline .hero-kicker::before {
  display: none;
}

.hero-headline .hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
}

.hero-headline .hero-text {
  margin: 0 auto;
  text-align: center;
  max-width: 56ch;
}

/* ─── ENTRY CARDS (deux entrées côte à côte) ─────────── */

.entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.entry-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.entry-card:hover {
  border-color: rgba(37, 99, 235, 0.42);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.entry-card-header {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.entry-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  width: fit-content;
}

.entry-badge.pro {
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(37, 99, 235, 0.35);
  color: var(--violet-light);
}

.entry-badge.investor {
  background: rgba(30, 64, 175, 0.18);
  border: 1px solid rgba(30, 64, 175, 0.35);
  color: var(--indigo-light);
}

.entry-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.entry-text {
  color: rgba(200, 195, 240, 0.75);
  font-size: 0.92rem;
  line-height: 1.6;
}

.entry-form {
  display: grid;
  gap: 0.65rem;
}

.entry-form input {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(37, 99, 235, 0.22);
  background: rgba(255, 255, 255, 0.055);
  color: #ffffff;
  font-size: 0.92rem;
  font-family: var(--font-sans);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.entry-form input::placeholder {
  color: rgba(180, 170, 230, 0.48);
}

.entry-form input:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.investor-btn {
  background: var(--violet) !important;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.22) !important;
}

.investor-btn:hover {
  background: var(--violet-strong) !important;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.3) !important;
}

.entry-proof {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.entry-proof-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(220, 215, 255, 0.82);
}

.entry-proof-item::before {
  content: "✓";
  font-size: 0.7rem;
  color: var(--violet-light);
}

.entry-link {
  font-size: 0.84rem;
  color: rgba(180, 170, 230, 0.65);
  transition: color 0.18s;
  margin-top: auto;
}

.entry-link:hover {
  color: var(--violet-light);
}

/* ─── TRUST BAND ─────────────────────────────────────── */

.trust-band {
  margin-top: -2rem;
  padding: 0 0 0.5rem;
  position: relative;
  z-index: 2;
}

.trust-band .public-shell {
  background: #ffffff;
  border: 1px solid rgba(30, 64, 175, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.4rem 2rem;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: center;
}

.trust-item {
  padding-right: 1.25rem;
  border-right: 1px solid rgba(30, 64, 175, 0.1);
}

.trust-item:last-child {
  border-right: none;
  padding-right: 0;
}

.trust-item strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--violet);
  letter-spacing: -0.02em;
}

.trust-item span {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.82rem;
}

/* ─── SECTIONS ───────────────────────────────────────── */

.section {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
}

.section-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--violet);
  background: rgba(37, 99, 235, 0.07);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: var(--radius-pill);
  padding: 0.22rem 0.65rem;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 0.8rem;
  line-height: 1.15;
}

.section-lead {
  color: var(--muted);
  font-size: 1rem;
  max-width: 640px;
  line-height: 1.68;
}

/* ─── CARDS ──────────────────────────────────────────── */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.card {
  background: var(--surface);
  padding: 1.6rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 99, 235, 0.22);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: rgba(37, 99, 235, 0.08);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  font-size: 1.3rem;
}

.card-eyebrow {
  display: inline-block;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(30, 64, 175, 0.18);
  background: rgba(30, 64, 175, 0.06);
  color: var(--violet);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.18rem 0.52rem;
  margin-bottom: 0.65rem;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.62;
}

/* ─── MARKETPLACE (deux côtés) ───────────────────────── */

.marketplace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.marketplace-card {
  border-radius: var(--radius-lg);
  padding: 2rem 2rem 1.75rem;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.marketplace-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.marketplace-card.pro {
  border-top: 3px solid var(--violet);
}

.marketplace-card.investor {
  border-top: 3px solid var(--indigo);
}

.marketplace-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
  display: block;
}

.marketplace-card.pro .marketplace-label { color: var(--violet); }
.marketplace-card.investor .marketplace-label { color: var(--indigo); }

.marketplace-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.8rem;
  letter-spacing: -0.02em;
}

.marketplace-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.68;
  margin-bottom: 1.4rem;
}

/* ─── STEP GRID ──────────────────────────────────────── */

.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.step {
  padding: 1.6rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(37, 99, 235, 0.2);
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.38);
}

/* Compatibilité ancienne syntaxe <span> dans step */
.step > span:first-child {
  display: inline-flex;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.38);
}

.step h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.step p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.62;
}

/* ─── HIGHLIGHT ──────────────────────────────────────── */

.highlight {
  background: linear-gradient(145deg, #ffffff, var(--surface-subtle));
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  border: 1px solid var(--border);
  border-top: 3px solid var(--violet);
  box-shadow: var(--shadow-sm);
}

/* ─── CTA SECTION ────────────────────────────────────── */

.cta-section {
  background: var(--grad-hero);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 5vw, 3.75rem) clamp(1.5rem, 4vw, 3rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section .section-title {
  color: #ffffff;
  position: relative;
  z-index: 1;
}

.cta-section .section-lead {
  color: rgba(200, 195, 240, 0.82);
  position: relative;
  z-index: 1;
  margin: 0 auto 1.75rem;
  max-width: 520px;
}

.cta-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ─── LEGAL NOTE ─────────────────────────────────────── */

.legal-note {
  font-size: 0.83rem;
  color: var(--soft);
  background: rgba(30, 64, 175, 0.04);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  border: 1px solid rgba(30, 64, 175, 0.1);
  line-height: 1.62;
}

/* ─── LISTES ─────────────────────────────────────────── */

.public-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.public-list li {
  display: block;
  padding-left: 1.4rem;
  position: relative;
}

.public-list li::before {
  content: "→";
  color: var(--violet);
  position: absolute;
  left: 0;
  top: 0.05em;
}

/* ─── FOOTER ─────────────────────────────────────────── */

.public-footer {
  background: linear-gradient(160deg, #050814 0%, #0c1230 100%);
  padding: 3.5rem 0 2rem;
  border-top: 1px solid rgba(37, 99, 235, 0.14);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 2rem 1.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.footer-brand-tagline {
  font-size: 0.85rem;
  color: rgba(230, 239, 255, 0.92);
  margin-top: 0.3rem;
  line-height: 1.45;
}

.footer-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(198, 213, 255, 0.96);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  font-size: 0.875rem;
}

.footer-links a {
  color: rgba(244, 249, 255, 1);
  transition: color 0.18s;
}

.footer-links a:visited {
  color: rgba(244, 249, 255, 1);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(37, 99, 235, 0.2);
  margin-bottom: 1.5rem;
}

.footer-note {
  font-size: 0.78rem;
  color: rgba(232, 241, 255, 0.94);
  text-align: center;
}

/* Harmonisation contraste footer public ~= footer privé */
.public-footer .footer-links a {
  color: rgba(244, 249, 255, 1);
}

.public-footer .footer-links a:visited {
  color: rgba(244, 249, 255, 1);
}

.public-footer .footer-title {
  color: rgba(198, 213, 255, 0.96);
}

.public-footer .footer-note {
  color: rgba(232, 241, 255, 0.94);
}

/* ─── KEYFRAMES ──────────────────────────────────────── */

@keyframes orbDrift {
  0%   { transform: translate(0,   0)   scale(1);    }
  33%  { transform: translate(40px, -30px) scale(1.06); }
  66%  { transform: translate(-25px, 20px) scale(0.97); }
  100% { transform: translate(0,   0)   scale(1);    }
}

@keyframes orbDriftAlt {
  0%   { transform: translate(0, 0)    scale(1);    }
  40%  { transform: translate(-35px, 25px) scale(1.04); }
  75%  { transform: translate(20px, -18px) scale(0.96); }
  100% { transform: translate(0, 0)    scale(1);    }
}

@keyframes gradientText {
  0%, 100% { background-position: 0%   50%; }
  50%       { background-position: 100% 50%; }
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0px);  }
  50%       { transform: translateY(-10px); }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: var(--shadow-violet); }
  50%       { box-shadow: 0 12px 42px rgba(37, 99, 235, 0.58); }
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(36px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

@keyframes scanLine {
  0%   { background-position: 0 0;    }
  100% { background-position: 0 100%; }
}

/* ─── HERO ANIMATIONS ────────────────────────────────── */

/* Orbs animés */
.public-hero::before {
  animation: orbDrift 12s ease-in-out infinite;
}

.public-hero::after {
  animation: orbDriftAlt 15s ease-in-out infinite;
}

/* Troisième orb centré */
.public-hero .hero-orb {
  position: absolute;
  top: 30%;
  left: 40%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 78, 216, 0.1) 0%, transparent 65%);
  pointer-events: none;
  animation: orbDrift 18s ease-in-out infinite reverse;
}

/* Grille de points subtile sur le hero */
.public-hero .hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(37, 99, 235, 0.18) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 0%, transparent 100%);
}

/* Entrées séquencées du hero (au-dessus du fold — pas scroll-triggered) */
.public-hero .hero-kicker {
  animation: heroIn 0.65s cubic-bezier(.22,1,.36,1) 0.1s both;
}

.public-hero .hero-title {
  animation: heroIn 0.7s cubic-bezier(.22,1,.36,1) 0.22s both;
}

.public-hero .hero-text {
  animation: heroIn 0.7s cubic-bezier(.22,1,.36,1) 0.36s both;
}

.public-hero .hero-form {
  animation: heroIn 0.7s cubic-bezier(.22,1,.36,1) 0.5s both;
}

.public-hero .hero-proof {
  animation: heroIn 0.65s cubic-bezier(.22,1,.36,1) 0.64s both;
}

/* Gradient animé sur em dans le titre */
.hero-title em {
  background: linear-gradient(270deg, #93c5fd, #1e40af, #2563eb, #bfdbfe);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientText 4s ease infinite;
}

/* Carte hero flottante */
.hero-card {
  animation: cardIn 0.8s cubic-bezier(.22,1,.36,1) 0.4s both,
             cardFloat 7s ease-in-out 1.5s infinite;
}

/* Glow pulsant sur les boutons primaires */
.btn-primary {
  animation: glowPulse 3.5s ease-in-out infinite;
}

.btn-primary:hover {
  animation: none;
}

/* ─── SCROLL REVEAL ──────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(.22,1,.36,1),
              transform 0.65s cubic-bezier(.22,1,.36,1);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── APP HEADER (connecté) ──────────────────────────── */

.public-header.app-header {
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(30, 64, 175, 0.1);
  backdrop-filter: blur(12px);
}

.public-header.app-header .brand-title { color: var(--ink); }
.public-header.app-header .brand-subtitle { color: var(--soft); }

.public-header.app-header .nav-link {
  color: var(--muted);
}

.public-header.app-header .nav-link:hover {
  color: var(--ink);
  background: rgba(30, 64, 175, 0.07);
}

.public-header.app-header .nav-link.is-active {
  color: var(--violet);
  background: rgba(37, 99, 235, 0.08);
}

.public-header.app-header .public-header-inner {
  flex-wrap: nowrap;
}

.public-nav.app-nav {
  gap: 0.4rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.public-header.app-header .public-nav.app-nav .nav-link {
  font-size: 0.85rem;
  padding: 0.3rem 0.7rem;
  color: var(--muted);
}

.app-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: nowrap;
}

.app-user {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .public-header.app-header .brand-subtitle { display: none; }
  .public-header.app-header .public-nav.app-nav .nav-link {
    font-size: 0.78rem;
    padding: 0.25rem 0.55rem;
  }
}

/* ─── RESPONSIVE ─────────────────────────────────────── */

@media (max-width: 920px) {
  .public-header-inner {
    flex-wrap: wrap;
    gap: 0.65rem;
  }

  .public-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.4rem;
    scrollbar-width: none;
  }
  .public-nav::-webkit-scrollbar { display: none; }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-item {
    border-right: none;
    border-bottom: 1px solid rgba(30, 64, 175, 0.08);
    padding-right: 0;
    padding-bottom: 0.75rem;
  }

  .trust-item:nth-last-child(-n+2) {
    border-bottom: none;
    padding-bottom: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .hero-tabs {
    width: 100%;
  }

  .hero-tab {
    flex: 1;
    text-align: center;
    padding: 0.6rem 1rem;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .trust-item {
    border-bottom: 1px solid rgba(30, 64, 175, 0.08);
    padding-bottom: 0.65rem;
  }

  .trust-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: span 1;
  }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* Lisibilité des actions secondaires sur fonds sombres (ex: connexion) */
.public-hero .hero-form-actions .btn-ghost,
.hero-card .btn-ghost {
  color: #dbeafe;
  border-color: rgba(147, 197, 253, 0.45);
  background: rgba(147, 197, 253, 0.08);
}

.public-hero .hero-form-actions .btn-ghost:hover,
.hero-card .btn-ghost:hover {
  color: #ffffff;
  border-color: rgba(191, 219, 254, 0.72);
  background: rgba(147, 197, 253, 0.2);
}

/* CTA principal sur fond sombre (index pro) */
.home-pro .cta-section .btn-ghost {
  color: #f8fbff;
  border-color: rgba(219, 234, 254, 0.78);
  background: rgba(147, 197, 253, 0.16);
}

.home-pro .cta-section .btn-ghost:hover {
  color: #ffffff;
  border-color: rgba(219, 234, 254, 0.95);
  background: rgba(147, 197, 253, 0.28);
}

.home-pro .hero-form-link {
  color: #f2f7ff;
}

.home-pro .hero-form-link:hover {
  color: #ffffff;
}

/* ── Bouton petit ─────────────────────────────────────────────────────────── */
.btn-sm {
  padding: .35rem .85rem;
  font-size: .8125rem;
}

/* ── Teasers modules complémentaires ──────────────────────────────────────── */
.module-teaser {
  position: relative;
  background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 1rem 3rem 1rem 1.25rem;
  margin: 0 0 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: .875rem;
}

.module-teaser-close {
  position: absolute;
  top: .5rem;
  right: .625rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  font-size: .85rem;
  line-height: 1;
  padding: .25rem .375rem;
  border-radius: 4px;
  transition: background .15s, color .15s;
}

.module-teaser-close:hover {
  background: rgba(0,0,0,.06);
  color: #374151;
}

.module-teaser-icon {
  font-size: 1.375rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: .1rem;
}

.module-teaser-body {
  flex: 1;
  min-width: 0;
}

.module-teaser-title {
  font-weight: 600;
  font-size: .875rem;
  color: #1e40af;
  margin: 0 0 .25rem;
}

.module-teaser-desc {
  font-size: .8125rem;
  color: #4b5563;
  margin: 0 0 .75rem;
  line-height: 1.5;
}

.module-teaser-footer {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

.module-teaser-price {
  font-size: .75rem;
  color: #6b7280;
}
