/* Public site — dashboard language, one centered column */

:root {
  --navy: #0a2540;
  --purple: #635bff;
  --purple-hover: #5851ea;
  --purple-soft: #eeedfe;
  --bg: #f6f9fc;
  --surface: #ffffff;
  --border: #e3e8ee;
  --text: #1a2c44;
  --mute: #697386;
  --mute-2: #8792a2;
  --body: #425466;
  --ok: #09825d;
  --ok-bg: #e6f9f1;
  --font: -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Ubuntu, sans-serif;
  --r: 6px;
  --r-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(10, 37, 64, 0.04);
  --shadow-md: 0 8px 28px rgba(10, 37, 64, 0.08);
  --wrap: 1080px;
  --pad: clamp(1.25rem, 4vw, 2rem);
  /* Type scale — medium, site-wide */
  --fs-brand: clamp(2.5rem, 5.5vw, 3.25rem);
  --fs-title: clamp(1.5rem, 2.6vw, 1.85rem);
  --fs-lead: 1.05rem;
  --fs-body: 1rem;
  --fs-ui: 0.9rem;
  --fs-meta: 0.75rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.site {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: var(--fs-body);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: #eef2f7;
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.logo {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--navy);
}

/* Shared column — everything aligns here */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.band {
  width: 100%;
}

.band-soft {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.band-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

/* —— Nav (floating shell) —— */
.nav-band {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 12px 0 12px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  pointer-events: none;
}

.nav-band.is-scrolled {
  background: rgba(246, 249, 252, 0.92);
  border-bottom-color: var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(10, 37, 64, 0.04);
}

.nav-band .wrap {
  pointer-events: none;
}

.nav-shell {
  pointer-events: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 56px;
  padding: 8px 10px 8px 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow:
    0 1px 2px rgba(10, 37, 64, 0.04),
    0 10px 28px rgba(10, 37, 64, 0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-shell .logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}

.logo-badge {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.logo-mark {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.nav-shell nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: var(--fs-ui);
  font-weight: 500;
}

.nav-shell nav > a {
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  color: var(--mute);
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-shell nav > a:hover {
  color: var(--navy);
  background: #eef2f7;
}

.nav-mobile-cta {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.btn-ghost-nav {
  height: 34px;
  padding: 0 12px;
  background: transparent;
  color: var(--navy);
  border-color: transparent;
  font-weight: 600;
}

.btn-ghost-nav:hover {
  background: #eef2f7;
  transform: none;
}

.nav-actions .btn-fill {
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
}

.nav-burger {
  display: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-burger span {
  display: block;
  width: 15px;
  height: 1.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.nav-open .nav-burger span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
body.nav-open .nav-burger span:nth-child(2) {
  opacity: 0;
}
body.nav-open .nav-burger span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav-backdrop {
  display: none;
}

.link {
  font-size: var(--fs-ui);
  font-weight: 500;
  color: var(--mute);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--r);
  font-weight: 600;
  font-size: var(--fs-ui);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-fill {
  background: var(--purple);
  color: #fff;
}

.btn-fill:hover {
  background: var(--purple-hover);
}

.btn-secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: #f6f9fc;
}

/* —— Hero banner (texte au-dessus, capture en bas) —— */
.band-hero {
  padding: 0;
}

.hero-banner {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/media/hero-bg.jpg") center top / cover no-repeat;
  opacity: 0.78;
  pointer-events: none;
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(246, 249, 252, 0.92) 0%,
    rgba(246, 249, 252, 0.82) 42%,
    rgba(246, 249, 252, 0.55) 68%,
    rgba(246, 249, 252, 0.2) 100%
  );
}

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(1.75rem, 4vw, 2.75rem);
  padding: clamp(2.25rem, 5vw, 3.5rem) 0 0;
}

.hero-copy {
  width: 100%;
  max-width: none;
  animation: hero-rise 0.7s ease both;
}

.hero-brand {
  display: inline;
  margin: 0;
  font-size: var(--fs-brand);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.1;
  color: var(--navy);
}

.hero-eyebrow {
  display: inline;
  margin: 0 0 0 0.85rem;
  font-size: var(--fs-meta);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute-2);
  vertical-align: middle;
}

.hero h1 {
  display: block;
  margin: 0.85rem 0 0;
  font-size: var(--fs-title);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--navy);
  max-width: none;
}

.hero-lead {
  display: block;
  margin: 0.85rem 0 0;
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--body);
  max-width: none;
  font-weight: 400;
}

/* Capture produit : largeur naturelle (≤ source/2 en CSS) pour rester nette en Retina */
.hero-shot {
  margin: 0;
  width: 100%;
  max-width: 920px;
  align-self: center;
  line-height: 0;
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 -1px 0 rgba(10, 37, 64, 0.03),
    0 18px 40px rgba(10, 37, 64, 0.1);
  animation: hero-rise 0.85s 0.08s ease both;
}

.hero-shot img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.preview-body {
  display: grid;
  grid-template-columns: 148px 1fr;
  min-height: 280px;
  background: var(--bg);
}

.preview-side {
  background: var(--bg);
  border-right: 1px solid var(--border);
  padding: 12px 10px;
}

.preview-account {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  margin-bottom: 10px;
}

.preview-avatar {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.preview-account strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.preview-account small {
  font-size: 11px;
  color: #b76e00;
  font-weight: 600;
}

.preview-nav {
  display: grid;
  gap: 2px;
}

.preview-nav span {
  height: 32px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text);
}

.preview-nav span.is-active {
  background: #e8e7ff;
  box-shadow: inset 3px 0 0 var(--purple);
  border-radius: 0 6px 6px 0;
  font-weight: 500;
}

.preview-main {
  padding: 18px 18px 16px;
  background: var(--bg);
}

.preview-eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mute-2);
}

