/* =============================================================================
   SAGA — Temporary landing page
   Typography and colors come from the Figma spec (Lexend / Inter / IBM Plex Mono).
   ========================================================================== */

:root {
  --primary: #3458a2;
  --primary-deep: #2c529f;
  --primary-dark: #27427c;
  --secondary: #549afc;
  --ink: #1e1e1e;
  --ink-soft: #5c6252;
  --ink-muted: #6b7280;
  --surface: #ffffff;
  --page-bg: #f2f2f3;

  --font-display: "Lexend", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-button: "Urbanist", "Inter", system-ui, sans-serif;

  --content-max: 1300px;
}

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

html { color-scheme: light; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* Shared: monospace uppercase label ------------------------------------- */
.eyebrow,
.hero__facts,
.cta__note {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dot { margin: 0 0.35em; }

/* Page wrapper ------------------------------------------------------------- */
.page {
  width: 100%;
  background: var(--surface);
}

/* =============================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 66px 32px 0;
  overflow: hidden;
  /* Figma: exported noise/glow layer (assets/hero-bg.png) over the linear #F1F5F7 -> #DFE0FF */
  background:
    url("assets/hero-bg.png") center bottom / 100% auto no-repeat,
    linear-gradient(180deg, #f1f5f7 0%, #dfe0ff 100%);
}

.hero__brand { margin-bottom: 44px; }
.hero__logo { width: clamp(280px, 27.5vw, 560px); height: auto; }

.eyebrow {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--primary);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  backdrop-filter: blur(6px);
}

.hero__title {
  margin: 30px 0 26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(38px, 4.9vw, 64px);
  line-height: 71px;
  letter-spacing: -2px;
  color: var(--ink);
}

.hero__lead {
  max-width: 880px;
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--ink-soft);
}

.hero__facts {
  margin: 64px 0 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  color: var(--primary);
}

/* Hero scene: dashboard screenshot + floating cards, cropped by the CTA below */
.hero__scene {
  position: relative;
  width: min(1110px, 57.7vw);
  margin-top: 44px;
  /* Height is fixed so the dashboard bleeds under the dark section */
  aspect-ratio: 980 / 575;
}

.scene__dashboard {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 30px 60px rgba(28, 43, 90, 0.18);
}

.scene__card {
  position: absolute;
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(28, 43, 90, 0.12));
}

/* Offsets measured on the Figma reference, relative to the dashboard box */
.scene__card--sms { left: -23.5%; top: 0; width: 21%; }
.scene__card--campaign { left: -7.4%; top: 60.7%; width: 17%; }
.scene__card--rdv { right: -16.3%; top: 0; width: 13.9%; }
.scene__card--scenario { right: -9.8%; top: 66.8%; width: 17.3%; }

.scene__card--open-rate {
  right: -8.8%;
  top: 47.9%;
  width: 12.5%;
  filter: none; /* the export already carries its own shadow */
  animation: float 3.2s ease-in-out infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .scene__card--open-rate { animation: none; }
}

/* =============================================================================
   CTA (dark)
   ========================================================================== */
.cta {
  position: relative;
  padding: 60px 32px 84px;
  text-align: center;
  color: #fff;
  /* Figma: flat #0F1730 base + exported noise mask layer (assets/cta-bg.png) */
  background: url("assets/cta-bg.png") center top / 100% 100% no-repeat #0f1730;
}

.cta__title {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: #f5f7ec;
}

.cta__lead {
  max-width: 640px;
  margin: 0 auto;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: #fff;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  margin-top: 40px;
}

.cta__note {
  margin: 40px 0 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  color: #fff;
}

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 50px;
  padding: 0 28px;
  border-radius: 999px;
  font-family: var(--font-button);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  text-decoration: none;
  /* Figma interaction: smart animate, 300ms ease-out */
  transition: transform 300ms ease-out, box-shadow 300ms ease-out, filter 300ms ease-out, background-color 300ms ease-out;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--secondary); outline-offset: 3px; }

.btn--primary {
  position: relative;
  isolation: isolate;
  width: 266px;
  justify-content: space-between;
  padding: 0 7px 0 26px;
  color: #fff;
  /* Figma: linear #2D4F95 -> #4E93F6 */
  background: linear-gradient(90deg, #2d4f95 0%, #4e93f6 100%);
}

/* Figma "progressive blur" (0 -> 3.7px from 25% to ~83% of the width):
   a blurred copy of the button sits behind it, masked so only the right part shows. */
.btn--primary::after {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(90deg, #2d4f95 0%, #4e93f6 100%);
  filter: blur(3.7px);
  -webkit-mask-image: linear-gradient(90deg, transparent 25%, #000 83%);
  mask-image: linear-gradient(90deg, transparent 25%, #000 83%);
}

.btn--primary:hover { filter: brightness(1.06); }

.btn__icon {
  display: grid;
  place-items: center;
  /* Figma: 51x36 white pill, radius 34, arrow 1px #2E5198 */
  width: 51px;
  height: 36px;
  border-radius: 34px;
  background: #fff;
  color: #2e5198;
}

.btn__icon svg { width: 14px; height: 12px; }

.btn--ghost {
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  background: transparent;
}

.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* =============================================================================
   FOOTER
   ========================================================================== */
.footer {
  padding: 30px 32px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink);
}

.footer p { max-width: var(--content-max); margin: 0 auto; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* =============================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .hero__title { line-height: 1.1; letter-spacing: -1px; }
  .hero { padding-top: 40px; }
  .hero__facts { display: flex; flex-direction: column; gap: 6px; margin-top: 32px; }
  .hero__facts .dot { display: none; }
  .hero__scene { width: 100%; aspect-ratio: 3096 / 1908; }
  .scene__card { display: none; }
  .cta { padding: 48px 20px 60px; }
  .cta__actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .btn--primary { width: 100%; }
}

@media (max-width: 480px) {
  .hero__title br { display: none; }
}

/* =============================================================================
   LEGAL PAGES (mentions légales, confidentialité)
   ========================================================================== */
.footer__sep { margin: 0 0.5em; }

.legal-body { background: #f7f8fc; }
.legal-body .page { min-height: 100vh; display: flex; flex-direction: column; background: #f7f8fc; }
.legal-body .footer { margin-top: auto; background: var(--surface); }

.legal-header { padding: 32px; text-align: center; }
.legal-header__home { display: inline-block; }
.legal-header img { width: 280px; height: auto; }

.legal {
  width: min(760px, 100% - 48px);
  margin: 0 auto 72px;
  padding: 48px clamp(24px, 5vw, 64px);
  background: var(--surface);
  border-radius: var(--content-radius, 18px);
  box-shadow: 0 10px 40px rgba(28, 43, 90, 0.06);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
}

.legal__title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.legal__updated { margin: 0 0 32px; font-size: 14px; color: var(--ink-muted); }

.legal h2 {
  margin: 36px 0 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.legal h3 { margin: 22px 0 6px; font-size: 16px; font-weight: 600; }
.legal p { margin: 0 0 14px; }
.legal__colophon { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--saga-border, #eae8e8); font-size: 13px; color: var(--ink-muted); }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.legal a:hover { color: var(--primary-dark); }

.legal__facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 20px;
  margin: 0 0 16px;
}

.legal__facts dt { color: var(--ink-muted); }
.legal__facts dd { margin: 0; }

@media (max-width: 600px) {
  .legal__facts { grid-template-columns: 1fr; gap: 2px 0; }
  .legal__facts dd { margin-bottom: 10px; }
  .legal-header img { width: 220px; }
}
