/* Postuflash design system — modern, punchy, French SaaS feel */
:root {
  --pf-primary: #6366f1;
  --pf-primary-dark: #4f46e5;
  --pf-accent: #ec4899;
  --pf-purple: #8b5cf6;
  --pf-grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  --pf-grad-soft: linear-gradient(135deg, #eef2ff 0%, #fdf2f8 100%);
  --pf-bg: #ffffff;
  --pf-bg-alt: #f8fafc;
  --pf-bg-dark: #0f172a;
  --pf-text: #0f172a;
  --pf-text-muted: #64748b;
  --pf-border: #e2e8f0;
  --pf-success: #10b981;
  --pf-warning: #f59e0b;
  --pf-danger: #ef4444;
  --pf-radius: 12px;
  --pf-radius-lg: 20px;
  --pf-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --pf-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.04);
  --pf-shadow-lg: 0 20px 40px -8px rgb(99 102 241 / 0.25);
  --pf-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--pf-font);
  color: var(--pf-text);
  background: var(--pf-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--pf-primary); text-decoration: none; }
a:hover { color: var(--pf-primary-dark); }

/* Layout */
.pf-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.pf-section { padding: 80px 0; }
.pf-section-sm { padding: 48px 0; }

/* Nav */
.pf-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--pf-border);
}
.pf-nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; max-width: 1200px; margin: 0 auto; }
.pf-nav-brand { display: flex; align-items: center; gap: 8px; }
.pf-nav-links { display: flex; gap: 32px; align-items: center; list-style: none; padding: 0; margin: 0; }
.pf-nav-links a { color: var(--pf-text); font-weight: 500; font-size: 15px; }
.pf-nav-links a:hover { color: var(--pf-primary); }
@media (max-width: 768px) { .pf-nav-links { display: none; } }

/* Buttons */
.pf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--pf-radius);
  font-family: inherit; font-weight: 600; font-size: 15px;
  border: 0; cursor: pointer; transition: all .18s ease;
  text-decoration: none; white-space: nowrap;
}
.pf-btn-primary { background: var(--pf-grad); color: white; box-shadow: var(--pf-shadow-lg); }
.pf-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 25px 50px -10px rgb(99 102 241 / 0.4); color: white; }
.pf-btn-ghost { background: transparent; color: var(--pf-text); }
.pf-btn-ghost:hover { background: var(--pf-bg-alt); }
.pf-btn-outline { background: white; color: var(--pf-text); border: 1.5px solid var(--pf-border); }
.pf-btn-outline:hover { border-color: var(--pf-primary); color: var(--pf-primary); }
.pf-btn-lg { padding: 16px 32px; font-size: 16px; border-radius: 14px; }
.pf-btn-xl { padding: 18px 36px; font-size: 17px; border-radius: 14px; }