.preview-main h2 {
  margin: 4px 0 14px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.preview-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.preview-metrics span {
  display: block;
  font-size: 12px;
  color: var(--mute);
  font-weight: 500;
}

.preview-metrics strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.preview-chart {
  margin-top: 12px;
  padding: 12px 14px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.preview-chart svg {
  display: block;
  width: 100%;
  height: 72px;
}

.preview-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: var(--fs-meta);
  font-weight: 600;
  background: #eef2f7;
  color: var(--body);
}

.pill.held {
  background: var(--purple-soft);
  color: var(--purple);
}

.pill.ok {
  background: var(--ok-bg);
  color: var(--ok);
}

.pill.mute {
  color: var(--mute);
}

/* —— Sections —— */
.section {
  padding-top: clamp(3.25rem, 7vw, 4.75rem);
  padding-bottom: clamp(3.25rem, 7vw, 4.75rem);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 2rem;
  text-align: center;
}

.section-eyebrow {
  margin: 0 0 0.5rem;
  font-size: var(--fs-meta);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute-2);
}

.section-head h2 {
  margin: 0;
  font-size: var(--fs-title);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.18;
  color: var(--navy);
}

.section-head p {
  margin: 0.9rem auto 0;
  color: var(--body);
  line-height: 1.55;
  font-size: var(--fs-lead);
  max-width: 42ch;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 18px 18px;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.band-soft .panel {
  background: var(--bg);
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

#product .step-card {
  background: var(--surface);
}

#product .step-card-focus {
  background: var(--surface);
  border-color: #c7c3ff;
}

/* Fonctionnement — flow */
.flow-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0 auto 1.75rem;
  padding: 12px 16px;
  max-width: 560px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.flow-bar-line {
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #c7cdd6, var(--purple));
  flex-shrink: 0;
}

.flow-bar-or {
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--mute-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pill.refund {
  background: #fff4e5;
  color: #b76e00;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.step-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 16px 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.step-card-focus {
  background: var(--surface);
  border-color: #c7c3ff;
  box-shadow: 0 0 0 1px rgba(99, 91, 255, 0.12), var(--shadow-sm);
}

.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.step-n {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: var(--fs-ui);
  font-weight: 700;
  color: #fff;
  background: var(--navy);
  flex-shrink: 0;
}

.step-card-focus .step-n {
  background: var(--purple);
}

.step-card strong {
  display: block;
  font-size: var(--fs-lead);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.step-card > p {
  margin: 0 0 12px;
  color: var(--body);
  font-size: var(--fs-lead);
  line-height: 1.55;
  flex: 1;
}

.step-points {
  margin: 0;
  padding: 12px 0 0;
  list-style: none;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 8px;
}

.step-points li {
  position: relative;
  padding-left: 14px;
  font-size: var(--fs-ui);
  color: var(--body);
  line-height: 1.5;
}

.step-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--purple);
}

.step-points code {
  font-size: 0.92em;
}

.how-note {
  margin: 1.5rem auto 0;
  max-width: 42ch;
  text-align: center;
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--body);
}

.how-note strong {
  color: var(--navy);
  font-weight: 600;
}

