/* ==========================================================================
   Sophia Jobs — charte graphique
   Palette « Côte d'Azur » : bleu azur → indigo, soleil doré, accent corail.
   ========================================================================== */
:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --primary: #2563eb;
  --primary-600: #1d4ed8;
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --accent: #f97352;
  --accent-600: #ea5f3d;
  --success: #16a34a;
  --success-700: #15803d;
  --success-50: #ecfdf5;
  --warning: #d97706;
  --warning-50: #fffbeb;
  --danger: #dc2626;
  --danger-50: #fef2f2;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 10px 28px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.22);
  --hero: linear-gradient(135deg, #0ea5e9 0%, #2563eb 48%, #4f46e5 100%);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body.no-scroll {
  overflow: hidden;
}
main {
  flex: 1 0 auto;
}
a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}
.icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.2em;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.85rem;
}
.container {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
}
.container.wide,
#tab-companies .container {
  max-width: 1180px;
}

/* ---------- Barre supérieure ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.brand:hover {
  text-decoration: none;
}
.brand img {
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.brand-name {
  font-weight: 500;
}
.brand-name strong {
  margin-left: 2px;
  font-weight: 800;
  background: var(--hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.segmented {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin-left: auto;
  background: #eef2f7;
  border-radius: 999px;
}
.segmented a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.92rem;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}
.segmented a:hover {
  color: var(--text);
  text-decoration: none;
}
.segmented a.active {
  background: var(--surface);
  color: var(--primary-600);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}
.topbar-actions {
  display: flex;
  gap: 6px;
}
.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.icon-btn:hover {
  background: #eef2f7;
  color: var(--text);
  text-decoration: none;
}
.icon-btn .icon {
  width: 20px;
  height: 20px;
}
.icon-btn-sm {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border-color: var(--border);
}
.icon-btn.active {
  background: var(--primary-50);
  color: var(--primary-600);
}
.icon-btn-sm .icon {
  width: 16px;
  height: 16px;
}
.bell-badge {
  position: absolute;
  top: 2px;
  right: 1px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  box-shadow: 0 0 0 2px #fff;
}
#bell-btn.has-new .icon {
  transform-origin: 50% 3px;
  animation: ring 1.1s ease-in-out 2;
}
@keyframes ring {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(14deg); }
  40% { transform: rotate(-12deg); }
  60% { transform: rotate(8deg); }
  80% { transform: rotate(-4deg); }
}

/* ---------- Bandeau d'accueil ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 58px 20px 66px;
  background: var(--hero);
  color: #fff;
  transition: padding 0.25s ease;
}
.hero::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  right: -160px;
  top: -300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(252, 211, 77, 0.45), transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70px;
  background:
    radial-gradient(60% 50px at 20% 100%, rgba(255, 255, 255, 0.12), transparent),
    radial-gradient(50% 40px at 80% 100%, rgba(255, 255, 255, 0.1), transparent);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.hero-title {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 4.2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.hero-title span {
  color: #fde68a;
}
.hero-sub {
  max-width: 640px;
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
}
.searchbox {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 720px;
  margin: 0 auto;
  padding: 6px 6px 6px 20px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.25);
}
.searchbox-icon {
  display: inline-flex;
  color: var(--muted);
}
.searchbox input {
  flex: 1;
  min-width: 0;
  padding: 12px 4px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 1.02rem;
}
.searchbox input::placeholder {
  color: #94a3b8;
}
.searchbox .btn {
  padding: 12px 24px;
}
.searchbox-light {
  max-width: 520px;
  padding: 4px 18px;
}
.suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.suggestions button {
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.15s;
}
.suggestions button:hover {
  background: rgba(255, 255, 255, 0.26);
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}
.hero-stats:empty {
  display: none;
}
.hero-stats strong {
  color: #fff;
}
.crawl {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 12px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
}
.crawl .progress {
  width: 160px;
  background: rgba(255, 255, 255, 0.25);
}
.crawl .progress-bar {
  background: #fde68a;
}
.hero-small {
  padding: 42px 20px 46px;
}
.hero-small .hero-sub {
  margin-bottom: 22px;
}
/* Une fois les résultats affichés, le bandeau se fait discret. */
.has-results #tab-search .hero {
  padding: 22px 20px 26px;
}
.has-results #tab-search :is(.hero-title, .hero-sub, .suggestions, .hero-stats) {
  display: none;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.05s;
}
.btn:hover {
  text-decoration: none;
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn .icon {
  width: 1.05em;
  height: 1.05em;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}
.btn-primary:hover {
  background: var(--primary-600);
}
.btn-soft {
  background: var(--primary-50);
  color: var(--primary-600);
}
.btn-soft:hover {
  background: var(--primary-100);
}
.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text-2);
}
.btn-ghost:hover {
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(249, 115, 82, 0.3);
}
.btn-accent:hover {
  background: var(--accent-600);
}
.btn-link {
  padding: 6px 8px;
  background: none;
  color: var(--primary);
}
.btn-link:hover {
  text-decoration: underline;
}
.btn-danger {
  color: var(--danger);
}
.btn-sm {
  padding: 7px 14px;
  font-size: 0.85rem;
}

