/* Recrutement 48H — feuille de style unique, sans dépendance ni webfont
   (low-data, règle 13). Fond chaud, contenus posés sur des cartes blanches. */

:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --surface-soft: #f4f1ec;
  --ink: #1d1b19;
  --muted: #6b665f;
  --line: #e9e4dc;
  --line-strong: #d6cfc4;
  --accent: #e0463a;
  --accent-hover: #c93a2f;
  --accent-soft: #fdece9;
  --accent-ink: #ffffff;
  --green: #1f7a4a;
  --green-soft: #e6f5ec;
  --amber: #8a5a00;
  --amber-soft: #fff3dc;
  --red: #a3271e;
  --red-soft: #fdeceb;
  --blue: #25559c;
  --blue-soft: #e8effa;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(40, 30, 20, 0.04), 0 4px 16px rgba(40, 30, 20, 0.05);
  --shadow-hover: 0 2px 4px rgba(40, 30, 20, 0.06), 0 10px 28px rgba(40, 30, 20, 0.09);
  --focus: 0 0 0 3px rgba(224, 70, 58, 0.28);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

.site-footer { margin-top: auto; }

a { color: inherit; text-decoration: none; }

p a:not(.btn), .hint a, li a { color: var(--accent); font-weight: 600; }
p a:not(.btn):hover, li a:hover { text-decoration: underline; }

h1, h2, h3 { letter-spacing: -0.015em; line-height: 1.2; }
h3 { font-size: 16px; margin: 28px 0 10px; }

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 6px;
}

.hint { color: var(--muted); font-size: 13px; }
.sub { color: var(--muted); font-size: 14px; }

