:root {
  --ink: #1b1d22;
  --ink-soft: #55585f;
  --paper: #faf8f4;
  --paper-raised: #ffffff;
  --line: #e7e2d8;
  /* Même vert émeraude que l'accent principal de l'app (voir
     src/styles.css : --tui-background-accent-1 et alentours) — cohérence de
     marque entre la landing et le produit. */
  --brand: #10b981; /* emerald-500 */
  --brand-dark: #047857; /* emerald-700 */
  --brand-tint: #d1fae5; /* emerald-100 */
  --accent-ok: #059669; /* emerald-600 */
  --radius: 14px;
  --shadow:
    0 1px 2px rgba(27, 29, 34, 0.04), 0 12px 32px -16px rgba(27, 29, 34, 0.18);
  --font-body:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
  display: block;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  text-align: center;
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 248, 244, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}

.logo-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: block;
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

.nav a:hover {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    background 0.15s ease,
    filter 0.15s ease;
}

.btn-primary {
  background: linear-gradient(155deg, var(--brand), var(--brand-dark));
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(16, 185, 129, 0.5);
}

.btn-primary:hover {
  filter: brightness(0.94);
  transform: translateY(-4px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--ink);
}

.btn-small {
  padding: 9px 18px;
  font-size: 0.88rem;
}

.btn-wide {
  width: 100%;
}

/* Hero */

.hero {
  padding: 76px 0 88px;
}

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 14px;
}

.lead {
  font-size: 1.14rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 28px 0 16px;
}

.hero-note {
  font-size: 0.86rem;
  color: var(--ink-soft);
}

/* Hero visual — stylised app mock, no real screenshot */

.hero-visual {
  display: flex;
  justify-content: center;
}

.mock-window {
  width: 100%;
  max-width: 460px;
  background: var(--paper-raised);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mock-titlebar {
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.mock-titlebar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
}

.mock-body {
  display: grid;
  grid-template-columns: 64px 1fr 96px;
  gap: 14px;
  padding: 18px;
}

.mock-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-pill {
  height: 9px;
  border-radius: 5px;
  background: var(--line);
}

.mock-pill-active {
  background: var(--brand);
}

.mock-stage {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mock-photo {
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  background: linear-gradient(155deg, var(--brand-tint), #a7f3d0);
}

.mock-caption {
  height: 8px;
  width: 60%;
  margin: 0 auto;
  border-radius: 5px;
  background: var(--line);
}

.mock-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-row {
  height: 10px;
  border-radius: 5px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.mock-row-done {
  background: #eaf1ec;
  border-color: #d3e3d7;
}

.mock-row-active {
  border-color: var(--brand);
}

/* Features */

.features {
  padding: 88px 0;
  background: var(--paper-raised);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-lead {
  text-align: center;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

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

.feature-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4em;
}

.feature-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand-tint);
  margin-bottom: 18px;
  position: relative;
}

.feature-icon::before {
  content: "";
  position: absolute;
  inset: 11px;
  background: var(--brand);
  border-radius: 3px;
}

.feature-icon[data-icon="capture"]::before {
  border-radius: 50%;
}

.feature-icon[data-icon="folder"]::before {
  clip-path: polygon(0 15%, 40% 15%, 50% 30%, 100% 30%, 100% 85%, 0 85%);
}

.feature-icon[data-icon="slider"]::before {
  inset: 15px 11px;
  clip-path: polygon(
    0 30%,
    100% 30%,
    100% 45%,
    0 45%,
    0 55%,
    100% 55%,
    100% 70%,
    0 70%
  );
}

.feature-icon[data-icon="pdf"]::before {
  clip-path: polygon(20% 0, 70% 0, 100% 30%, 100% 100%, 20% 100%);
}

.feature-icon[data-icon="camera-off"]::before {
  border-radius: 50%;
  clip-path: polygon(0 0, 100% 100%, 85% 100%, 0 15%);
}

.feature-icon[data-icon="offline"]::before {
  border-radius: 50% 50% 4px 4px;
}

/* How it works */

.how {
  padding: 88px 0;
}

.steps {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  gap: 32px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
}

.step h3 {
  font-size: 1.08rem;
  margin-bottom: 0.3em;
}

.step p {
  color: var(--ink-soft);
  margin-bottom: 0;
}

/* Download */

.download {
  padding: 88px 0;
}

.download-primary {
  text-align: center;
  margin: 40px 0 32px;
}

.download-primary .btn {
  padding: 15px 34px;
  font-size: 1.02rem;
}

.download-primary-note {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin: 12px 0 0;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}

.download-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper-raised);
  text-decoration: none;
  color: var(--ink);
  text-align: center;
  transition:
    border-color 0.15s ease,
    transform 0.12s ease,
    box-shadow 0.15s ease;
}

.download-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}

.download-card.is-recommended {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand) inset;
}

.download-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
}

.download-card-name {
  font-weight: 600;
  font-size: 0.96rem;
}

.download-card-sub {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* Pricing */

.pricing {
  padding: 88px 0;
  background: var(--paper-raised);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.price-card {
  max-width: 420px;
  margin: 48px auto 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.price-name {
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 10px;
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
}

.price-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
}

.price-period {
  color: var(--ink-soft);
  font-size: 1rem;
}

.price-sub {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.price-features {
  list-style: none;
  margin: 24px 0 28px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.price-features li {
  padding-left: 26px;
  position: relative;
  font-size: 0.95rem;
}

.price-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-ok);
}

.price-features li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  width: 6px;
  height: 3px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.price-note {
  font-size: 0.84rem;
  color: var(--ink-soft);
  text-align: center;
  margin: 16px 0 0;
}

/* FAQ */

.faq {
  padding: 88px 0;
}

.faq-list {
  max-width: 680px;
  margin: 40px auto 0;
  display: grid;
  gap: 12px;
}

details {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 20px;
  background: var(--paper-raised);
}

summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  float: right;
  color: var(--brand);
  font-weight: 700;
}

details[open] summary::after {
  content: "\2212";
}

details p {
  margin: 12px 0 0;
  color: var(--ink-soft);
}

/* Final CTA */

.cta-final {
  padding: 88px 0 100px;
  text-align: center;
}

.cta-final p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--ink-soft);
  flex-wrap: wrap;
  gap: 8px;
}

.footer-row a {
  text-decoration: none;
  color: var(--ink-soft);
}

.footer-row a:hover {
  color: var(--ink);
}

/* Responsive */

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

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

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

@media (max-width: 640px) {
  .nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--paper-raised);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .header-row .btn-small {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

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

  .mock-body {
    grid-template-columns: 48px 1fr 72px;
  }
}

/* Pages légales (mentions, CGU, CGV) */

.legal-hero {
  padding: 56px 0 20px;
  border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin-bottom: 0.3em;
}

.legal-updated {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 0;
}

.legal-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px 0 0;
  font-size: 0.92rem;
}

.legal-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.legal-nav a:hover,
.legal-nav a[aria-current="page"] {
  color: var(--brand-dark);
  border-bottom-color: var(--brand-dark);
}

.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.legal-content h2 {
  text-align: left;
  font-size: 1.3rem;
  margin-top: 2em;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 1.05rem;
  margin-top: 1.5em;
}

.legal-content p,
.legal-content li {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.legal-content strong {
  color: var(--ink);
}

.legal-content ul,
.legal-content ol {
  padding-left: 1.3em;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 0.92rem;
}

.legal-content th,
.legal-content td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.legal-content address {
  font-style: normal;
}

.footer-legal {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
