/*!
 * TalentLinker — Design system "Recrutement IA, Data & Cloud"
 * Light, airy palette (no black blocks) — tokens, header, hero, cards, CTA, footer, motion.
 */

:root {
  /* Backgrounds (alternate gently between these three — never a different color per section) */
  --tl-bg: #FCFCFD;
  --tl-bg-soft: #F5F7FB;
  --tl-bg-blue: #EEF4FF;
  --tl-surface: #FFFFFF;

  /* Text */
  --tl-ink: #182033;
  --tl-ink-soft: #657087;

  /* Accent — blue does the work, violet is a light secondary touch (icons only) */
  --tl-accent: #356AE6;
  --tl-accent-ink: #2858C7; /* accent hover/active */
  --tl-violet: #7765E3;

  --tl-border: #E2E7F0;

  /* Motion */
  --tl-fast: 200ms;
  --tl-header: 220ms;
  --tl-reveal: 500ms;

  --tl-container: 1120px;
  --tl-radius: 8px;
  --tl-shadow: 0 14px 32px -22px rgba(24, 32, 51, .14);
}

/* ===== Base ===== */
.tl-page { font-family: Roboto, 'Segoe UI', system-ui, sans-serif; color: var(--tl-ink); background: var(--tl-bg); }
.tl-page * { box-sizing: border-box; }
.tl-page p { font-size: 16px; line-height: 1.65; color: var(--tl-ink-soft); }
.tl-page h1, .tl-page h2, .tl-page h3 { font-family: Tahoma, 'Segoe UI', sans-serif; color: var(--tl-ink); text-wrap: balance; font-weight: 700; }
.tl-page a { text-decoration: none; }
.tl-page :focus-visible {
  outline: 2px solid var(--tl-accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.tl-container { max-width: var(--tl-container); margin: 0 auto; padding: 0 24px; }
.tl-section { padding: 64px 0; }
.tl-section-head { max-width: 620px; margin: 0 0 36px; }
.tl-eyebrow {
  display: inline-block;
  font: 700 11.5px/1 'Roboto', sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tl-accent);
  margin-bottom: 12px;
}
.tl-section-head h2 { font-size: 25px; line-height: 1.3; margin: 0 0 10px; }
.tl-section-head p { margin: 0; }

@media (max-width: 767px) {
  .tl-section { padding: 40px 0; }
  .tl-container { padding: 0 18px; }
  .tl-section-head h2 { font-size: 21px; }
}

/* ===== Reveal-on-scroll (native IntersectionObserver, capped per design spec) ===== */
.tl-page [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--tl-reveal) ease, transform var(--tl-reveal) ease;
  transition-delay: var(--tl-reveal-delay, 0ms);
}
.tl-page [data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .tl-page [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .tl-page * { animation: none !important; }
}

/* ===== Primary CTA — "Je recrute" (single CTA style, used everywhere) ===== */
.tl-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--tl-accent);
  color: #FFFFFF !important;
  border: 1px solid var(--tl-accent);
  border-radius: var(--tl-radius);
  padding: 14px 28px;
  font: 600 15px/1 'Roboto', sans-serif;
  letter-spacing: .01em;
  cursor: pointer;
  min-height: 44px;
  transition: transform var(--tl-fast) ease, background var(--tl-fast) ease, border-color var(--tl-fast) ease, box-shadow var(--tl-fast) ease;
  box-shadow: 0 1px 2px rgba(24, 32, 51, .06);
}
.tl-cta:hover, .tl-cta:focus-visible {
  color: #fff !important;
  background: var(--tl-accent-ink);
  border-color: var(--tl-accent-ink);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -6px rgba(53, 106, 230, .4);
}
.tl-cta:active { transform: translateY(0); }
.tl-cta svg { width: 15px; height: 15px; flex: none; }

/* Secondary CTA — "Prendre RDV". Same shape/motion as .tl-cta, outline instead of filled,
   so it reads as a second option next to the primary "Je recrute" action, not a competing one. */