/* En-tête */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 14px 24px;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.mark-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 4px 7px;
  border-radius: 8px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav > a:not(.btn) {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.main-nav > a:not(.btn):hover { color: var(--ink); background: var(--surface-soft); }

.main-nav > a.active {
  color: var(--ink);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 600;
}

.main-nav .btn { margin-left: 8px; }

@media (max-width: 760px) {
  .bar { flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 16px 8px; }
  .main-nav { flex-wrap: wrap; margin: 0 -12px; }
  .main-nav > a:not(.btn) { padding: 6px 12px; }
  .main-nav .btn { margin-left: auto; }
}

/* Boutons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px); }

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 2px 8px rgba(224, 70, 58, 0.25);
}

.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.btn.small, form .btn.primary.small { width: auto; padding: 8px 14px; font-size: 13px; }

.btn[disabled], .btn:disabled { opacity: 0.5; cursor: not-allowed; }

.link-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.link-btn:hover { text-decoration: underline; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.back-link:hover { color: var(--ink); }

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 8px;
}

.page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.page-title h1 { margin: 0; }

/* Accueil */

.hero {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 24px 72px;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 -10% auto;
  height: 420px;
  z-index: -1;
  background:
    radial-gradient(closest-side, rgba(224, 70, 58, 0.24), transparent 72%) 15% 30% / 60% 90% no-repeat,
    radial-gradient(closest-side, rgba(255, 184, 76, 0.30), transparent 72%) 85% 45% / 55% 90% no-repeat,
    radial-gradient(closest-side, rgba(255, 126, 182, 0.14), transparent 72%) 50% 100% / 60% 70% no-repeat;
}

.hero h1 {
  font-size: 52px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}

.hero .lead {
  color: var(--muted);
  font-size: 18px;
  max-width: 540px;
  margin: 0 auto 36px;
}

.cta {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.cta .btn { padding: 13px 24px; font-size: 15px; }

.steps {
  max-width: 1040px;
  margin: 0 auto;
  padding: 16px 24px 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.steps .step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.steps-more {
  text-align: center;
  padding: 8px 24px 80px;
  font-size: 14px;
}

.steps-more a { color: var(--accent); font-weight: 600; }
.steps-more a:hover { text-decoration: underline; }

.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.step h3 { font-size: 17px; margin: 0 0 6px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }

/* Pied de page */

.site-footer {
  border-top: 1px solid var(--line);
  padding-top: 0;
}

body > main:last-of-type { margin-bottom: 48px; }

.footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.footer-inner strong { color: var(--ink); }
.footer-inner nav { display: flex; gap: 18px; }
.footer-inner nav a:hover { color: var(--ink); }

@media (max-width: 640px) {
  .hero { padding: 48px 20px 48px; }
  .hero h1 { font-size: 36px; }
  .steps { grid-template-columns: 1fr; }
  .cta { flex-direction: column; }
}

/* Cartes de contenu (formulaires, comptes, fiches) */

.auth,
.account {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 40px auto 24px;
  width: calc(100% - 32px);
}

.auth {
  max-width: 420px;
  padding: 36px 32px 32px;
}

.account {
  max-width: 560px;
  padding: 36px 36px 32px;
}

.auth h1 {
  font-size: 26px;
  margin: 0 0 8px;
  text-align: center;
}

.account h1 { font-size: 26px; margin: 0 0 8px; word-break: break-word; }

.auth .sub {
  text-align: center;
  margin: 0 0 28px;
}

@media (max-width: 520px) {
  .auth, .account { padding: 28px 20px 24px; margin-top: 20px; }
}

/* Formulaires */

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: var(--surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea { resize: vertical; min-height: 96px; }

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--muted); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--focus);
}

.field input[type="checkbox"],
.field input[type="radio"] {
  width: auto;
  accent-color: var(--accent);
}

.field label input[type="checkbox"] { margin-right: 8px; }

.field .hint { margin-top: 6px; font-size: 12px; }

form .btn.primary {
  width: 100%;
  font-size: 15px;
  padding: 13px 20px;
}

.error,
.notice {
  display: flex;
  gap: 10px;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 20px;
}

.error { background: var(--red-soft); border: 1px solid #f3c2bd; color: var(--red); }
.error::before { content: "⚠️"; }

.notice { background: var(--green-soft); border: 1px solid #bfe3cd; color: var(--green); }
.notice::before { content: "✅"; }

.badge-verified { color: var(--green); font-weight: 600; }
.badge-unverified { color: var(--muted); }

.switch {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
}

.switch a { color: var(--accent); font-weight: 600; }
.switch a:hover { text-decoration: underline; }

.secret-box {
  background: var(--surface-soft);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
  letter-spacing: 0.05em;
  text-align: center;
  margin-bottom: 20px;
  word-break: break-all;
}

.qr-box {
  display: flex;
  justify-content: center;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.qr-box img { width: 200px; height: 200px; }

/* Pastilles */

.account .role {
  display: inline-block;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.tag {
  display: inline-block;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}

.job-status {
  flex-shrink: 0;
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.status-open, .trust-compliant, .status-app-selected, .status-app-hired,
.status-app-interview_scheduled, .status-app-interview_completed {
  background: var(--green-soft);
  color: var(--green);
}

.status-app-submitted { background: var(--blue-soft); color: var(--blue); }

.status-full, .status-draft, .status-app-withdrawn {
  background: var(--surface-soft);
  color: var(--muted);
}

.trust-under_review { background: var(--amber-soft); color: var(--amber); }

.status-closed, .status-expired, .status-cancelled, .trust-excluded,
.status-app-rejected, .status-app-interview_declined {
  background: var(--red-soft);
  color: var(--red);
}

/* Tableaux */

table.members {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

table.members td {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

table.members tr:last-child td { border-bottom: none; }
table.members td:first-child { color: var(--muted); padding-right: 16px; }
table.members td:first-child > a:first-child { color: var(--ink); font-weight: 700; font-size: 15px; }
table.members td:first-child > a:first-child:hover { color: var(--accent); }
table.members .tag, table.members .job-status { margin-top: 6px; }

table.members td:last-child {
  text-align: right;
  min-width: 80px;
}

/* Offres */

.job-meta {
  font-size: 14px;
  color: var(--muted);
  margin: 4px 0 20px;
}

.job-box {
  background: var(--surface-soft);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 24px;
}

.job-box p { margin: 4px 0; }

.job-sheet h3 { margin-top: 28px; margin-bottom: 8px; font-size: 15px; }

.job-text {
  white-space: pre-line;
  font-size: 15px;
  margin: 0;
}

.job-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.job-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.job-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.job-card .hint { margin: 4px 0 0; }

.job-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.job-card-title { font-weight: 700; font-size: 16px; }

.job-card-salary { font-size: 14px; font-weight: 600; margin: 6px 0 0; }

/* État vide */

.empty {
  text-align: center;
  background: var(--surface-soft);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 32px 24px;
}

.empty p { margin: 4px 0; }
.empty .btn { margin-top: 12px; }
.empty-emoji { font-size: 32px; }

/* Comment ça marche */

.page-header {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 8px;
  text-align: center;
}

.page-header h1 {
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}

.page-header .lead {
  color: var(--muted);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto;
}

.tracks {
  max-width: 1040px;
  margin: 0 auto;
  padding: 48px 24px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.track {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.track h2 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin: 0 0 24px;
}

.stack-steps {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.stack-steps .step { display: flex; gap: 14px; }
.stack-steps .step .num { margin-bottom: 0; }
.stack-steps .step div h3 { margin: 4px 0 4px; font-size: 15px; }
.stack-steps .step div p { margin: 0; color: var(--muted); font-size: 14px; }

.trust-section {
  max-width: 760px;
  margin: 24px auto 0;
  padding: 48px 24px 64px;
}

.trust-section h2 { font-size: 24px; text-align: center; margin: 0 0 8px; }

.trust-section > p {
  color: var(--muted);
  font-size: 15px;
  text-align: center;
  max-width: 480px;
  margin: 0 auto 28px;
}

.trust-states {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.trust-states .state {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  max-width: 230px;
  box-shadow: var(--shadow);
}

.trust-states .state .tag { margin-bottom: 8px; }
.trust-states .state p { margin: 0; font-size: 13px; color: var(--muted); }

.page-cta {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 48px;
  text-align: center;
}

@media (max-width: 640px) {
  .page-header { padding-top: 40px; }
  .page-header h1 { font-size: 32px; }
  .tracks { grid-template-columns: 1fr; }
}

/* Liste d'attente (page d'accueil temporaire) */

.waitlist-bar { justify-content: center; padding-top: 28px; }

.waitlist {
  max-width: 500px;
  margin: 0 auto;
  padding: 40px 24px 48px;
}

.waitlist-hero { text-align: center; margin-bottom: 28px; }

.waitlist-hero h1 {
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}

.waitlist-hero .lead { color: var(--muted); font-size: 16px; margin: 0 0 20px; }

.waitlist-status {
  background: var(--accent-soft);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 14px;
  margin: 0;
}

.waitlist-count { color: var(--muted); font-size: 13px; margin: 14px 0 0; }
.waitlist-count strong { color: var(--ink); }

.waitlist-form-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
}

.waitlist-confirmed { margin: 0; }
.waitlist-confirmed p { margin: 6px 0 0; }

.role-choice {
  border: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.role-choice legend {
  grid-column: 1 / -1;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  padding: 0;
}

.role-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 16px 12px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.role-option:hover { border-color: var(--muted); }

.role-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.role-option input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
}

.consent-label input { margin-top: 3px; flex-shrink: 0; }
.consent-label a { color: var(--ink); font-weight: 600; }

.waitlist-tiny { color: var(--muted); font-size: 12px; text-align: center; margin: 14px 0 0; }

.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.waitlist-footer {
  max-width: 500px;
  margin: 0 auto;
  padding: 24px 24px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

.waitlist-footer nav { display: flex; gap: 16px; }
.waitlist-footer a:hover { color: var(--ink); }

@media (max-width: 400px) {
  .waitlist-hero h1 { font-size: 32px; }
}

/* Pages légales */

.legal {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 720px;
  width: calc(100% - 32px);
  margin: 40px auto 24px;
  padding: 40px 40px 48px;
}

.legal h1 { font-size: 30px; margin: 0 0 8px; }
.legal-updated { color: var(--muted); font-size: 13px; margin: 0 0 32px; }
.legal h2 { font-size: 18px; margin: 32px 0 12px; }

.legal p,
.legal li { color: var(--ink); font-size: 15px; line-height: 1.65; }

.legal ul { padding-left: 20px; }

@media (max-width: 520px) {
  .legal { padding: 28px 20px 32px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