.band-cta {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1.35rem 0;
}

.cta-copy {
  margin: 0;
  font-size: var(--fs-lead);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.4;
  max-width: 36rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.cta-actions .btn {
  height: 40px;
  padding: 0 16px;
  font-size: var(--fs-ui);
}

.dev-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
}

.dev-list {
  margin: 0 0 1.35rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.dev-list li {
  position: relative;
  padding-left: 1.15rem;
  font-size: var(--fs-lead);
  color: var(--body);
  line-height: 1.55;
}

.dev-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--purple);
}

.dev-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.dev-actions .btn {
  height: 40px;
  padding: 0 16px;
  font-size: var(--fs-ui);
}

.code {
  margin: 0;
  padding: 1.25rem 1.35rem;
  border-radius: var(--r-lg);
  background: var(--navy);
  color: #d7e6f5;
  font-size: var(--fs-ui);
  line-height: 1.55;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-md);
}

.code code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* —— Footer —— */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 2.5rem;
  padding-top: 2.5rem;
  padding-bottom: 2.75rem;
}

.footer-brand {
  max-width: 280px;
}

.footer-brand .logo {
  font-size: 1.35rem;
}

.footer p {
  margin: 0.5rem 0 0;
  color: var(--body);
  font-size: var(--fs-ui);
  line-height: 1.55;
}

.footer-cols {
  display: flex;
  gap: clamp(1.75rem, 4vw, 3rem);
  flex-wrap: wrap;
}

.footer-cols h4 {
  margin: 0 0 0.65rem;
  font-size: var(--fs-meta);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mute-2);
}

.footer-cols a {
  display: block;
  margin: 0 0 0.4rem;
  font-size: var(--fs-ui);
  font-weight: 500;
  color: var(--body);
}

.footer-cols a:hover {
  color: var(--purple);
}

@media (max-width: 960px) {
  .hero-banner::before {
    background-position: center;
    opacity: 0.7;
  }

  .hero {
    gap: 1.5rem;
    padding-top: 1.75rem;
  }

  .hero-eyebrow {
    display: block;
    margin: 0.65rem 0 0;
  }

  .hero-shot {
    max-width: none;
    border-radius: 12px 12px 0 0;
  }

  .feature-row,
  .steps,
  .dev-grid {
    grid-template-columns: 1fr;
  }

  .flow-bar {
    border-radius: 12px;
    max-width: none;
  }

  .flow-bar-line {
    display: none;
  }

  .how-note {
    text-align: left;
    max-width: none;
  }

  .footer {
    flex-direction: column;
  }

  .footer-brand {
    max-width: none;
  }

  .footer-cols {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 860px) {
  .nav-band {
    padding-top: 10px;
  }

  .nav-shell {
    grid-template-columns: 1fr auto;
    padding: 8px 10px;
  }

  .nav-burger {
    display: inline-flex;
  }

  .nav-actions .btn-ghost-nav,
  .nav-actions .btn-fill {
    display: none;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 35;
    background: rgba(10, 37, 64, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }
  .nav-backdrop[hidden] {
    display: none !important;
  }
  body.nav-open .nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
  body.nav-open {
    overflow: hidden;
  }

  .nav-shell nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(300px, 86vw);
    z-index: 45;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.2rem;
    padding: 4.5rem 1.1rem 1.25rem;
    background: #fff;
    border-left: 1px solid var(--border);
    box-shadow: -12px 0 40px rgba(10, 37, 64, 0.16);
    transform: translateX(105%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.22s ease, visibility 0.22s;
    color: var(--text);
  }
  body.nav-open .nav-shell nav {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }
  .nav-shell nav > a {
    padding: 0.8rem 0.65rem;
    border-radius: 8px;
    font-size: var(--fs-lead);
  }
  .nav-shell nav > a:hover {
    background: #eef2f7;
  }
  .nav-mobile-cta {
    display: grid;
    gap: 0.65rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
  }
  .nav-mobile-cta .btn {
    width: 100%;
    height: 40px;
  }
}

@media (max-width: 520px) {
  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .cta-actions {
    flex-direction: column;
  }
  .cta-actions .btn,
  .dev-actions .btn {
    width: 100%;
  }
  .footer-cols {
    grid-template-columns: 1fr;
  }
  .preview-metrics {
    grid-template-columns: 1fr;
  }
  .section-head {
    text-align: left;
  }
  .section-head p {
    margin-left: 0;
  }
}