/* ---------- Messages ---------- */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0;
  padding: 12px 16px;
  border: 1px solid var(--primary-100);
  border-radius: 12px;
  background: var(--primary-50);
  color: #1e3a8a;
}
.notice .icon {
  margin-top: 2px;
}
.notice-error {
  border-color: #fecaca;
  background: var(--danger-50);
  color: #991b1b;
}
.empty {
  padding: 44px 20px;
  text-align: center;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}
.empty h3 {
  margin: 12px 0 6px;
  color: var(--text);
  font-size: 1.05rem;
}
.empty p {
  max-width: 500px;
  margin: 0 auto;
}
.empty-icon {
  box-sizing: content-box;
  width: 26px;
  height: 26px;
  padding: 10px;
  border-radius: 14px;
  background: var(--primary-50);
  color: var(--primary);
}
.empty-small {
  padding: 28px 16px;
}
td.empty {
  border: 0;
  border-radius: 0;
  background: none;
}

/* ---------- Mode entreprise ---------- */
.company-banner {
  margin: 22px 0 6px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.banner-main {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.banner-text {
  flex: 1;
  min-width: 0;
}
.eyebrow {
  margin: 0;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.banner-text h2 {
  margin: 2px 0;
  font-size: 1.5rem;
  letter-spacing: -0.015em;
}
.banner-tagline {
  margin: 0;
  color: var(--muted);
}
.banner-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0;
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 600;
}
.banner-close {
  margin: -6px -8px 0 0;
}
.banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.banner-note {
  display: flex;
  gap: 10px;
  margin: 14px 0 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--warning-50);
  color: #92400e;
  font-size: 0.88rem;
}
.banner-note .icon {
  margin-top: 2px;
}

/* ---------- Barre de résultats, filtres ---------- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0 12px;
}
.toolbar-summary strong {
  margin-right: 6px;
  font-size: 1.12rem;
}
.toolbar-actions {
  display: flex;
  gap: 8px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
}
.select {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 6px 3px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.85rem;
}
.select select {
  padding: 4px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}
.switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 0.85rem;
  cursor: pointer;
  user-select: none;
}
.switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.switch-track {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: var(--border-strong);
  transition: background 0.15s;
}
.switch-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s;
}
.switch input:checked + .switch-track {
  background: var(--primary);
}
.switch input:checked + .switch-track::after {
  transform: translateX(14px);
}
.switch input:focus-visible + .switch-track {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

/* ---------- Création d'alerte ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.alert-panel {
  margin: 0 0 16px;
  padding: 18px 20px;
  border-color: var(--primary-100);
  background: linear-gradient(180deg, #f5f9ff, #fff 60%);
}
.alert-panel-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.alert-panel-head > div {
  flex: 1;
}
.alert-panel-head h2 {
  margin: 0;
  font-size: 1.05rem;
}
.alert-panel-head p {
  margin: 2px 0 0;
}
.alert-panel-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--hero);
  color: #fff;
}
.alert-channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
  margin: 16px 0;
}
.channel {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}
.channel > input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: var(--primary);
}
.channel > span {
  flex: 1;
  min-width: 0;
}
.channel strong {
  display: block;
  font-size: 0.92rem;
}
.channel small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}
.channel.is-disabled {
  background: var(--surface-2);
  cursor: default;
}
.channel.is-disabled strong {
  color: var(--muted);
}
.channel input[type="email"] {
  width: 100%;
  margin-top: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
}
.alert-panel-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.feedback {
  margin: 0;
}
.feedback-success {
  color: var(--success-700);
}
.feedback-error {
  color: var(--danger);
}
.feedback-info {
  color: var(--muted);
}

/* ---------- Cartes d'offres ---------- */
.results {
  display: grid;
  gap: 12px;
}
.job {
  position: relative;
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s, border-color 0.15s, opacity 0.15s;
}
.job:hover {
  border-color: var(--primary-100);
  box-shadow: var(--shadow);
}
.job-main {
  flex: 1;
  min-width: 0;
}
.job-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.job-title {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}
.job-title:hover {
  color: var(--primary);
  text-decoration: none;
}
/* Toute la carte est cliquable (les boutons restent au-dessus). */
.job-title::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.job-company,
.job-actions,
.job-badges {
  position: relative;
  z-index: 1;
}
.job-badges {
  display: flex;
  flex-shrink: 0;
  gap: 6px;
}
.job-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  margin-top: 4px;
  color: var(--text-2);
  font-size: 0.92rem;
}
.job-company {
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-2);
  font-weight: 600;
  cursor: pointer;
}
.job-company:hover {
  color: var(--primary);
  text-decoration: underline;
}
.job-loc {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
}
.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--text-2);
  font-size: 0.8rem;
  font-weight: 500;
}
.tag .icon {
  width: 13px;
  height: 13px;
  color: var(--muted);
}
.tag-contract {
  background: var(--primary-50);
  color: var(--primary-600);
  font-weight: 600;
}
.job-desc {
  display: -webkit-box;
  margin: 10px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.9rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.job-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}
