/* ProtectMarket — Site vitrine (tokens alignés sur l'app) */
:root {
  --background: oklch(0.985 0.002 250);
  --foreground: oklch(0.21 0.02 257);
  --card: oklch(1 0 0);
  --muted: oklch(0.967 0.004 250);
  --muted-foreground: oklch(0.52 0.015 257);
  --border: oklch(0.922 0.004 250);
  --primary: oklch(0.51 0.16 257);
  --primary-foreground: oklch(0.99 0 0);
  --brand-blue: oklch(0.51 0.16 257);
  --brand-blue-dark: oklch(0.41 0.14 259);
  --brand-green: oklch(0.56 0.1 159);
  --brand-yellow: oklch(0.79 0.14 78);
  --radius: 0.75rem;
  --shadow-color: 230 25% 22%;
  --shadow-sm: 0 1px 2px -1px hsl(var(--shadow-color) / 0.06),
    0 1px 3px 0 hsl(var(--shadow-color) / 0.05);
  --shadow-md: 0 2px 6px -2px hsl(var(--shadow-color) / 0.06),
    0 6px 16px -4px hsl(var(--shadow-color) / 0.08);
  --shadow-lg: 0 4px 10px -3px hsl(var(--shadow-color) / 0.07),
    0 12px 28px -6px hsl(var(--shadow-color) / 0.1);
  --max-width: 72rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv01", "cv03", "ss01";
}

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

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

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: oklch(1 0 0 / 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.875rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.brand img {
  height: 2.25rem;
  width: auto;
}

.brand span {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

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

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--brand-blue-dark);
  box-shadow: var(--shadow-md);
}

.btn-white {
  background: white;
  color: var(--foreground);
  box-shadow: var(--shadow-lg);
}

.btn-white:hover {
  background: oklch(0.98 0 0);
}

.btn-outline {
  background: oklch(1 0 0 / 0.08);
  color: white;
  border: 1px solid oklch(1 0 0 / 0.25);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: oklch(1 0 0 / 0.14);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid oklch(0.51 0.16 257 / 0.25);
}

.btn-ghost:hover {
  background: oklch(0.51 0.16 257 / 0.08);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: white;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    oklch(0.12 0.02 257 / 0.95) 0%,
    oklch(0.12 0.02 257 / 0.6) 45%,
    oklch(0.12 0.02 257 / 0.3) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 7rem 4rem;
  max-width: 40rem;
}

.overline {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: oklch(1 0 0 / 0.7);
}

.hero h1 {
  margin-top: 0.75rem;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero-lead {
  margin-top: 1rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: oklch(1 0 0 / 0.82);
  max-width: 32rem;
  text-wrap: pretty;
}

.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
  list-style: none;
}

.trust-pills li {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid oklch(1 0 0 / 0.15);
  background: oklch(1 0 0 / 0.1);
  backdrop-filter: blur(8px);
  font-size: 0.75rem;
  font-weight: 600;
}

.trust-pills svg {
  width: 0.9rem;
  height: 0.9rem;
  flex-shrink: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Sections */
section {
  padding-block: 5rem;
}

.section-header {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
  margin-bottom: 3rem;
}

.section-header .overline {
  color: var(--primary);
}

.section-header h2 {
  margin-top: 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section-header p {
  margin-top: 0.75rem;
  color: var(--muted-foreground);
  text-wrap: pretty;
}

/* Trust grid */
.trust-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.trust-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.trust-card .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: calc(var(--radius) - 2px);
  background: oklch(0.51 0.16 257 / 0.1);
  color: var(--primary);
  margin-bottom: 1rem;
}

.trust-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}

.trust-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.55;
}

/* Audience cards */
.audience-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .audience-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.audience-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.audience-card.particulier {
  border-top: 3px solid var(--brand-blue);
}

.audience-card.entreprise {
  border-top: 3px solid var(--brand-green);
}

.audience-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.audience-card.particulier .audience-badge {
  background: oklch(0.51 0.16 257 / 0.1);
  color: var(--primary);
}

.audience-card.entreprise .audience-badge {
  background: oklch(0.56 0.1 159 / 0.12);
  color: var(--brand-green);
}

.audience-card h3 {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.audience-card > p {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.feature-list .feature-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: calc(var(--radius) - 4px);
  background: var(--muted);
  color: var(--primary);
}

.feature-list strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.125rem;
}

.feature-list span {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}

.subscription-note {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}

/* How it works */
.how-section {
  background: var(--muted);
}

.steps {
  display: grid;
  gap: 1.5rem;
  counter-reset: step;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow-sm);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}

.step p {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  line-height: 1.55;
}

/* Platform features */
.platform-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .platform-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.platform-card {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: linear-gradient(
    145deg,
    oklch(0.51 0.16 257 / 0.06),
    oklch(0.56 0.1 159 / 0.04)
  );
  border: 1px solid var(--border);
}

.platform-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.platform-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.55;
}

/* CTA */
.cta-section {
  padding-block: 0 5rem;
}

.cta-box {
  background: linear-gradient(
    135deg,
    var(--brand-blue-dark),
    var(--brand-blue)
  );
  color: white;
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.cta-box h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.cta-box p {
  margin-top: 0.75rem;
  color: oklch(1 0 0 / 0.85);
  max-width: 32rem;
  margin-inline: auto;
  text-wrap: pretty;
}

.cta-box .hero-actions {
  justify-content: center;
  margin-top: 1.75rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 2rem;
  background: var(--card);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand img {
  height: 1.75rem;
}

.footer-brand span {
  font-weight: 700;
  font-size: 0.9375rem;
}

.footer-meta {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.footer-meta a {
  color: var(--primary);
  font-weight: 500;
}

.footer-meta a:hover {
  text-decoration: underline;
}
