﻿/* ============================================
   JOBOTOP — Global CSS
   SaaS ATS · Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 400;
  color: #495057;
  background: #F8F9FA;
  line-height: 1.65;
}

/* ---- Color Tokens ---- */
:root {
  --navy:   #0A1F3D;
  --navy2:  #0D2952;
  --navy3:  #132C52;
  --orange: #F4A62C;
  --orange2:#E09420;
  --ivory:  #F9F7F4;

  --n50:  #F8F9FA;
  --n100: #F1F3F5;
  --n200: #E9ECEF;
  --n300: #DEE2E6;
  --n400: #CED4DA;
  --n500: #ADB5BD;
  --n600: #6C757D;
  --n700: #495057;
  --n800: #343A40;
  --n900: #212529;

  --success: #059669;
  --danger:  #DC2626;
  --info:    #2563EB;
  --warning: #D97706;
  --violet:  #7C3AED;

  --shadow-sm:  0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:  0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg:  0 4px 24px rgba(0,0,0,0.10);
  --shadow-xl:  0 8px 40px rgba(0,0,0,0.13);
  --shadow-accent: 0 4px 16px rgba(244,166,44,0.30);
  --shadow-navy:   0 8px 40px rgba(10,31,61,0.20);

  --radius-sm:  4px;
  --radius-md:  6px;
  --radius-lg:  8px;
  --radius-xl:  12px;
  --radius-2xl: 20px;
  --radius-pill: 999px;

  --max-w: 1200px;
  --px-desk: 48px;
  --px-mob:  16px;
}

/* ---- Typography Scale ---- */
.display-xl { font-size: 60px; font-weight: 800; letter-spacing: -2px; line-height: 1.05; }
.display    { font-size: 48px; font-weight: 700; letter-spacing: -1.5px; line-height: 1.1; }
.h1 { font-size: 36px; font-weight: 700; letter-spacing: -1px; line-height: 1.15; }
.h2 { font-size: 36px; font-weight: 700; letter-spacing: -1px; line-height: 1.2; }
.h3 { font-size: 26px; font-weight: 600; letter-spacing: -0.5px; line-height: 1.3; }
.h4 { font-size: 20px; font-weight: 600; letter-spacing: -0.3px; line-height: 1.35; }
.h5 { font-size: 17px; font-weight: 600; line-height: 1.4; }
.body-lg { font-size: 18px; line-height: 1.75; }
.body    { font-size: 16px; line-height: 1.65; }
.body-sm { font-size: 14px; line-height: 1.6; }
.caption { font-size: 12px; font-weight: 500; letter-spacing: 0.03em; }
.label-ui { font-size: 11px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; }
.price { font-size: 48px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---- Layout ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px-desk);
}

.section { padding: 96px 0; }
.section-md { padding: 80px 0; }
.section-sm { padding: 64px 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-weight: 600;
  font-size: 13.5px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease, color 0.12s ease;
  white-space: nowrap;
}

.btn-sm  { padding: 6px 14px; font-size: 12px; }
.btn-md  { padding: 9px 20px; font-size: 13.5px; }
.btn-lg  { padding: 12px 28px; font-size: 15px; font-weight: 700; }
.btn-xl  { padding: 14px 32px; font-size: 15px; font-weight: 700; }

.btn-primary {
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.btn-primary:hover { background: var(--navy2); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-accent {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 2px 8px rgba(244,166,44,0.3), 0 1px 2px rgba(244,166,44,0.2);
  position: relative;
  overflow: hidden;
}
.btn-accent::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.btn-accent:hover {
  background: var(--orange2);
  box-shadow: 0 4px 20px rgba(244,166,44,0.45), 0 2px 6px rgba(244,166,44,0.25);
  transform: translateY(-1px);
}
.btn-accent:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--n700);
  border: 1px solid var(--n200);
}
.btn-ghost:hover { background: var(--n100); }