.job-source {
  color: var(--muted);
  font-size: 0.8rem;
}
.job-actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.btn-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-chip .icon {
  width: 14px;
  height: 14px;
}
.btn-chip[data-action="applied"]:hover {
  border-color: #86efac;
  background: var(--success-50);
  color: var(--success-700);
}
.btn-chip[data-action="ignored"]:hover {
  border-color: var(--border-strong);
  background: #f1f5f9;
  color: var(--text);
}
.btn-chip[data-action="clear"]:hover {
  border-color: var(--primary-100);
  background: var(--primary-50);
  color: var(--primary);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.pill .icon {
  width: 13px;
  height: 13px;
}
.pill-new {
  background: var(--accent);
  color: #fff;
}
.pill-top,
.pill-applied {
  background: var(--success-50);
  color: var(--success-700);
}
.pill-good {
  background: var(--primary-50);
  color: var(--primary-600);
}
.pill-read,
.pill-ignored {
  background: #f1f5f9;
  color: var(--muted);
}
.job.is-read .job-title {
  color: #475569;
  font-weight: 600;
}
.job.is-applied {
  border-color: #bbf7d0;
  background: linear-gradient(90deg, #f0fdf4, #fff 45%);
}
.job.is-applied::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--success);
}
.job.is-ignored {
  opacity: 0.55;
  filter: grayscale(1);
  box-shadow: none;
}
.job.is-ignored:hover {
  opacity: 0.85;
}
.job.is-new {
  border-color: #fed7cc;
  box-shadow: 0 0 0 3px rgba(249, 115, 82, 0.12);
}

/* Initiales colorées */
.avatar {
  --h: 220;
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: hsl(var(--h) 85% 94%);
  color: hsl(var(--h) 60% 32%);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.avatar-lg {
  width: 52px;
  height: 52px;
  font-size: 1.05rem;
}
.avatar-xl {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  font-size: 1.3rem;
}
.avatar-empty {
  background: #f1f5f9;
  color: var(--muted);
}
.avatar-empty .icon {
  width: 22px;
  height: 22px;
}

/* Squelettes de chargement */
.skeleton .avatar,
.sk {
  background: linear-gradient(90deg, #eef2f7 0%, #f8fafc 50%, #eef2f7 100%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite linear;
}
.sk {
  display: block;
  height: 12px;
  margin: 8px 0;
  border-radius: 8px;
}
.sk-title {
  width: 60%;
  height: 16px;
}
.sk-line {
  width: 90%;
}
.sk-short {
  width: 40%;
}
@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

/* ---------- Liens complémentaires ---------- */
.more-links {
  display: grid;
  gap: 18px;
  margin: 30px 0 10px;
}
.more-links h3 {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.chip:hover {
  border-color: var(--primary-100);
  background: var(--primary-50);
  color: var(--primary);
  text-decoration: none;
}
.chip .icon {
  width: 14px;
  height: 14px;
}
.chip strong {
  color: var(--primary-600);
}
.featured-star {
  display: inline-flex;
  margin-left: 6px;
  color: #f59e0b;
  vertical-align: -0.1em;
}
.featured-star .icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* ---------- Onglet Entreprises ---------- */
.category {
  margin: 34px 0;
}
.category-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.category-head > div {
  flex: 1;
}
.category-head h2 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.category-head p {
  margin: 2px 0 0;
  font-size: 0.92rem;
}
.category-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--hero);
  color: #fff;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}
.category-count {
  padding: 4px 10px;
  border-radius: 999px;
  background: #e8edf5;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}
.company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
#featured-companies > .company-grid {
  margin-top: 34px;
}
.company-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s;
}
.company-card:hover {
  border-color: var(--primary-100);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.company-card.skeleton {
  min-height: 170px;
}
.company-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.company-id {
  flex: 1;
  min-width: 0;
}
.company-head h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.3;
}
.company-tagline {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
}
.company-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
}
.company-line.is-ok,
.company-line.is-sent {
  color: var(--success-700);
}
.company-line.is-link {
  color: var(--primary-600);
}
.company-line.is-wait,
.company-line.is-none {
  color: var(--muted);
}
.company-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
/* Côte à côte si la carte est assez large, sinon empilés sur toute la largeur. */
.company-actions .btn {
  flex: 1 1 auto;
}