.tl-cta-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--tl-accent) !important;
  border: 1px solid var(--tl-accent);
  border-radius: var(--tl-radius);
  padding: 13px 27px;
  font: 600 15px/1 'Roboto', sans-serif;
  letter-spacing: .01em;
  cursor: pointer;
  min-height: 44px;
  transition: transform var(--tl-fast) ease, background var(--tl-fast) ease, color var(--tl-fast) ease;
}
.tl-cta-outline:hover, .tl-cta-outline:focus-visible {
  background: var(--tl-bg-blue);
  color: var(--tl-accent-ink) !important;
  border-color: var(--tl-accent-ink);
  transform: translateY(-2px);
}
.tl-cta-outline:active { transform: translateY(0); }
.tl-cta-outline svg { width: 15px; height: 15px; flex: none; }

/* Secondary text links (navigation / editorial) — explicitly NOT buttons */
.tl-link {
  color: var(--tl-ink);
  border-bottom: 1px solid var(--tl-border);
  padding-bottom: 1px;
  font-weight: 500;
  transition: color var(--tl-fast) ease, border-color var(--tl-fast) ease;
}
.tl-link:hover { color: var(--tl-accent); border-color: var(--tl-accent); }

/* ===== Header ===== */
.tl-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(6px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--tl-header) ease, border-color var(--tl-header) ease;
}
.tl-header.is-scrolled {
  border-color: var(--tl-border);
  box-shadow: 0 6px 18px -16px rgba(24, 32, 51, .16);
}
.tl-header-inner {
  max-width: var(--tl-container);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.tl-logo { display: flex; align-items: center; gap: 9px; }
.tl-logo img { height: 26px; width: 35px; object-fit: contain; object-position: left center; display: block; }
.tl-logo-text { font: 700 18px/1 Tahoma, 'Segoe UI', sans-serif; color: var(--tl-ink); letter-spacing: -.2px; }
.tl-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tl-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--tl-ink);
  transition: color var(--tl-fast) ease;
}
.tl-nav a:hover { color: var(--tl-accent); }
.tl-header-actions { display: flex; align-items: center; gap: 18px; }
.tl-burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: none; border: 1px solid var(--tl-border); border-radius: 6px;
  cursor: pointer;
}
.tl-burger span, .tl-burger::before, .tl-burger::after {
  content: ''; display: block; width: 18px; height: 2px; background: var(--tl-ink);
  position: relative; transition: transform var(--tl-fast) ease, opacity var(--tl-fast) ease;
}
.tl-burger::before { position: absolute; transform: translateY(-6px); }
.tl-burger::after { position: absolute; transform: translateY(6px); }
.tl-header.nav-open .tl-burger span { opacity: 0; }
.tl-header.nav-open .tl-burger::before { transform: translateY(0) rotate(45deg); }
.tl-header.nav-open .tl-burger::after { transform: translateY(0) rotate(-45deg); }

@media (max-width: 900px) {
  .tl-nav { display: none; }
  .tl-burger { display: flex; }
  .tl-header-inner { flex-wrap: wrap; }
  .tl-header .tl-cta-header { display: none; }
  .tl-mobile-panel {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--tl-header) ease;
  }
  .tl-header.nav-open .tl-mobile-panel { max-height: 420px; }
  .tl-mobile-panel ul { list-style: none; margin: 0; padding: 14px 0 6px; display: flex; flex-direction: column; gap: 14px; }
  .tl-mobile-panel a { font-size: 15px; color: var(--tl-ink); font-weight: 600; }
  .tl-mobile-panel .tl-cta, .tl-mobile-panel .tl-cta-outline { width: 100%; margin-top: 6px; }
}
@media (min-width: 901px) {
  .tl-mobile-panel { display: none; }
}