/* Hero */
.pf-hero {
  background: var(--pf-grad-soft);
  padding: 100px 0 120px;
  position: relative; overflow: hidden;
}
.pf-hero::before, .pf-hero::after {
  content: ''; position: absolute;
  width: 400px; height: 400px; border-radius: 50%;
  filter: blur(90px); opacity: .3; pointer-events: none;
}
.pf-hero::before { background: var(--pf-primary); top: -100px; left: -100px; }
.pf-hero::after { background: var(--pf-accent); bottom: -100px; right: -100px; }
.pf-hero-inner { text-align: center; max-width: 820px; margin: 0 auto; position: relative; }
.pf-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: white; color: var(--pf-primary);
  border: 1px solid var(--pf-border);
  padding: 6px 14px; border-radius: 100px; font-size: 13px; font-weight: 600;
  margin-bottom: 24px;
}
.pf-hero h1 {
  font-size: clamp(36px, 6vw, 64px); font-weight: 800;
  line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 20px;
}
.pf-grad-text { background: var(--pf-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pf-hero p.pf-lead {
  font-size: 20px; color: var(--pf-text-muted);
  max-width: 620px; margin: 0 auto 36px;
}
.pf-hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.pf-hero-checks { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; font-size: 13px; color: var(--pf-text-muted); }
.pf-hero-checks span::before { content: '✓ '; color: var(--pf-success); font-weight: 700; }

/* Social proof */
.pf-logos { padding: 48px 0; background: var(--pf-bg-alt); }
.pf-logos-title { text-align: center; color: var(--pf-text-muted); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 24px; }
.pf-logos-row { display: flex; gap: 36px; justify-content: center; flex-wrap: wrap; opacity: .55; font-weight: 700; font-size: 14px; color: var(--pf-text); }

/* Steps */
.pf-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.pf-step { background: white; border: 1px solid var(--pf-border); border-radius: var(--pf-radius-lg); padding: 28px; transition: all .2s; }
.pf-step:hover { transform: translateY(-4px); box-shadow: var(--pf-shadow-lg); border-color: transparent; }
.pf-step-num { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; background: var(--pf-grad); color: white; border-radius: 10px; font-weight: 700; margin-bottom: 14px; }
.pf-step h3 { margin: 0 0 8px; font-size: 17px; }
.pf-step p { margin: 0; color: var(--pf-text-muted); font-size: 14px; }
@media (max-width: 900px) { .pf-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .pf-steps { grid-template-columns: 1fr; } }

/* Section heading */
.pf-section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.pf-section-eyebrow { color: var(--pf-primary); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.pf-section-head h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -0.02em; margin: 8px 0 14px; line-height: 1.15; }
.pf-section-head p { font-size: 17px; color: var(--pf-text-muted); margin: 0; }

/* Feature grid */
.pf-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pf-feat { background: white; border: 1px solid var(--pf-border); border-radius: var(--pf-radius-lg); padding: 28px; }
.pf-feat-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--pf-grad-soft); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px; }
.pf-feat h3 { margin: 0 0 8px; font-size: 18px; }
.pf-feat p { margin: 0; color: var(--pf-text-muted); font-size: 14px; }
@media (max-width: 900px) { .pf-features { grid-template-columns: 1fr; } }

/* Pricing */
.pf-pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pf-plan { background: white; border: 2px solid var(--pf-border); border-radius: var(--pf-radius-lg); padding: 32px; position: relative; transition: all .2s; }
.pf-plan:hover { border-color: var(--pf-primary); transform: translateY(-4px); }
.pf-plan-featured { border-color: var(--pf-primary); box-shadow: var(--pf-shadow-lg); }
.pf-plan-featured::before {
  content: 'Recommandé'; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--pf-grad); color: white; padding: 4px 14px; border-radius: 100px; font-size: 12px; font-weight: 700;
}
.pf-plan h3 { font-size: 20px; margin: 0 0 6px; }
.pf-plan-desc { color: var(--pf-text-muted); font-size: 14px; margin: 0 0 20px; min-height: 40px; }
.pf-plan-price { font-size: 44px; font-weight: 800; letter-spacing: -0.02em; }
.pf-plan-price small { font-size: 16px; font-weight: 500; color: var(--pf-text-muted); }
.pf-plan-meta { color: var(--pf-text-muted); font-size: 13px; margin-bottom: 20px; }
.pf-plan ul { list-style: none; padding: 0; margin: 0 0 24px; }
.pf-plan li { padding: 8px 0; font-size: 14px; display: flex; gap: 8px; align-items: flex-start; }
.pf-plan li::before { content: '✓'; color: var(--pf-success); font-weight: 700; flex: 0 0 auto; }
@media (max-width: 900px) { .pf-pricing { grid-template-columns: 1fr; } }

/* Testimonials */
.pf-testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pf-testimonial { background: white; border: 1px solid var(--pf-border); border-radius: var(--pf-radius-lg); padding: 24px; }
.pf-testimonial-stars { color: #f59e0b; font-size: 14px; margin-bottom: 12px; }
.pf-testimonial-text { font-size: 15px; color: var(--pf-text); margin: 0 0 16px; }
.pf-testimonial-author { font-size: 13px; color: var(--pf-text-muted); }
.pf-testimonial-author strong { color: var(--pf-text); }
@media (max-width: 900px) { .pf-testimonials { grid-template-columns: 1fr; } }

/* FAQ */
.pf-faq-list { max-width: 760px; margin: 0 auto; }
.pf-faq-item { border-bottom: 1px solid var(--pf-border); padding: 20px 0; cursor: pointer; }
.pf-faq-item summary { font-weight: 600; font-size: 16px; list-style: none; position: relative; padding-right: 32px; }
.pf-faq-item summary::-webkit-details-marker { display: none; }
.pf-faq-item summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--pf-primary); font-weight: 300; transition: transform .2s; }
.pf-faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.pf-faq-item p { color: var(--pf-text-muted); margin: 12px 0 0; font-size: 15px; }