/* ---------- Accueil ---------- */
.home {
  padding-top: 36px;
}
.has-results .home {
  display: none;
}
.home-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 16px;
}
.home-head h2 {
  margin: 0;
  font-size: 1.3rem;
  letter-spacing: -0.015em;
}
.home-head p {
  margin: 2px 0 0;
  font-size: 0.92rem;
}
.home-companies {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 10px;
}
.home-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-align: left;
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s;
}
.home-tile:hover {
  border-color: var(--primary-100);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.home-tile .avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 0.85rem;
}
.home-tile > span:not(.avatar) {
  flex: 1;
  min-width: 0;
}
.home-tile strong {
  display: block;
  overflow: hidden;
  font-size: 0.92rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-tile small {
  color: var(--success-700);
  font-size: 0.8rem;
  font-weight: 600;
}
.home-tile > .icon {
  color: var(--muted);
  transition: transform 0.15s, color 0.15s;
}
.home-tile:hover > .icon {
  color: var(--primary);
  transform: translateX(2px);
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 34px;
}
.feature {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.feature h3 {
  margin: 14px 0 4px;
  font-size: 1rem;
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--primary-50);
  color: var(--primary);
}

/* ---------- Tiroir « Mes alertes » ---------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
}
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  animation: fade 0.2s ease;
}
.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(430px, 100%);
  overflow-y: auto;
  outline: none;
  background: var(--bg);
  box-shadow: var(--shadow-lg);
  animation: slide 0.25s ease;
}
.drawer-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.drawer-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 1.15rem;
}
.drawer-head h2 .icon {
  color: var(--primary);
}
.alerts-list {
  display: grid;
  gap: 10px;
  padding: 16px 20px 4px;
}
.alert-item {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.alert-item.has-new {
  border-color: #fed7cc;
  box-shadow: 0 0 0 3px rgba(249, 115, 82, 0.1);
}
.alert-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.alert-item p {
  margin: 4px 0;
}
.alert-item-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: var(--text-2);
  font-size: 0.8rem;
}
.alert-item-channels span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.alert-item-channels .icon {
  width: 14px;
  height: 14px;
  color: var(--muted);
}
.alert-item-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}
.howto {
  margin: 12px 20px 24px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.howto h3 {
  margin: 0 0 4px;
  font-size: 0.95rem;
}
.howto > p {
  margin: 0;
}
.channels-status {
  display: grid;
  gap: 14px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.channels-status li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.channels-status li > .icon {
  box-sizing: border-box;
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 10px;
  background: var(--success-50);
  color: var(--success);
}
.channels-status li.is-off > .icon {
  background: #f1f5f9;
  color: var(--muted);
}
.channels-status strong {
  font-size: 0.9rem;
}
.channels-status .state {
  margin-left: 8px;
  color: var(--success-700);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.channels-status li.is-off .state {
  color: var(--muted);
}
.channels-status p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}
@keyframes slide {
  from { transform: translateX(32px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- Pied de page ---------- */
.footer {
  margin-top: 48px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.82rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 18px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 20px;
}

/* ---------- Bandeau « nouvelle version » ---------- */
.update-banner {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 8px 8px 8px 20px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  transform: translateX(-50%);
  animation: fade 0.2s ease;
}

/* ---------- Page « Catalogue & statut » ---------- */
.progress {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}
.progress.large {
  height: 10px;
  margin: 12px 0 6px;
}
.progress-bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--hero);
  transition: width 0.4s ease;
}
.progress-bar.running {
  background: linear-gradient(90deg, #0ea5e9, #4f46e5, #0ea5e9);
  background-size: 200% 100%;
  animation: shimmer 2s linear infinite;
}
.panel {
  margin: 18px 0;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.panel h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}
.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.panel-head h2 {
  margin: 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.stat-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.stat-value {
  background: var(--hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.stat-label {
  color: var(--text-2);
  font-weight: 600;
}
.stat-hint {
  color: var(--muted);
  font-size: 0.8rem;
}
.coverage {
  display: grid;
  gap: 10px;
}
.coverage-row {
  display: grid;
  grid-template-columns: 230px 1fr 130px;
  align-items: center;
  gap: 12px;
}
.bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f7;
}
.bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}
.bar-fill.ok { background: var(--success); }
.bar-fill.no-offer { background: #94a3b8; }
.bar-fill.unreachable { background: var(--warning); }
.bar-fill.error { background: var(--danger); }
.bar-fill.pending { background: #cbd5e1; }
.bar-fill.link-only { background: var(--primary); }
.coverage-value {
  color: var(--muted);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.badge {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--text-2);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.badge.ok { background: var(--success-50); color: var(--success-700); }
.badge.no-offer { background: #f1f5f9; color: #475569; }
.badge.unreachable { background: var(--warning-50); color: #b45309; }
.badge.error { background: var(--danger-50); color: #b91c1c; }
.badge.pending { background: var(--surface-2); color: var(--muted); border: 1px dashed var(--border-strong); }
.badge.no-site { background: #f1f5f9; color: var(--muted); }
.badge.link-only { background: var(--primary-50); color: var(--primary-600); }
.filter {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}
.filter input,
.filter select {
  min-width: 220px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
}
.table-wrap {
  margin-top: 12px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.table th {
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-align: left;
  text-transform: uppercase;
}
.table td {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
}
.table tr:last-child td {
  border-bottom: 0;
}
.table tbody tr:hover td {
  background: #fafcff;
}
.num {
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
}
.link-btn {
  padding: 6px 8px;
  border: 0;
  background: none;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
}
.link-btn:disabled {
  color: var(--muted);
  cursor: default;
  opacity: 0.6;
}

/* ---------- Onglet Candidatures ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hero-link {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero-link:hover {
  color: #fde68a;
}
.apply-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.apply-card {
  padding: 20px;
}
.apply-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.apply-card-head h2 {
  margin: 0;
  font-size: 1.1rem;
}
.apply-card-head p {
  margin: 2px 0 0;
}
.apply-card-head p .icon {
  width: 13px;
  height: 13px;
  margin-right: 5px;
}
.step-num {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--hero);
  color: #fff;
  font-weight: 800;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--text-2);
  font-size: 0.85rem;
  font-weight: 600;
}
.field-full {
  grid-column: 1 / -1;
}
.field em {
  color: var(--muted);
  font-style: normal;
  font-weight: 400;
}
.field input,
.field textarea,
.apply-filter,
.copy-message textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 400;
}
.field textarea,
.copy-message textarea {
  min-height: 112px;
  line-height: 1.5;
  resize: vertical;
}
.field input:focus,
.field textarea:focus,
.apply-filter:focus,
.copy-message textarea:focus {
  border-color: var(--primary);
  outline: 3px solid rgba(37, 99, 235, 0.18);
  outline-offset: 0;
}
.field input:user-invalid {
  border-color: var(--danger);
}
.field-hint {
  align-self: flex-end;
  color: var(--muted);
  font-weight: 500;
}
.cv-box,
.copy-cv {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
  background: var(--surface-2);
  transition: border-color 0.15s, background 0.15s;
}
.cv-box.has-file {
  border-style: solid;
  border-color: #bbf7d0;
  background: var(--success-50);
}
.cv-box.is-drag {
  border-color: var(--primary);
  background: var(--primary-50);
}
.copy-cv {
  border-style: solid;
}
.cv-icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.cv-info {
  flex: 1;
  min-width: 160px;
}
.cv-info strong {
  display: block;
  overflow: hidden;
  font-size: 0.92rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cv-info small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}
.cv-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.cv-actions label.btn:focus-within {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}
.apply-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.apply-card-foot .feedback {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.apply-card-foot .btn-danger {
  margin-left: auto;
}
.apply-group {
  margin-top: 14px;
}
.apply-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.apply-group-head h3 {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.apply-group-head .btn-link {
  padding: 2px 4px;
}
.apply-list {
  display: grid;
  gap: 6px;
}
.apply-companies > .apply-list,
.apply-companies > .notice,
.apply-companies > .empty {
  margin-top: 14px;
}
.apply-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  transition: border-color 0.15s, background 0.15s;
}
.apply-row:hover {
  border-color: var(--primary-100);
}
.apply-row.is-selected {
  border-color: #93c5fd;
  background: var(--primary-50);
}
.apply-row.skeleton {
  min-height: 52px;
}
.apply-row-label {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  min-width: 0;
  cursor: pointer;
}
.apply-row-label input {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--primary);
}
.apply-row .avatar,
.runner-recap .avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 0.75rem;
}
.apply-row-main {
  flex: 1;
  min-width: 0;
}
.apply-row-main strong {
  display: block;
  overflow: hidden;
  font-size: 0.92rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.apply-row-main small {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 0.78rem;
}
.apply-row-main small .icon {
  width: 12px;
  height: 12px;
}
.apply-row-main small.is-form {
  color: var(--success-700);
}
.apply-row-main small.is-talent {
  color: var(--primary-600);
}
/* Bouton « Commencer » toujours visible, même au fil d'une longue liste. */
.apply-start {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 16px -20px -20px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.apply-start > p {
  margin: 0;
}
#apply-selection {
  flex-basis: 100%;
}
#apply-selection:empty {
  display: none;
}
#apply-start-hint {
  flex: 1;
  min-width: 180px;
}
#apply-start-hint.is-ok {
  color: var(--success-700);
}
.apply-runner {
  overflow: hidden;
  scroll-margin-top: 84px;
}
.runner-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.runner-head .btn-link {
  padding-left: 0;
}
.runner-count {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}
.runner-head .progress {
  flex: 1;
}
.runner-body {
  padding: 22px 24px 26px;
}
.runner-company {
  display: flex;
  align-items: center;
  gap: 16px;
}
.runner-company h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}
.runner-company p {
  margin: 2px 0 0;
}
.runner-company .pill {
  margin-top: 6px;
}
#runner-title:focus {
  outline: none;
}
.runner-steps {
  display: grid;
  gap: 22px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.runner-steps > li {
  position: relative;
  min-width: 0;
  padding-left: 44px;
  counter-increment: step;
}
.runner-steps > li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary-50);
  color: var(--primary-600);
  font-weight: 800;
}
.runner-steps h3 {
  margin: 4px 0 6px;
  font-size: 1rem;
}
.runner-steps > li > p {
  margin: 0 0 10px;
}
/* Noms d'hôte longs (recrute-probtp.talent-soft.com…) : le bouton passe à la ligne. */
.runner-steps [data-act="open"] {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
/* Chaque champ prend la largeur de sa valeur : rien n'est tronqué tant qu'il tient sur une ligne. */
.copy-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.copy-field {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 8px;
  min-width: min(100%, 200px);
  max-width: 100%;
  padding: 8px 8px 8px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
}
.copy-field > span {
  flex: 1;
  min-width: 0;
}
.copy-field small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}
.copy-field strong {
  display: block;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.copy-field-wide {
  flex-basis: 100%;
}
.copy-field-wide strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.btn-chip.is-done {
  border-color: #86efac;
  background: var(--success-50);
  color: var(--success-700);
}
.copy-message {
  margin-top: 14px;
}
.copy-message-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
  margin-bottom: 6px;
}
.copy-message-head .btn-chip {
  white-space: nowrap;
}
.copy-message-head label {
  color: var(--text-2);
  font-size: 0.85rem;
  font-weight: 700;
}
.copy-message textarea {
  min-height: 250px;
}
.copy-message small {
  display: block;
  margin-top: 4px;
}
.runner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.runner-actions .btn {
  max-width: 100%;
  white-space: normal;
}
.runner-done {
  padding: 36px 24px;
  text-align: center;
}
.runner-done h2 {
  margin: 12px 0 4px;
}
.runner-recap {
  display: grid;
  gap: 6px;
  max-width: 460px;
  margin: 18px auto;
  padding: 0;
  list-style: none;
  text-align: left;
}
.runner-recap li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.runner-recap strong {
  flex: 1;
}

/* ---------- Favori « Remplir avec Sophia Jobs » ---------- */
.fill-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px 28px;
  margin: 18px 0;
  padding: 18px 20px;
  border-color: var(--primary-100);
  background: linear-gradient(135deg, var(--primary-50), var(--surface) 65%);
}
.fill-card-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.fill-card-main h2 {
  margin: 0 0 2px;
  font-size: 1.05rem;
}
.fill-card-main p,
.fill-card-install p,
.fill-card-mobile {
  margin: 0;
}
.fill-card-icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--hero);
  color: #fff;
}
.fill-card-install {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.bookmarklet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 2px dashed rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  cursor: grab;
  box-shadow: 0 6px 16px rgba(249, 115, 82, 0.35);
  user-select: none;
  -webkit-user-select: none;
}
.bookmarklet:hover {
  background: var(--accent-600);
  text-decoration: none;
}
.bookmarklet:active {
  cursor: grabbing;
}
.bookmarklet.is-nudge {
  animation: nudge 0.5s ease;
}
@keyframes nudge {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(-6px);
  }
  40%,
  80% {
    transform: translateX(6px);
  }
}
kbd {
  display: inline-block;
  padding: 0 5px;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--surface);
  color: var(--text-2);
  font: 600 0.75rem/1.5 var(--font);
}
#fill-hint .btn-link {
  padding: 0;
  border: 0;
  font-size: inherit;
  font-weight: 600;
  cursor: pointer;
}
#fill-hint.is-warning {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #b45309;
  font-weight: 600;
}
.fill-card-status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--success-700);
  font-weight: 600;
}
.fill-card-mobile {
  display: none;
  grid-column: 1 / -1;
}
.fill-card-mobile .icon {
  margin-right: 6px;
}
.fill-card-why {
  grid-column: 1 / -1;
}
.fill-card-why summary {
  width: fit-content;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
}
.fill-card-why[open] summary {
  margin-bottom: 4px;
}
.show-touch {
  display: none;
}
.runner-fill-hint .icon {
  margin-right: 6px;
  color: var(--accent);
}
.notice-warning {
  border-color: #fde68a;
  background: var(--warning-50);
  color: #92400e;
}
/* Écrans tactiles : pas de barre de favoris où glisser le bouton. */
@media (hover: none) and (pointer: coarse) {
  .fill-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .fill-card-install,
  .hide-touch {
    display: none;
  }
  .fill-card-mobile {
    display: block;
  }
  .show-touch {
    display: inline;
  }
}

