/* ============================================
   WorkAIge — Light Editorial Theme
   Style: Magazine/Editorial, Warm Cream Base
   ============================================ */

:root {
  --cream: #F7F4EF;
  --cream-dark: #EDE9E1;
  --ink: #1A1410;
  --ink-muted: #5C5248;
  --ink-faint: #9C948C;
  --blue: #2563EB;
  --blue-light: #EFF4FF;
  --blue-mid: #BFCFFF;
  --violet: #7C3AED;
  --violet-light: #F3EEFF;
  --orange: #F59E0B;
  --green: #059669;
  --white: #FFFFFF;

  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 4px rgba(26,20,16,.06), 0 2px 12px rgba(26,20,16,.05);
  --shadow-md: 0 4px 16px rgba(26,20,16,.08), 0 1px 4px rgba(26,20,16,.06);
  --shadow-lg: 0 12px 40px rgba(26,20,16,.12), 0 2px 8px rgba(26,20,16,.06);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ===== UTILITY ===== */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn--primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn--primary:hover {
  background: #1D4ED8;
  border-color: #1D4ED8;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,99,235,.3);
}
.btn--ghost {
  background: transparent;
  color: var(--ink-muted);
  border-color: transparent;
}
.btn--ghost:hover { color: var(--blue); }
.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--cream-dark);
  border-width: 2px;
}
.btn--outline:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}
.btn--lg { font-size: 16px; padding: 13px 26px; border-radius: var(--radius-md); }

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247,244,239,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(26,20,16,.08);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 32px;
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.nav__logo span { color: var(--blue); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}
.nav__links li a {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}
.nav__links li a:hover { color: var(--ink); background: var(--cream-dark); }
.nav__badge {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav__badge span {
  font-size: 10px;
  font-weight: 600;
  background: var(--violet);
  color: #fff;
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.nav__hamburger { display: none; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 100px 32px 80px;
  overflow: hidden;
}

.hero__bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: -2;
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  z-index: -1;
  pointer-events: none;
}
.hero__blob--1 {
  width: 500px;
  height: 500px;
  background: var(--blue);
  top: -120px;
  right: -80px;
  animation: blobFloat 8s ease-in-out infinite alternate;
}
.hero__blob--2 {
  width: 360px;
  height: 360px;
  background: var(--violet);
  bottom: 40px;
  left: -60px;
  animation: blobFloat 10s ease-in-out infinite alternate-reverse;
}
@keyframes blobFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(20px, 30px) scale(1.06); }
}

.hero__inner { display: flex; flex-direction: column; gap: 28px; }

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--blue);
  background: var(--blue-light);
  padding: 7px 16px;
  border-radius: 100px;
  border: 1px solid var(--blue-mid);
  width: fit-content;
  letter-spacing: 0.3px;
}
.label__dot {
  width: 7px;
  height: 7px;
  background: var(--blue);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero__h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -2px;
  color: var(--ink);
}
.hero__h1 em {
  font-style: normal;
  position: relative;
  display: inline-block;
}
.hero__h1 em::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 2px;
  height: 6px;
  background: linear-gradient(90deg, var(--orange), #FB923C);
  border-radius: 4px;
  opacity: 0.7;
  z-index: -1;
}
.hero__h1--gradient {
  background: linear-gradient(135deg, var(--blue) 30%, var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-size: 17px;
  color: var(--ink-muted);
  font-weight: 300;
  line-height: 1.7;
  max-width: 480px;
}

.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 8px;
  border-top: 1px solid var(--cream-dark);
}
.stat { display: flex; flex-direction: column; }
.stat strong {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}
.stat span {
  font-size: 12px;
  color: var(--ink-faint);
  font-weight: 400;
  margin-top: 2px;
}
.stat__sep { width: 1px; height: 36px; background: var(--cream-dark); }

/* HERO VISUAL */
.hero__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: heroSlideIn 0.8s cubic-bezier(.22,1,.36,1) both;
}
@keyframes heroSlideIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(26,20,16,.06);
}
.hero__card--main {}
.hero__card--sm {
  padding: 18px 22px;
  border-radius: var(--radius-md);
}

.card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.card__icon { font-size: 28px; flex-shrink: 0; }
.card__title { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.card__sub { font-size: 12px; color: var(--ink-faint); }
.badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}
.badge--live { background: #D1FAE5; color: #065F46; }

.card__bar {
  background: var(--cream-dark);
  border-radius: 20px;
  height: 8px;
  overflow: hidden;
  margin-bottom: 10px;
}
.card__bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--violet));
  border-radius: 20px;
  animation: barGrow 1.4s cubic-bezier(.22,1,.36,1) 0.4s both;
}
@keyframes barGrow {
  from { width: 0 !important; }
}
.card__meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-muted);
}
.card__meta strong { font-weight: 600; color: var(--ink); }

.card__sm-label { font-size: 12px; color: var(--ink-faint); margin-bottom: 6px; }
.card__sm-val {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}
.up { font-size: 14px; color: var(--green); font-weight: 500; font-family: var(--font-body); }
.pill {
  font-size: 12px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: #fff;
  padding: 3px 10px;
  border-radius: 20px;
  font-family: var(--font-body);
  font-weight: 500;
}

.hero__card--sm1 { align-self: flex-start; width: 220px; }
.hero__card--sm2 { align-self: flex-end; width: 220px; }