.btn-ghost-white {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-ghost-white:hover { background: rgba(255,255,255,0.08); }

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-outline-navy:hover { background: rgba(10,31,61,0.05); }

.btn-full { width: 100%; justify-content: center; }

/* ---- Badges / Pills ---- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge-navy  { background: rgba(10,31,61,0.08); color: var(--navy); }
.badge-orange { background: rgba(244,166,44,0.15); color: #B97800; }
.badge-green  { background: rgba(5,150,105,0.10); color: #047857; }
.badge-pill   { border-radius: var(--radius-pill); }

.pill-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.pill-orange {
  background: rgba(244,166,44,0.15);
  color: var(--orange);
}
.pill-navy {
  background: rgba(255,255,255,0.10);
  color: var(--orange);
  border: 1px solid rgba(244,166,44,0.3);
}

/* ---- Status Dots ---- */
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-nouveau    { background: #2563EB; }
.dot-en-cours   { background: #D97706; }
.dot-entretien  { background: #7C3AED; }
.dot-offre      { background: #059669; }
.dot-place      { background: #059669; }
.dot-refuse     { background: #DC2626; }

/* ---- Cards ---- */
.card {
  background: #fff;
  border: 1px solid var(--n200);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.card:hover {
  border-color: var(--n300);
  box-shadow: var(--shadow-md);
}
.card-accent {
  border-left: 3px solid var(--orange);
}

/* ---- Score Bar ---- */
.score-bar {
  display: flex;
  align-items: center;
  gap: 6px;
}
.score-track {
  width: 52px;
  height: 3px;
  background: var(--n200);
  border-radius: 3px;
  overflow: hidden;
}
.score-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}
.score-fill.high { background: var(--success); }
.score-fill.mid  { background: var(--warning); }
.score-fill.low  { background: var(--n500); }
.score-label { font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--n700); }

/* ---- Avatar Navy ---- */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
  font-size: 13px;
  width: 36px;
  height: 36px;
}
.avatar-sm { width: 28px; height: 28px; font-size: 10px; }
.avatar-lg { width: 48px; height: 48px; font-size: 16px; }
.av1 { background: #0A1F3D; }
.av2 { background: #153154; }
.av3 { background: #1C3D66; }
.av4 { background: #234A78; }
.av5 { background: #2A5789; }

/* ---- Section label pill (centered) ---- */
.section-label {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

/* ---- Testimonial ---- */
.testimonial {
  background: var(--n50);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.testimonial blockquote {
  font-size: 16px;
  font-style: italic;
  color: var(--n700);
  line-height: 1.7;
  margin-bottom: 16px;
}
.testimonial .author { font-size: 13px; font-weight: 600; color: var(--n900); }
.testimonial .role   { font-size: 12px; color: var(--n500); margin-top: 2px; }

/* ---- Accordion ---- */
.accordion-item {
  border-bottom: 1px solid var(--n200);
}
.accordion-item:first-child { border-top: 1px solid var(--n200); }
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--n900);
  cursor: pointer;
  text-align: left;
  gap: 16px;
}
.accordion-trigger:hover { color: var(--navy); }
.accordion-chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--n500);
  transition: transform 0.2s ease;
}
.accordion-item.open .accordion-chevron { transform: rotate(180deg); }
.accordion-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease, opacity 0.2s ease;
  opacity: 0;
}
.accordion-item.open .accordion-body {
  max-height: 400px;
  opacity: 1;
}
.accordion-body p {
  padding-bottom: 20px;
  font-size: 15px;
  color: var(--n600);
  line-height: 1.7;
}

/* ---- Screenshot Frame ---- */
.screenshot-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 16px 64px rgba(10,31,61,0.18);
  border: 1px solid var(--n200);
}
.screenshot-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #F1F3F5;
  border-bottom: 1px solid var(--n200);
}
.browser-dot { width: 10px; height: 10px; border-radius: 50%; }
.browser-dot.red    { background: #FF5F57; }
.browser-dot.yellow { background: #FEBC2E; }
.browser-dot.green  { background: #28C840; }
.browser-url {
  margin-left: 10px;
  background: #fff;
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 11px;
  color: var(--n500);
  flex: 1;
  max-width: 200px;
  border: 1px solid var(--n200);
}
.screenshot-content {
  background: var(--n50);
  padding: 0;
  overflow: hidden;
}

/* ---- Process Steps ---- */
.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

/* ---- Feature Card ---- */
.feature-card {
  background: #fff;
  border: 1px solid var(--n200);
  border-radius: var(--radius-xl);
  padding: 28px;
  border-left: 3px solid var(--orange);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.feature-card:hover {
  border-color: var(--n300);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  background: rgba(10,31,61,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

/* ---- Grid Utilities ---- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ---- Divider ---- */
.divider { border: none; border-top: 1px solid var(--n200); }

/* ---- Text Utilities ---- */
.text-navy    { color: var(--navy); }
.text-orange  { color: var(--orange); }
.text-n500    { color: var(--n500); }
.text-n600    { color: var(--n600); }
.text-n700    { color: var(--n700); }
.text-n900    { color: var(--n900); }
.text-white   { color: #fff; }
.text-center  { text-align: center; }
.text-wrap-pretty { text-wrap: pretty; }

.bg-white  { background: #fff; }
.bg-n50    { background: var(--n50); }
.bg-n100   { background: var(--n100); }
.bg-ivory  { background: var(--ivory); }
.bg-navy   { background: var(--navy); }

/* ---- Focus visible ---- */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 3px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---- Check list item ---- */
.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--n700);
  line-height: 1.5;
}
.check-list li svg { flex-shrink: 0; margin-top: 1px; }
.check-list.white li { color: rgba(255,255,255,0.80); }
.check-list.white li svg { color: var(--orange); }

/* ---- KPI Counter ---- */
.kpi-block {
  text-align: center;
  padding: 32px 16px;
}
.kpi-number {
  font-size: 52px;
  font-weight: 800;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  letter-spacing: -2px;
  line-height: 1;
}
.kpi-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--n800);
  margin-top: 8px;
}
.kpi-sub {
  font-size: 13px;
  color: var(--n600);
  margin-top: 4px;
}

/* ---- Reduced motion — handled per-component in components.css ---- */

/* ============ RESPONSIVE ============ */
@media (max-width: 1023px) {
  .container { padding: 0 24px; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 639px) {
  :root { --px-desk: 16px; }
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .section-md { padding: 56px 0; }
  .section-sm { padding: 40px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .display-xl { font-size: 40px; letter-spacing: -1.5px; }
  .display    { font-size: 32px; }
  .h1, .h2    { font-size: 28px; }
  .h3         { font-size: 22px; }
  .kpi-number { font-size: 40px; }
  .price      { font-size: 40px; }
}