/* ===== Hero — light, almost-invisible radial gradient ===== */
.tl-hero {
  padding: 84px 0 60px;
  background:
    radial-gradient(circle at 80% 20%, #E8EEFF 0, transparent 38%),
    radial-gradient(circle at 15% 80%, #F0EAFF 0, transparent 35%),
    var(--tl-bg);
}
.tl-hero-inner { max-width: 700px; }
.tl-hero .tl-eyebrow { display: block; }
.tl-hero h1 {
  font-size: 42px;
  line-height: 1.16;
  letter-spacing: -.4px;
  margin: 0 0 20px;
}
.tl-hero p.lead {
  font-size: 17px;
  max-width: 58ch;
  margin: 0 0 30px;
}
.tl-hero-stats {
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--tl-ink-soft);
  font-variant-numeric: tabular-nums;
}
.tl-hero-stats strong { color: var(--tl-ink); font-weight: 700; }
.tl-hero-stats .sep { margin: 0 10px; color: var(--tl-border); }

@media (max-width: 767px) {
  .tl-hero { padding: 40px 0 32px; }
  .tl-hero h1 { font-size: 27px; line-height: 1.28; }
  .tl-hero p.lead { font-size: 15px; }
  .tl-hero .tl-cta { width: 100%; }
}

/* ===== Expertise cards — compact grid ===== */
.tl-expertise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .tl-expertise-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .tl-expertise-grid { grid-template-columns: 1fr; } }
.tl-expertise-card {
  padding: 24px 22px;
  background: var(--tl-surface);
  border: 1px solid var(--tl-border);
  border-radius: 10px;
  box-shadow: var(--tl-shadow);
  transition: transform var(--tl-header) ease, border-color var(--tl-header) ease;
}
.tl-expertise-card:hover { transform: translateY(-4px); border-color: var(--tl-accent); }
.tl-expertise-card .ic {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  color: var(--tl-accent);
  margin-bottom: 14px;
}
.tl-expertise-card:nth-child(3n+2) .ic,
.tl-expertise-card:nth-child(3n+3) .ic { color: var(--tl-violet); }
.tl-expertise-card .ic svg { width: 22px; height: 22px; }
.tl-expertise-card h3 { font-size: 15.5px; margin: 0 0 6px; }
.tl-expertise-card p { font-size: 13.5px; margin: 0 0 10px; }
.tl-expertise-card .roles { font-size: 12px; color: var(--tl-ink-soft); margin: 0; line-height: 1.6; }

/* ===== Méthode ===== */
.tl-method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 40px; }
@media (max-width: 900px) { .tl-method-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tl-method-grid { grid-template-columns: 1fr; } }
.tl-method-step {
  position: relative;
  padding: 24px 20px;
  background: var(--tl-surface);
  border: 1px solid var(--tl-border);
  border-radius: 10px;
  box-shadow: var(--tl-shadow);
  transition: transform var(--tl-header) ease, border-color var(--tl-header) ease;
}
.tl-method-step:hover { transform: translateY(-4px); border-color: var(--tl-accent); }
.tl-method-step .step-n {
  font: 700 18px/1 Tahoma, sans-serif;
  color: var(--tl-accent);
  margin-bottom: 10px; display: block;
}
.tl-method-step h3 { font-size: 14.5px; margin: 0 0 6px; }
.tl-method-step p { font-size: 13px; margin: 0; }
.tl-method-cta { text-align: center; }

/* ===== Résultats ===== */
.tl-results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 767px) { .tl-results-grid { grid-template-columns: 1fr; } }
.tl-result-card {
  text-align: center;
  padding: 30px 20px;
  background: var(--tl-surface);
  border: 1px solid var(--tl-border);
  border-radius: 10px;
  box-shadow: var(--tl-shadow);
}
.tl-result-card .num {
  font: 700 34px/1 Tahoma, sans-serif;
  color: var(--tl-accent);
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}
.tl-result-card .label { font-size: 13.5px; color: var(--tl-ink-soft); }
.tl-results-note { text-align: center; font-size: 12.5px; color: var(--tl-ink-soft); margin: 18px 0 0; font-style: italic; }

/* ===== Ressources (used on the Blog listing page) ===== */
.tl-resources-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 860px) { .tl-resources-grid { grid-template-columns: 1fr; } }
.tl-resource-card { display: block; }
.tl-resource-card .thumb {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 14px;
  aspect-ratio: 16/10;
  background: var(--tl-bg-blue);
  border: 1px solid var(--tl-border);
}
.tl-resource-card .thumb svg { width: 100%; height: 100%; }
.tl-resource-card .tag { font: 700 11px/1 'Roboto', sans-serif; letter-spacing: .07em; text-transform: uppercase; color: var(--tl-accent); margin-bottom: 8px; display: block; }
.tl-resource-card h3 { font-size: 16px; line-height: 1.4; margin: 0 0 8px; transition: color var(--tl-fast) ease; }
.tl-resource-card:hover h3 { color: var(--tl-accent); }
.tl-resource-card p { font-size: 13.5px; margin: 0; }