/* ---------- Fenêtre du favori (remplir.html) ---------- */
.fill-page {
  background: var(--surface);
}
.fill-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.fill-head img {
  border-radius: 8px;
}
.fill-host {
  max-width: 55%;
  margin-left: auto;
  padding: 3px 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 0.8rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fill-host:empty {
  display: none;
}
.fill {
  display: flex;
  flex-direction: column;
}
.fill-body {
  display: grid;
  gap: 16px;
  padding: 16px;
}
#fill-notices {
  display: grid;
  gap: 8px;
}
#fill-notices:empty {
  display: none;
}
.fill-body .notice {
  margin: 0;
  font-size: 0.88rem;
}
.fill-section {
  display: grid;
  gap: 6px;
}
.fill-section p {
  margin: 0;
}
.fill-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.fill-section-head .btn-link {
  padding: 2px 4px;
}
.fill-label {
  margin: 0;
  color: var(--text-2);
  font-size: 0.85rem;
  font-weight: 700;
}
.fill-select,
.fill textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
}
.fill textarea {
  min-height: 180px;
  line-height: 1.5;
  resize: vertical;
}
.fill-select:focus,
.fill textarea:focus {
  border-color: var(--primary);
  outline: 3px solid rgba(37, 99, 235, 0.18);
  outline-offset: 0;
}
.fill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fill-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}
.fill-chip .icon {
  width: 13px;
  height: 13px;
}
.fill-chip.is-ok {
  background: var(--success-50);
  color: var(--success-700);
}
.fill-chip.is-missing {
  border-color: var(--border-strong);
  border-style: dashed;
  background: var(--surface-2);
  color: var(--muted);
}
.fill-empty,
.fill-cv-none {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text-2);
}
.fill-empty .icon,
.fill-cv-none .icon {
  margin-top: 2px;
  color: var(--primary);
}
.fill-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
  cursor: pointer;
}
.fill-check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--primary);
}
.fill-check small {
  display: block;
  font-weight: 400;
  overflow-wrap: anywhere;
}
.fill-report {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
}
.fill-report ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
}
.fill-report li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.fill-report .icon {
  margin-top: 2px;
}
.fill-report .is-ok {
  color: var(--success-700);
  font-weight: 700;
}
.fill-report .is-warn {
  color: #92400e;
}
.fill-report .is-info .icon {
  color: var(--muted);
}
.fill-actions {
  position: sticky;
  bottom: 0;
  display: grid;
  gap: 6px;
  margin-top: auto;
  padding: 12px 16px 14px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.fill-actions p {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.fill-buttons {
  display: flex;
  gap: 8px;
}
.fill-buttons .btn-primary {
  flex: 1;
}
.fill-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  max-width: 380px;
  margin: auto;
  padding: 40px 20px;
  text-align: center;
}
.fill-state h1 {
  margin: 4px 0 0;
  font-size: 1.15rem;
}
.fill-state p {
  margin: 0;
  color: var(--text-2);
}
.fill-state-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--primary-50);
  color: var(--primary);
}
.fill-state-icon .icon {
  width: 24px;
  height: 24px;
}
.fill-state-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}
.fill-spinner {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 3px solid var(--primary-100);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: fill-spin 0.8s linear infinite;
}
.fill-spinner.is-small {
  width: 14px;
  height: 14px;
  border-width: 2px;
  border-color: rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
}
@keyframes fill-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Petits écrans ---------- */
@media (max-width: 900px) {
  .apply-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .fill-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .fill-card-install {
    flex-flow: row wrap;
    justify-content: flex-start;
    gap: 8px 14px;
    text-align: left;
  }
}
@media (max-width: 720px) {
  .topbar-inner {
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 14px;
  }
  .segmented {
    order: 3;
    width: 100%;
    margin-left: 0;
  }
  .segmented a {
    flex: 1;
    justify-content: center;
  }
  .topbar-actions {
    margin-left: auto;
  }
  .container {
    padding: 0 14px;
  }
  .hero {
    padding: 36px 16px 42px;
  }
  .searchbox {
    padding-left: 14px;
  }
  .searchbox .btn {
    padding: 11px 16px;
  }
  .job {
    gap: 12px;
    padding: 16px;
  }
  .job .avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 0.85rem;
  }
  .job-head {
    flex-direction: column;
    gap: 6px;
  }
  .job-actions {
    width: 100%;
    margin-left: 0;
  }
  .banner-text h2 {
    font-size: 1.25rem;
  }
  .coverage-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .coverage-value {
    text-align: left;
  }
  .filter input,
  .filter select {
    min-width: 0;
    width: 100%;
  }
  .runner-body {
    padding: 18px 16px 22px;
  }
  .apply-runner {
    scroll-margin-top: 116px; /* barre du haut sur deux lignes */
  }
  .runner-steps > li {
    padding-left: 38px;
  }
  .runner-steps > li::before {
    width: 26px;
    height: 26px;
    font-size: 0.85rem;
  }
  .runner-company .avatar-xl {
    width: 52px;
    height: 52px;
    font-size: 1.05rem;
  }
}
@media (max-width: 480px) {
  .segmented a {
    gap: 6px;
    padding: 7px 10px;
    font-size: 0.85rem;
  }
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .apply-card {
    padding: 16px;
  }
  .apply-start {
    margin: 16px -16px -16px;
    padding: 12px 16px;
  }
  .runner-head .btn-link {
    font-size: 0;
    gap: 0;
  }
  .runner-head .btn-link .icon {
    width: 18px;
    height: 18px;
  }
  /* Numéro d'étape à côté du titre : le contenu de l'étape prend toute la largeur. */
  .runner-steps > li {
    padding-left: 0;
  }
  .runner-steps h3 {
    margin-top: 2px;
    padding-left: 36px;
  }
  .searchbox-icon {
    display: none;
  }
  .toolbar-actions {
    width: 100%;
  }
  .toolbar-actions .btn {
    flex: 1;
  }
}
@media (max-width: 400px) {
  .segmented a [data-icon] {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