/* ===== SECTION COMMONS ===== */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.section-h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--ink);
  line-height: 1.1;
}
.section-h2 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.22,1,.36,1);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ===== OUTILS ===== */
.outils {
  padding: 100px 0;
  background: var(--white);
  border-top: 1px solid var(--cream-dark);
  border-bottom: 1px solid var(--cream-dark);
}

.outils__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tool-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1.5px solid var(--cream-dark);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37,99,235,.2);
}

.tool-card--featured {
  background: var(--blue-light);
  border-color: var(--blue);
  border-width: 2px;
  box-shadow: 0 0 0 4px rgba(37,99,235,.08);
}
.tool-card--featured .tool-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-mid);
  padding: 4px 10px;
  border-radius: 20px;
  width: fit-content;
}
.tool-card--featured:hover {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37,99,235,.12), var(--shadow-lg);
}
.tool-card--featured .tool-card__chips span {
  background: rgba(37,99,235,.12);
  color: var(--blue);
}

.tool-card__icon { font-size: 32px; }
.tool-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.5px;
}
.tool-card p {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.65;
  flex: 1;
}


.tool-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tool-card__chips span {
  font-size: 12px;
  font-weight: 500;
  background: rgba(37,99,235,.1);
  color: var(--blue);
  padding: 4px 10px;
  border-radius: 20px;
}
.tool-card--featured .tool-card__chips span {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.8);
}

.status {
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
  width: fit-content;
}
.status--live { color: var(--green); }
.status--soon { color: var(--ink-faint); }

/* ===== POURQUOI ===== */
.pourquoi { padding: 100px 0; }

.pourquoi__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pourquoi__card {
  padding: 40px 32px;
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--cream-dark);
  position: relative;
  transition: all 0.25s ease;
}
.pourquoi__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37,99,235,.15);
}
.pourquoi__num {
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 800;
  color: var(--cream-dark);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -4px;
}
.pourquoi__card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.pourquoi__card p { font-size: 14px; color: var(--ink-muted); line-height: 1.7; }

/* ===== COMMENT ÇA MARCHE ===== */
.how {
  padding: 100px 0;
  background: var(--white);
  border-top: 1px solid var(--cream-dark);
}

.how__steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: start;
  margin-bottom: 64px;
}

.how__step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.how__step-num {
  font-family: var(--font-display);
  font-size: 96px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -5px;
  color: var(--cream-dark);
  position: absolute;
  top: -28px;
  left: -8px;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.how__step-body {
  background: var(--cream);
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-xl);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 1;
  transition: all 0.25s ease;
}
.how__step-body:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37,99,235,.2);
}

.how__step:nth-child(1) .how__step-body { border-top: 3px solid var(--blue); }
.how__step:nth-child(3) .how__step-body { border-top: 3px solid var(--violet); }
.how__step:nth-child(5) .how__step-body { border-top: 3px solid var(--green); }

.how__step-icon { font-size: 36px; }

.how__step-body h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.4px;
}

.how__step-body p {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.7;
}

.how__step-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-light);
  border: 1px solid var(--blue-mid);
  padding: 5px 12px;
  border-radius: 20px;
  width: fit-content;
}
.how__step-tag::before {
  content: '✓';
  font-size: 11px;
}

.how__connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  padding-top: 88px;
  gap: 4px;
}
.how__connector-line {
  width: 1px;
  height: 20px;
  background: var(--cream-dark);
}
.how__connector-arrow {
  font-size: 20px;
  color: var(--ink-faint);
  line-height: 1;
  animation: arrowPulse 1.8s ease-in-out infinite;
}
@keyframes arrowPulse {
  0%, 100% { transform: translateX(0); opacity: 0.4; }
  50%       { transform: translateX(4px); opacity: 1; }
}

.how__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.how__cta-note {
  font-size: 13px;
  color: var(--ink-faint);
}

/* ===== FOOTER ===== */
.footer {
  padding: 64px 0 32px;
  background: var(--cream);
  border-top: 1px solid var(--cream-dark);
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--cream-dark);
  margin-bottom: 32px;
}
.footer__brand p {
  font-size: 14px;
  color: var(--ink-muted);
  margin-top: 12px;
  max-width: 240px;
  line-height: 1.6;
}
.footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer__col h4 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 16px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col ul a {
  font-size: 14px;
  color: var(--ink-muted);
  transition: color 0.15s;
}
.footer__col ul a:hover { color: var(--blue); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-faint);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .outils__grid {
    grid-template-columns: 1fr 1fr;
  }
  .tool-card--featured { grid-row: span 1; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero__visual { display: none; }
}

@media (max-width: 768px) {
  .nav__links, .nav__actions { display: none; }
  .nav__hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
  }
  .nav__hamburger span {
    width: 24px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
  }

  .hero { padding: 80px 24px 60px; }
  .hero__ctas { flex-direction: column; }

  .outils__grid { grid-template-columns: 1fr; }
  .pourquoi__grid { grid-template-columns: 1fr; }

  .how__steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .how__connector { display: none; }
  .how__step-num { font-size: 64px; top: -18px; }

  .newsletter__inner {
    grid-template-columns: 1fr;
    padding: 40px 28px;
    gap: 32px;
  }
  .form__row { flex-direction: column; }

  .footer__top { grid-template-columns: 1fr; gap: 40px; }
  .footer__links { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; gap: 8px; }

  .container { padding: 0 20px; }
  .outils, .pourquoi { padding: 60px 0; }
}