/* Footer */
.pf-footer { background: var(--pf-bg-dark); color: #cbd5e1; padding: 64px 0 32px; margin-top: 80px; }
.pf-footer a { color: #cbd5e1; }
.pf-footer a:hover { color: white; }
.pf-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.pf-footer h4 { color: white; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 16px; }
.pf-footer ul { list-style: none; padding: 0; margin: 0; }
.pf-footer li { padding: 4px 0; font-size: 14px; }
.pf-footer-bottom { border-top: 1px solid #1e293b; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 13px; color: #64748b; }
@media (max-width: 768px) { .pf-footer-grid { grid-template-columns: 1fr 1fr; } }

/* Auth / App pages */
.pf-auth-wrap { min-height: 100vh; display: grid; place-items: center; background: var(--pf-grad-soft); padding: 24px; }
.pf-card { background: white; border-radius: var(--pf-radius-lg); padding: 36px; max-width: 440px; width: 100%; box-shadow: var(--pf-shadow-lg); }
.pf-card h2 { margin: 0 0 6px; font-size: 24px; }
.pf-card-sub { color: var(--pf-text-muted); margin: 0 0 24px; font-size: 14px; }
.pf-field { margin-bottom: 16px; }
.pf-field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.pf-input {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--pf-border);
  border-radius: 10px; font-size: 15px; font-family: inherit; transition: border-color .15s;
}
.pf-input:focus { outline: none; border-color: var(--pf-primary); box-shadow: 0 0 0 3px rgb(99 102 241 / 0.15); }
.pf-input-error { border-color: var(--pf-danger); }
.pf-alert { padding: 12px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; }
.pf-alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.pf-alert-success { background: #f0fdf4; color: #14532d; border: 1px solid #bbf7d0; }

/* App shell */
.pf-app { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.pf-sidebar { background: white; border-right: 1px solid var(--pf-border); padding: 24px 16px; }
.pf-sidebar-brand { padding: 0 8px; margin-bottom: 32px; }
.pf-sidebar-nav { list-style: none; padding: 0; margin: 0; }
.pf-sidebar-nav li a {
  display: flex; gap: 10px; padding: 10px 12px; border-radius: 8px;
  color: var(--pf-text); font-weight: 500; font-size: 14px; align-items: center;
}
.pf-sidebar-nav li a:hover { background: var(--pf-bg-alt); }
.pf-sidebar-nav li a.active { background: var(--pf-grad-soft); color: var(--pf-primary-dark); }
.pf-main { padding: 32px; background: var(--pf-bg-alt); }
.pf-main h1 { font-size: 28px; margin: 0 0 24px; }
.pf-panel { background: white; border: 1px solid var(--pf-border); border-radius: var(--pf-radius-lg); padding: 24px; margin-bottom: 20px; }

.pf-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.pf-stat { background: white; border: 1px solid var(--pf-border); border-radius: var(--pf-radius); padding: 20px; }
.pf-stat-label { color: var(--pf-text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.pf-stat-value { font-size: 28px; font-weight: 800; margin-top: 6px; }
@media (max-width: 900px) {
  .pf-app { grid-template-columns: 1fr; }
  .pf-sidebar { display: none; }
  .pf-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

.pf-muted { color: var(--pf-text-muted); font-size: 14px; }
.pf-center { text-align: center; }
.pf-mt-2 { margin-top: 16px; }
.pf-mb-2 { margin-bottom: 16px; }
.pf-flex { display: flex; gap: 12px; align-items: center; }
.pf-flex-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
