:root {
  --joba-green: #234e3e;
  --joba-green-2: #3f725b;
  --joba-ink: #272b28;
  --joba-muted: #667069;
  --joba-paper: #fbf9f3;
  --joba-ivory: #f5f0e4;
  --joba-line: #cbc8be;
  --joba-accent: #c9643b;
  --joba-soft: #e6eee6;
  --joba-serif: Georgia, "Times New Roman", serif;
  --joba-sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--joba-ink);
  background: var(--joba-ivory);
  font-family: var(--joba-sans);
}
button, input, select, textarea { font: inherit; }
button { letter-spacing: 0; }

.app-shell { min-height: 100vh; background: var(--joba-paper); }
.topbar {
  min-height: 68px;
  padding: 0 4vw;
  border-bottom: 1px solid var(--joba-line);
  background: rgba(251, 249, 243, .97);
  box-shadow: none;
}
.topbar .brand { gap: 10px; color: var(--joba-green); }
.topbar .brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid var(--joba-green);
  border-radius: 2px;
  background: var(--joba-green);
  color: white;
  font-family: var(--joba-serif);
  font-size: 16px;
}
.topbar .brand > span:last-child { font-family: var(--joba-serif); font-size: 22px; }
.header-actions { gap: 16px; }
.public-nav { gap: 2px; }
.public-nav button, .jobs-link, .login-link, .app-nav button {
  min-height: 38px;
  padding: 0 11px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--joba-ink);
  font-size: 13px;
  font-weight: 600;
}
.public-nav button:hover, .jobs-link:hover, .app-nav button:hover { border-bottom-color: var(--joba-accent); color: var(--joba-green); }
.login-link {
  padding: 0 16px;
  border: 1px solid var(--joba-green);
  background: var(--joba-green);
  color: white;
}
.support { display: none; }

.official-home { background: var(--joba-paper); }
.official-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr);
  gap: clamp(36px, 6vw, 90px);
  max-width: 1240px;
  min-height: 600px;
  margin: 0 auto;
  padding: clamp(72px, 9vw, 122px) 32px 72px;
  align-items: center;
  background: transparent;
}
.hero-copy { max-width: 690px; }
.hero-copy .pill, .home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--joba-green-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero-copy .pill i { width: 18px; height: 1px; border-radius: 0; background: var(--joba-accent); }
.official-hero h1 {
  max-width: 780px;
  margin: 20px 0;
  color: var(--joba-green);
  font-family: var(--joba-serif);
  font-size: clamp(42px, 5.2vw, 68px);
  font-weight: 500;
  line-height: .99;
  letter-spacing: -.035em;
}
.official-hero .lead { max-width: 650px; margin: 0; color: #4a514d; font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.home-primary, .home-secondary, .section-action, .hero-dossier button,
.workflow-column > button, .trust-panel button, .hr-offer-copy button,
.home-final button {
  width: auto;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--joba-green);
  border-radius: 2px;
  box-shadow: none;
  font-size: 13px;
  font-weight: 700;
}
.home-primary, .hero-dossier button, .trust-panel button, .hr-offer-copy button { background: var(--joba-green); color: white; }
.home-secondary, .section-action { background: transparent; color: var(--joba-green); }
.hero-assurances { display: flex; flex-wrap: wrap; gap: 0; margin-top: 30px; border-top: 1px solid var(--joba-line); }
.hero-assurances span { padding: 12px 18px 0 0; color: var(--joba-muted); font-size: 12px; }
.hero-assurances span + span { padding-left: 18px; border-left: 1px solid var(--joba-line); }

