/* ============================================================
   Marketing site (pages publiques)
   Palette + composants partagés.
   Inspiré : Linear, Stripe, Notion, Apple Education
   ============================================================ */

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

:root {
  --ink-900:        #0F172A;
  --ink-700:        #1E293B;
  --ink-500:        #64748B;
  --ink-300:        #94A3B8;
  --primary:        #2563EB;
  --primary-dark:   #1D4ED8;
  --primary-soft:   #EFF6FF;
  --primary-tint:   #DBEAFE;
  --success:        #16A34A;
  --success-soft:   #DCFCE7;
  --warning:        #F59E0B;
  --warning-soft:   #FEF3C7;
  --danger:         #DC2626;
  --bg:             #F8FAFC;
  --surface:        #FFFFFF;
  --border:         #E2E8F0;
  --border-strong:  #CBD5E1;

  --radius-sm:      6px;
  --radius:         10px;
  --radius-lg:      16px;
  --radius-xl:      24px;

  --shadow-sm:      0 1px 2px rgba(15,23,42,.05);
  --shadow:         0 4px 12px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.04);
  --shadow-lg:      0 20px 40px -10px rgba(15,23,42,.15), 0 8px 16px -8px rgba(15,23,42,.08);
  --shadow-glow:    0 30px 60px -20px rgba(37,99,235,.4);

  --font:           "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* Conteneur global */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   Header public
   ============================================================ */
.public-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.public-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 18px; color: var(--ink-900);
}
.brand-mark {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--primary) 0%, #1D4ED8 50%, #1E40AF 100%);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 16px;
  box-shadow: 0 4px 12px rgba(37,99,235,.3);
}
.nav-public { display: flex; align-items: center; gap: 8px; }
.nav-public a {
  padding: 8px 14px; border-radius: 8px;
  color: var(--ink-700); font-weight: 500; font-size: 14px;
  transition: background .15s, color .15s;
}
.nav-public a:hover { background: var(--bg); color: var(--ink-900); }
.nav-public .btn { margin-left: 4px; }
.nav-toggle {
  display: none; background: none; border: none; padding: 8px;
  color: var(--ink-900);
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 768px) {
  .nav-public { display: none; position: absolute; top: 64px; left: 0; right: 0;
                background: var(--surface); padding: 16px; flex-direction: column;
                align-items: stretch; gap: 4px; border-bottom: 1px solid var(--border); }
  .nav-public.open { display: flex; }
  .nav-public a { width: 100%; }
  .nav-toggle { display: block; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600; font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .15s, box-shadow .15s, background .15s;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--primary); color: white;
  box-shadow: 0 4px 12px rgba(37,99,235,.25);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(37,99,235,.35); }
.btn-secondary {
  background: var(--surface); color: var(--ink-900);
  border-color: var(--border-strong);
}
.btn-secondary:hover { background: var(--bg); border-color: var(--ink-500); }
.btn-ghost { background: transparent; color: var(--ink-900); }
.btn-ghost:hover { background: var(--bg); }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-arrow::after {
  content: "→"; margin-left: 4px;
  transition: transform .15s;
}
.btn-arrow:hover::after { transform: translateX(3px); }

/* ============================================================
   Sections
   ============================================================ */
section { padding: 80px 0; }
@media (max-width: 768px) { section { padding: 56px 0; } }

.section-tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin-bottom: 16px;
}
.section-lead {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.55;
  color: var(--ink-500);
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head { text-align: center; }
.section-head .section-lead { margin-left: auto; margin-right: auto; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 80px 0 100px;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(37,99,235,.10), transparent 60%),
    radial-gradient(ellipse at 0% 100%, rgba(37,99,235,.06), transparent 60%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  color: var(--ink-900);
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--primary) 0%, #1E40AF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  color: var(--ink-500);
  margin-bottom: 32px;
  max-width: 540px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 24px;
  color: var(--ink-500); font-size: 14px;
}
.hero-meta span { display: flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 18px; height: 18px; color: var(--success); flex-shrink: 0; }

