/* ============================================
   JobSwipe — style.css
   Couleurs : #1E3A5F (bleu foncé), #22c55e (vert)
   ============================================ */

:root {
  --primary: #1E3A5F;
  --primary-dark: #15293f;
  --primary-light: #2c5282;
  --accent: #22c55e;
  --accent-dark: #16a34a;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-muted: #f1f5f9;
  --text: #0f172a;
  --text-soft: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.05);
  --shadow-md: 0 6px 24px rgba(15,23,42,.08);
  --shadow-lg: 0 20px 48px rgba(15,23,42,.12);
  --container: 1180px;
  --transition: cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s var(--transition); }
a:hover { color: var(--accent); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--primary);
  letter-spacing: -.02em;
}
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: grid; place-items: center;
  color: #fff; font-weight: 800;
  box-shadow: var(--shadow-sm);
}
.brand-mark::after { content: 'JS'; font-size: 13px; letter-spacing: -.03em; }
.brand strong { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--text-soft);
  font-weight: 500;
  font-size: 15px;
}
.nav-links a:hover { color: var(--primary); }
.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: transform .2s var(--transition), background .2s var(--transition);
}
.nav-cta:hover { background: var(--accent); transform: translateY(-1px); color: #fff !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--primary);
  margin: 5px 0;
  transition: .25s var(--transition);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 80px 0 60px;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(34,197,94,.12), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(30,58,95,.10), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34,197,94,.10);
  color: var(--accent-dark);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(34,197,94,.2);
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--primary);
  margin-bottom: 20px;
}
.hero h1 .accent { color: var(--accent); }
.hero p.lead {
  font-size: 1.2rem;
  color: var(--text-soft);
  margin-bottom: 32px;
  max-width: 540px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--primary);
  color: #fff;
  padding: 12px 22px;
  border-radius: 14px;
  font-weight: 600;
  transition: transform .2s var(--transition), box-shadow .2s var(--transition);
  box-shadow: var(--shadow-sm);
}
.store-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: #fff; }
.store-badge .small { font-size: 11px; opacity: .8; display: block; line-height: 1; }
.store-badge .big { font-size: 16px; line-height: 1.2; display: block; }
.store-badge svg { width: 26px; height: 26px; flex-shrink: 0; }
.store-badge.alt { background: #fff; color: var(--primary); border: 1px solid var(--border); }

.hero-trust {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; color: var(--text-muted);
}
.stars { color: #fbbf24; letter-spacing: 1px; }

/* Phone mockup */
.phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.phone {
  position: relative;
  width: 300px;
  height: 600px;
  background: linear-gradient(180deg, #0f172a, #1e293b);
  border-radius: 44px;
  padding: 14px;
  box-shadow:
    0 50px 100px rgba(15,23,42,.25),
    0 0 0 4px #0f172a,
    inset 0 0 0 2px rgba(255,255,255,.06);
  transform: rotate(-2deg);
}
.phone::before {
  content: '';
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 24px;
  background: #0f172a;
  border-radius: 999px;
  z-index: 3;
}
.phone-screen {
  width: 100%; height: 100%;
  background: linear-gradient(180deg, #fff, #f8fafc);
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.phone-statusbar {
  height: 50px;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0 28px 6px;
  font-size: 12px; font-weight: 700; color: var(--primary);
}
.phone-content {
  flex: 1; padding: 16px;
  display: flex; flex-direction: column; gap: 14px;
}
.phone-card {
  background: #fff;
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  flex: 1;
  display: flex; flex-direction: column;
}
.phone-card .logo {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  margin-bottom: 12px;
}
.phone-card h3 { font-size: 16px; color: var(--primary); margin-bottom: 4px; letter-spacing: -.01em; }
.phone-card .company { font-size: 13px; color: var(--text-soft); margin-bottom: 12px; }
.phone-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.phone-card .tag {
  font-size: 11px; padding: 4px 10px;
  background: var(--bg-muted); border-radius: 999px; color: var(--text-soft);
}
.phone-card .desc { font-size: 12px; color: var(--text-soft); line-height: 1.5; flex: 1; }
.phone-actions {
  display: flex; justify-content: space-around; padding: 8px 0;
}
.phone-action {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 22px;
  box-shadow: var(--shadow-sm);
}
.phone-action.no { background: #fff; color: #ef4444; border: 1px solid var(--border); }
.phone-action.yes { background: var(--accent); color: #fff; }

/* ===== Sections ===== */
.section { padding: 100px 0; }
.section-soft { background: var(--bg-soft); }
.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}
.section-eyebrow {
  font-size: 14px; font-weight: 700;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 12px;
}
.section h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--primary);
  line-height: 1.15;
  margin-bottom: 16px;
}
.section .sub {
  font-size: 1.1rem;
  color: var(--text-soft);
}

/* ===== Features cards ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: transform .3s var(--transition), box-shadow .3s var(--transition), border-color .3s var(--transition);
}
.feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(34,197,94,.4);
}
.feature .icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(30,58,95,.08), rgba(34,197,94,.10));
  display: grid; place-items: center;
  font-size: 28px;
  margin-bottom: 20px;
}
.feature h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  letter-spacing: -.01em;
}
.feature p { color: var(--text-soft); }

/* ===== Steps ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
}
.step {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  border: 1px solid var(--border);
  position: relative;
}
.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 22px; font-weight: 800;
  display: grid; place-items: center;
  margin: 0 auto 18px;
  box-shadow: 0 0 0 6px rgba(30,58,95,.08);
}
.step:nth-child(2) .step-num { background: var(--accent); box-shadow: 0 0 0 6px rgba(34,197,94,.12); }
.step h3 { color: var(--primary); margin-bottom: 8px; font-size: 1.2rem; }
.step p { color: var(--text-soft); }

/* ===== Testimonials ===== */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonial {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.testimonial .stars { font-size: 16px; margin-bottom: 14px; }
.testimonial p {
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 22px;
}
.testimonial .author {
  display: flex; align-items: center; gap: 14px;
}
.avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 700;
  display: grid; place-items: center;
  font-size: 18px;
}
.author-info strong { display: block; color: var(--primary); font-size: 15px; }
.author-info span { color: var(--text-muted); font-size: 13px; }

/* ===== Download CTA ===== */
.download {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.download::before, .download::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
}
.download::before { width: 360px; height: 360px; background: var(--accent); top: -100px; left: -80px; }
.download::after { width: 320px; height: 320px; background: #60a5fa; bottom: -100px; right: -80px; }
.download > * { position: relative; z-index: 1; }
.download h2 { color: #fff; font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 16px; }
.download p { color: rgba(255,255,255,.85); font-size: 1.15rem; margin-bottom: 32px; max-width: 560px; margin-left: auto; margin-right: auto; }
.download .hero-cta { justify-content: center; }
.download .store-badge { background: #fff; color: var(--primary); }
.download .store-badge.alt { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.25); }

/* ===== Footer ===== */
.site-footer {
  background: #0b1828;
  color: #94a3b8;
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .brand { color: #fff; }
.footer-brand p { margin-top: 14px; max-width: 280px; font-size: 14px; }
.footer-col h4 {
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 18px;
  font-weight: 700;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: #94a3b8; font-size: 15px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px;
  font-size: 13px; color: #64748b;
  flex-wrap: wrap; gap: 12px;
}

/* ===== Legal / content pages ===== */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 80px 0 60px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 12px;
}
.page-hero p { color: rgba(255,255,255,.8); font-size: 1.05rem; }
.legal-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}
.legal-content .updated {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.legal-content h2 {
  color: var(--primary);
  font-size: 1.4rem;
  margin: 36px 0 14px;
  letter-spacing: -.01em;
}
.legal-content h3 {
  color: var(--primary);
  font-size: 1.1rem;
  margin: 24px 0 10px;
}
.legal-content p,
.legal-content li {
  color: var(--text-soft);
  margin-bottom: 12px;
  line-height: 1.75;
}
.legal-content ul, .legal-content ol { padding-left: 22px; margin-bottom: 16px; }
.legal-content strong { color: var(--text); }
.legal-content code {
  background: var(--bg-muted);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 13px;
  font-family: 'SF Mono', Menlo, monospace;
}
.legal-content .info-box {
  background: var(--bg-soft);
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
  border-radius: 10px;
  margin: 24px 0;
}

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--transition), transform .7s var(--transition);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 50px; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-trust { justify-content: center; }
  .features-grid, .steps, .testimonials { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 70px 0; }
  .nav-links {
    position: fixed;
    inset: 72px 0 auto 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 12px 24px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-110%);
    transition: transform .3s var(--transition);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav-links li:last-child a { border-bottom: 0; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .download { padding: 60px 24px; border-radius: var(--radius); }
  .phone { transform: rotate(0deg) scale(.9); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