.hero-dossier {
  position: relative;
  padding: 34px;
  border: 1px solid #9eb0a5;
  border-top: 5px solid var(--joba-green);
  border-radius: 0;
  background: #eef2eb;
  box-shadow: 14px 14px 0 #d8dfd7;
}
.hero-dossier::before { content: "EMPLOI · MADAGASCAR"; position: absolute; right: 22px; top: 18px; color: #718079; font-size: 9px; letter-spacing: .12em; }
.hero-dossier > span { color: var(--joba-accent); font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.hero-dossier h2 { margin: 16px 0 24px; color: var(--joba-green); font-family: var(--joba-serif); font-size: 26px; line-height: 1.25; }
.hero-dossier dl { margin: 0 0 24px; }
.hero-dossier dl > div { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 15px 0; border-top: 1px solid #bdc9bf; }
.hero-dossier dt { color: var(--joba-accent); font-family: var(--joba-serif); }
.hero-dossier dd { margin: 0; }
.hero-dossier dd b, .hero-dossier dd small { display: block; }
.hero-dossier dd b { color: var(--joba-green); font-size: 14px; }
.hero-dossier dd small { margin-top: 4px; color: var(--joba-muted); line-height: 1.4; }

.home-proof {
  display: flex;
  justify-content: center;
  gap: 22px;
  padding: 17px 30px;
  border-block: 1px solid var(--joba-line);
  background: var(--joba-green);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.home-proof i { width: 1px; background: rgba(255,255,255,.35); }
.home-section { max-width: 1180px; margin: 0 auto; padding: 86px 32px; }
.section-intro { max-width: 690px; margin-bottom: 40px; }
.section-intro.centered { margin-inline: auto; text-align: center; }
.section-intro h2, .section-title-row h2, .trust-panel h2, .hr-offer-section h2,
.home-final h2 {
  margin: 12px 0;
  color: var(--joba-green);
  font-family: var(--joba-serif);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 500;
  line-height: 1.13;
}
.section-intro p, .section-title-row p { color: var(--joba-muted); font-size: 16px; line-height: 1.65; }
.solution-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--joba-line); }
.solution-grid article { min-height: 215px; padding: 26px; border: 0; border-right: 1px solid var(--joba-line); border-radius: 0; background: white; box-shadow: none; }
.solution-grid article:last-child { border-right: 0; }
.solution-grid article > span { color: var(--joba-accent); font-family: var(--joba-serif); font-size: 16px; }
.solution-grid h3 { margin: 28px 0 10px; color: var(--joba-green); font-family: var(--joba-serif); font-size: 21px; }
.solution-grid p { margin: 0; color: var(--joba-muted); font-size: 14px; line-height: 1.55; }
.solutions-section > .section-action { margin-top: 22px; }

.workflow-section { max-width: none; padding-inline: max(32px, calc((100vw - 1180px)/2)); background: #f0ede3; }
.workflow-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; border: 1px solid var(--joba-line); background: var(--joba-line); }
.workflow-column { padding: 34px; border: 0; border-radius: 0; background: var(--joba-paper); box-shadow: none; }
.workflow-title > span { border-radius: 2px; background: var(--joba-green); }
.workflow-title h3 { font-family: var(--joba-serif); font-weight: 500; }
.workflow-column li { border-top: 1px solid var(--joba-line); }

.trust-section { max-width: none; padding: 0; background: var(--joba-green); }
.trust-panel { display: grid; grid-template-columns: 1.15fr .85fr; max-width: 1180px; margin: 0 auto; padding: 76px 32px; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: white; }
.trust-panel h2 { color: white; }
.trust-panel p { max-width: 620px; color: #dce7df; line-height: 1.7; }
.trust-panel button { margin-top: 18px; border-color: white; background: white; color: var(--joba-green); }
.trust-facts { display: grid; grid-template-columns: 1fr; border-left: 1px solid rgba(255,255,255,.25); }
.trust-facts article { display: grid; grid-template-columns: 46px 1fr; align-items: center; padding: 17px 0 17px 28px; border: 0; border-bottom: 1px solid rgba(255,255,255,.2); background: transparent; }
.trust-facts article b { color: #e7b18e; font-family: var(--joba-serif); font-size: 18px; }
.trust-facts article span { color: white; }

.hr-offer-section { display: grid; grid-template-columns: 1.25fr .75fr; gap: 0; max-width: 1180px; padding: 0; margin-block: 86px; border: 1px solid #9fb6a8; background: #e6eee6; }
.hr-offer-copy, .hr-offer-note { padding: 40px; }
.hr-offer-copy > div span { border-radius: 0; }
.hr-offer-note { border-left: 1px solid #9fb6a8; border-radius: 0; background: #d7e4da; }

.section-title-row { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 32px; }
.public-job-list { border-top: 3px solid var(--joba-green); }
.public-job-list article { display: grid; grid-template-columns: 52px 1fr auto; gap: 20px; align-items: center; padding: 21px 8px; border-bottom: 1px solid var(--joba-line); }
.public-job-list article > span { color: var(--joba-accent); font-family: var(--joba-serif); }
.public-job-list h3 { margin: 4px 0; color: var(--joba-green); font-family: var(--joba-serif); font-size: 21px; }
.public-job-list p, .public-job-list small { color: var(--joba-muted); }
.public-job-list button { padding: 9px 12px; border: 1px solid var(--joba-green); border-radius: 0; background: transparent; color: var(--joba-green); font-weight: 700; }

.home-resources { border-top: 1px solid var(--joba-line); }
.resource-list { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--joba-line); }
.resource-list button { min-height: 220px; padding: 25px; border: 0; border-right: 1px solid var(--joba-line); border-radius: 0; background: white; color: var(--joba-ink); text-align: left; }
.resource-list button:last-child { border-right: 0; }
.resource-list span { color: var(--joba-accent); font-family: var(--joba-serif); }
.resource-list small, .resource-list b, .resource-list em { display: block; }
.resource-list small { margin-top: 35px; color: var(--joba-muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.resource-list b { margin: 12px 0 30px; color: var(--joba-green); font-family: var(--joba-serif); font-size: 21px; line-height: 1.3; }
.resource-list em { color: var(--joba-green-2); font-size: 12px; font-style: normal; font-weight: 700; }

.home-faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; border-top: 1px solid var(--joba-line); }
.faq-list details { border-bottom: 1px solid var(--joba-line); background: transparent; }
.faq-list summary { padding: 20px 4px; color: var(--joba-green); font-family: var(--joba-serif); font-size: 19px; cursor: pointer; }
.faq-list p { margin: 0; padding: 0 4px 20px; color: var(--joba-muted); line-height: 1.6; }

.advertising-section { padding-top: 60px; border-top: 1px solid var(--joba-line); }
.sponsor-grid { gap: 16px; }
.sponsor-card, .sponsor-empty, .media-offer { border-radius: 0; box-shadow: none; }
.home-final { max-width: none; padding: 72px 32px; border-radius: 0; background: var(--joba-green); text-align: center; }
.home-final h2 { color: white; }
.home-final button:first-child { border-color: white; background: white; color: var(--joba-green); }
.home-final button:last-child { border-color: white; background: transparent; color: white; }
.official-footer { grid-template-columns: 1.3fr repeat(3, 1fr); padding: 55px max(32px, calc((100vw - 1180px)/2)) 30px; border-radius: 0; background: #17392d; }
.official-footer .footer-brand img { border-radius: 0; background: white; }
.official-footer .footer-brand span { color: white; }

/* Une identité commune pour les espaces connectés. */
.product-workspace { background: #f1eee5; }
.product-sidebar {
  border-right: 1px solid #9eaaa2;
  background: var(--joba-green);
  color: white;
  box-shadow: none;
}
.side-identity, .side-account-footer { border-color: rgba(255,255,255,.18); }
.product-sidebar nav button { border-radius: 0; color: #e7eee9; }
.product-sidebar nav button:hover, .product-sidebar nav button.active { background: rgba(255,255,255,.1); color: white; }
.product-sidebar nav button.active { box-shadow: inset 3px 0 var(--joba-accent); }
.side-promo { border: 1px solid rgba(255,255,255,.22); border-radius: 0; background: rgba(255,255,255,.06); }
.workspace-content, .dashboard-page, .question-page, .jobs-page, .blog-page,
.auth-page, .complete-page, .identity-verification-page { background: #f1eee5; }
.workspace-rail { border-left: 1px solid var(--joba-line); background: #e8e4d9; }
.rail-callout, .rail-newsletter, .rail-blog, .dashboard-card, .question-card,
.auth-card, .verify-card, .identity-verification-card, .cv-card,
.candidate-card, .job-card, .blog-featured, .blog-grid article {
  border: 1px solid var(--joba-line);
  border-radius: 2px;
  box-shadow: none;
}
.rail-callout { background: var(--joba-green); color: white; }
.workspace-content h1, .workspace-content h2, .dashboard-page h1, .dashboard-page h2,
.question-page h1, .question-page h2, .jobs-page h1, .blog-page h1, .blog-page h2,
.auth-page h1, .auth-page h2, .complete-page h1, .complete-page h2 {
  color: var(--joba-green);
  font-family: var(--joba-serif);
  font-weight: 500;
}
.question-card .option, .hr-choice, .catalog-option, .skill-option {
  border-radius: 2px;
  box-shadow: none;
}
.question-card .option.selected, .hr-choice.selected { border-color: var(--joba-green); background: var(--joba-soft); }
.continue, .primary-action, .hr-primary, .auth-submit, .dashboard-primary {
  width: auto;
  max-width: 320px;
  min-height: 42px;
  padding-inline: 18px;
  border-radius: 2px;
  background: var(--joba-green);
  box-shadow: none;
}
.secondary-action, .outline-action, .hr-secondary { border-radius: 2px; box-shadow: none; }
input, select, textarea { border-radius: 2px !important; box-shadow: none !important; }
input:focus, select:focus, textarea:focus { border-color: var(--joba-green) !important; outline: 2px solid rgba(35,78,62,.14); }
.progress-track, .summary-progress { border-radius: 0; }
.progress-track span, .summary-progress span { border-radius: 0; background: var(--joba-green); }

@media (max-width: 1050px) {
  .public-nav { display: none; }
  .official-hero { grid-template-columns: 1fr 360px; }
  .solution-grid { grid-template-columns: 1fr 1fr; }
  .solution-grid article:nth-child(2) { border-right: 0; }
  .solution-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--joba-line); }
  .resource-list { grid-template-columns: 1fr; }
  .resource-list button { min-height: 160px; border-right: 0; border-bottom: 1px solid var(--joba-line); }
  .product-workspace { grid-template-columns: 220px minmax(0, 1fr); }
  .workspace-rail { display: none; }
}

@media (max-width: 760px) {
  .topbar { min-height: 58px; padding-inline: 16px; }
  .jobs-link { display: none; }
  .official-hero { grid-template-columns: 1fr; min-height: 0; padding: 58px 20px 50px; }
  .official-hero h1 { font-size: 42px; }
  .hero-dossier { padding: 26px; box-shadow: 8px 8px 0 #d8dfd7; }
  .hero-assurances span + span { padding-left: 0; border-left: 0; }
  .home-proof { align-items: center; gap: 10px; padding-inline: 18px; text-align: center; }
  .home-section { padding: 60px 20px; }
  .solution-grid, .workflow-grid, .trust-panel, .hr-offer-section,
  .home-faq { grid-template-columns: 1fr; }
  .solution-grid article { border-right: 0; border-bottom: 1px solid var(--joba-line); }
  .workflow-column { padding: 26px; }
  .trust-panel { padding: 58px 20px; }
  .trust-facts { margin-top: 32px; border-left: 0; border-top: 1px solid rgba(255,255,255,.25); }
  .trust-facts article { padding-left: 0; }
  .hr-offer-section { margin: 60px 20px; }
  .hr-offer-copy, .hr-offer-note { padding: 28px; }
  .hr-offer-note { border-left: 0; border-top: 1px solid #9fb6a8; }
  .section-title-row { align-items: start; flex-direction: column; }
  .public-job-list article { grid-template-columns: 34px 1fr; }
  .public-job-list article button { grid-column: 2; justify-self: start; }
  .official-footer { grid-template-columns: 1fr 1fr; padding-inline: 20px; }
  .product-workspace { display: block; }
  .product-sidebar { position: static; width: auto; min-height: 0; border-right: 0; }
}

@media (max-width: 480px) {
  .login-link { padding-inline: 10px; }
  .hero-actions, .home-final > div { align-items: stretch; flex-direction: column; }
  .home-primary, .home-secondary, .home-final button { width: 100%; }
  .home-proof i { display: none; }
  .home-proof { flex-direction: column; }
  .official-footer { grid-template-columns: 1fr; }
}