/* Visuel hero : mockup + cards flottantes */
.hero-visual { position: relative; }
.mockup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-3deg) rotateX(2deg);
  transition: transform .3s;
}
.mockup:hover { transform: perspective(1200px) rotateY(-2deg) rotateX(1deg) translateY(-4px); }
.mockup-toolbar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.mockup-toolbar .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--border-strong); }
.mockup-toolbar .dot:nth-child(1) { background: #EF4444; }
.mockup-toolbar .dot:nth-child(2) { background: #F59E0B; }
.mockup-toolbar .dot:nth-child(3) { background: #16A34A; }
.mockup-toolbar .url {
  flex: 1; margin: 0 16px; padding: 4px 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; font-size: 12px; color: var(--ink-500);
}
.mockup-body { padding: 24px; min-height: 320px; }
.mockup-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.mockup-row:last-child { border: none; }
.mockup-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-tint), var(--primary-soft));
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-weight: 700; font-size: 13px; flex-shrink: 0;
}
.mockup-text { flex: 1; min-width: 0; }
.mockup-text .t1 { font-weight: 600; font-size: 14px; color: var(--ink-900); }
.mockup-text .t2 { font-size: 12px; color: var(--ink-500); margin-top: 2px; }
.mockup-pill {
  font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px;
}
.mockup-pill.green { background: var(--success-soft); color: var(--success); }
.mockup-pill.amber { background: var(--warning-soft); color: var(--warning); }
.mockup-pill.blue  { background: var(--primary-soft); color: var(--primary); }

.float-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600;
  animation: float 6s ease-in-out infinite;
}
.float-card svg { width: 20px; height: 20px; flex-shrink: 0; }
.float-card.fc-1 { top: -20px; left: -30px;
  color: var(--success); animation-delay: 0s; }
.float-card.fc-2 { bottom: 40px; right: -40px;
  color: var(--primary); animation-delay: 1.5s; }
.float-card.fc-3 { top: 50%; right: -20px;
  color: var(--warning); animation-delay: 3s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 968px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; max-width: 480px; margin: 0 auto; }
  .mockup { transform: none; }
  .float-card.fc-1 { left: -10px; }
  .float-card.fc-2 { right: -10px; }
  .float-card.fc-3 { display: none; }
}

/* ============================================================
   Section "problèmes"
   ============================================================ */
.problems {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.problem-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.problem {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 20px;
}
.problem-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: #FEE2E2;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--danger);
}
.problem-icon svg { width: 18px; height: 18px; }
.problem h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; color: var(--ink-900); }
.problem p { font-size: 14px; color: var(--ink-500); line-height: 1.55; }

/* ============================================================
   Features cards
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}
.feature-icon {
  width: 48px; height: 48px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 {
  font-size: 18px; font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.feature p { color: var(--ink-500); font-size: 14px; line-height: 1.6; }

/* ============================================================
   Section visuelle (image + texte)
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  background: var(--bg);
}
.split-image img { width: 100%; height: 100%; object-fit: cover; }
.split-content h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.split-content p { color: var(--ink-500); font-size: 17px; line-height: 1.6; margin-bottom: 24px; }
.split-content ul { list-style: none; padding: 0; }
.split-content li {
  padding-left: 28px; position: relative;
  margin-bottom: 12px; color: var(--ink-700);
  font-size: 15px; line-height: 1.5;
}
.split-content li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px;
  background: var(--success-soft);
  color: var(--success);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

@media (max-width: 968px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse { direction: ltr; }
}

/* ============================================================
   Pour qui (audiences)
   ============================================================ */
.audiences-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.audience {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color .15s, transform .15s;
}
.audience:hover { border-color: var(--primary); transform: translateY(-3px); }
.audience-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--primary-soft), var(--primary-tint));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  margin-bottom: 20px;
}
.audience-icon svg { width: 28px; height: 28px; }
.audience h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.audience > p { color: var(--ink-500); margin-bottom: 16px; font-size: 14px; }
.audience ul { list-style: none; padding: 0; }
.audience li {
  font-size: 14px; color: var(--ink-700); padding: 6px 0;
  padding-left: 22px; position: relative;
}
.audience li::before {
  content: "•"; position: absolute; left: 6px; top: 4px;
  color: var(--primary); font-weight: 700;
}