/* ===== Final CTA — light gradient panel, no black ===== */
.tl-final-cta {
  text-align: center;
  padding: 64px 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, #EEF4FF, #F3EFFF);
  border: 1px solid var(--tl-border);
  color: var(--tl-ink);
}
.tl-final-cta h2 { color: var(--tl-ink); font-size: 24px; margin: 0 0 10px; }
.tl-final-cta p { color: var(--tl-ink-soft); max-width: 52ch; margin: 0 auto 26px; }

/* ===== Footer ===== */
.tl-footer { background: var(--tl-bg-soft); border-top: 1px solid var(--tl-border); padding: 52px 0 24px; }
.tl-footer-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; margin-bottom: 36px; }
@media (max-width: 900px) { .tl-footer-top { grid-template-columns: 1fr 1fr; } }
.tl-footer-brand .tl-logo { margin-bottom: 14px; }
.tl-footer-brand p { font-size: 13.5px; max-width: 32ch; }
.tl-footer-social { display: flex; gap: 10px; margin-top: 16px; }
.tl-footer-social a {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid var(--tl-border);
  color: var(--tl-ink-soft);
  transition: all var(--tl-fast) ease;
}
.tl-footer-social a:hover { color: #fff; border-color: var(--tl-accent); background: var(--tl-accent); }
.tl-footer-social svg { width: 15px; height: 15px; }
.tl-footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--tl-ink-soft); margin: 0 0 14px; }
.tl-footer-col ul { list-style: none; margin: 0; padding: 0; }
.tl-footer-col li { margin-bottom: 10px; }
.tl-footer-col a { font-size: 13.5px; color: var(--tl-ink); transition: color var(--tl-fast) ease; }
.tl-footer-col a:hover { color: var(--tl-accent); }
.tl-newsletter p { font-size: 13px; margin: 0 0 12px; }
.tl-newsletter-form { display: flex; min-height: 44px; }
.tl-newsletter-form input {
  flex: 1; min-width: 0;
  padding: 0 14px;
  border: 1px solid var(--tl-border);
  border-right: none;
  border-radius: 6px 0 0 6px;
  background: var(--tl-surface);
  font-size: 13.5px;
  color: var(--tl-ink);
}
.tl-newsletter-form button {
  padding: 0 18px;
  border: 1px solid var(--tl-accent);
  background: var(--tl-accent);
  color: #fff;
  border-radius: 0 6px 6px 0;
  font: 600 12.5px/1 'Roboto', sans-serif;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background var(--tl-fast) ease, border-color var(--tl-fast) ease;
}
.tl-newsletter-form button:hover { background: var(--tl-accent-ink); border-color: var(--tl-accent-ink); }
.tl-footer-bottom {
  border-top: 1px solid var(--tl-border);
  padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  font-size: 12px; color: var(--tl-ink-soft);
}
.tl-footer-bottom ul { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
.tl-footer-bottom a { color: var(--tl-ink-soft); }
.tl-footer-bottom a:hover { color: var(--tl-accent); }

/* ===== Simple content page (articles / legal / jobs) ===== */
.tl-doc { max-width: 720px; margin: 0 auto; padding: 52px 24px 76px; }
.tl-doc .tl-eyebrow { display: block; }
.tl-doc h1 { font-size: 30px; line-height: 1.25; margin: 8px 0 14px; }
.tl-doc .meta { font-size: 13px; color: var(--tl-ink-soft); margin-bottom: 30px; }
.tl-doc h2 { font-size: 19px; margin: 32px 0 12px; }
.tl-doc p { margin: 0 0 16px; }
.tl-doc ul { margin: 0 0 16px; padding-left: 20px; }
.tl-doc li { font-size: 15px; line-height: 1.65; color: var(--tl-ink-soft); margin-bottom: 6px; }
.tl-doc .tl-callout {
  border: 1px solid var(--tl-border);
  background: var(--tl-bg-blue);
  border-radius: 10px;
  padding: 20px 22px;
  margin: 26px 0;
}
.tl-doc .tl-callout p:last-child { margin-bottom: 0; }
.tl-doc .placeholder-note {
  border: 1px dashed var(--tl-border);
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 13.5px;
  color: var(--tl-ink-soft);
  background: var(--tl-bg-soft);
}