/* ============================================================
   Pricing
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: transform .15s, box-shadow .15s;
}
.price-card.featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-glow);
  transform: scale(1.02);
}
.price-card.featured::before {
  content: "Recommandé";
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: white;
  font-size: 12px; font-weight: 600;
  padding: 4px 12px; border-radius: 999px;
}
.price-name { font-size: 15px; color: var(--ink-500); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }
.price-amount { font-size: 48px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.price-amount sup { font-size: 18px; font-weight: 600; color: var(--ink-500); margin-right: 4px; vertical-align: top; }
.price-amount span { font-size: 16px; font-weight: 500; color: var(--ink-500); margin-left: 4px; }
.price-billing { font-size: 13px; color: var(--ink-500); margin-top: 8px; }
.price-billing strong { color: var(--success); font-weight: 600; }
.price-card hr { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.price-card ul { list-style: none; padding: 0; margin-bottom: 28px; }
.price-card li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  font-size: 14px;
  color: var(--ink-700);
  line-height: 1.4;
}
.price-card li::before {
  content: "✓"; position: absolute; left: 0; top: 8px;
  width: 18px; height: 18px;
  background: var(--success-soft); color: var(--success);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}

/* ============================================================
   Security highlights
   ============================================================ */
.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.security-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.security-item-icon {
  width: 36px; height: 36px;
  background: #ECFDF5; color: var(--success);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.security-item-icon svg { width: 20px; height: 20px; }
.security-item h4 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.security-item p { font-size: 13px; color: var(--ink-500); line-height: 1.55; }

/* ============================================================
   Final CTA
   ============================================================ */
.final-cta {
  background: linear-gradient(135deg, var(--ink-900) 0%, #1E3A8A 100%);
  color: white;
  text-align: center;
  padding: 80px 0;
}
.final-cta h2 {
  font-size: clamp(28px, 4vw, 42px); font-weight: 700;
  margin-bottom: 14px; letter-spacing: -0.02em;
}
.final-cta p { font-size: 18px; opacity: 0.85; max-width: 580px; margin: 0 auto 32px; }
.final-cta .btn-primary {
  background: white; color: var(--ink-900);
}
.final-cta .btn-primary:hover { background: #f1f5f9; }
.final-cta .btn-secondary {
  background: transparent; color: white;
  border-color: rgba(255,255,255,.3);
}
.final-cta .btn-secondary:hover { background: rgba(255,255,255,.1); }

/* ============================================================
   Footer
   ============================================================ */
.public-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-brand p {
  color: var(--ink-500); font-size: 14px; line-height: 1.6;
  margin-top: 12px; max-width: 320px;
}
.footer-col h5 {
  font-size: 13px; font-weight: 600;
  color: var(--ink-700);
  text-transform: uppercase; letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--ink-500); text-decoration: none; font-size: 14px; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  color: var(--ink-500); font-size: 13px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* ============================================================
   Forms (demo / contact)
   ============================================================ */
.form-card {
  max-width: 640px; margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}
.form-card h2 { margin-bottom: 8px; font-size: 24px; }
.form-card .lead { color: var(--ink-500); margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 13px; font-weight: 600;
  color: var(--ink-700);
  margin-bottom: 6px;
}
.form-field label .req { color: var(--danger); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink-900);
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-card .btn { width: 100%; padding: 14px; font-size: 16px; }
.form-meta { font-size: 12px; color: var(--ink-500); margin-top: 12px; text-align: center; }

@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ============================================================
   Toast (succès envoi formulaire)
   ============================================================ */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--ink-900); color: white;
  padding: 14px 20px; border-radius: 10px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500;
  transform: translateY(100px); opacity: 0;
  transition: all .25s;
  z-index: 200;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
