:root {
  --bg: #f7f6f3;
  --bg-elevated: #ffffff;
  --card: #ffffff;
  --card-border: rgba(20, 20, 25, 0.09);
  --ink: #16171c;
  --ink-muted: #6b6f7b;
  --gold: #a5761f;
  --gold-light: #c9973a;
  --gold-dim: rgba(165, 118, 31, 0.10);
  --glow-gold: rgba(201, 151, 58, 0.4);
  --dark-panel: #14151a;
  --dark-panel-muted: #a7a9b3;
  --ok: #1a9d5c;
  --danger: #d5453f;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow-card: 0 1px 2px rgba(20, 20, 25, 0.04), 0 8px 24px rgba(20, 20, 25, 0.06);

  /* Identite visuelle propre (differenciation deliberee vs les
     concurrents type Delos/Limova, qui restent tous en sans-serif noir
     et blue/black sur fond sombre) : un serif d'accroche chaleureux
     pour les titres, et un accent secondaire bordeaux reserve aux
     sections "confiance"/FAQ — l'or reste la couleur d'action
     principale pour ne pas perturber le parcours Billing deja valide. */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --accent-2: #7c2d3a;
  --accent-2-dim: rgba(124, 45, 58, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

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

h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }

/* ---------- TRAITEMENT PORTRAITS (harmonisation) ----------
   Les portraits viennent de plusieurs lots de generation avec des
   decors differents (bureau dore, marine, corail...). Un filtre
   colorimetrique commun rapproche leur temperature/saturation pour
   que l'ensemble paraisse plus homogene, sans toucher aux fichiers
   sources. Applique partout ou un portrait de Worker est affiche. */
.card-portrait,
.wheel-item img,
.onboarding-team-card img,
#profile-portrait {
  filter: saturate(0.88) contrast(1.04) brightness(1.02) sepia(0.08);
}

/* ---------- TOPBAR ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 32px;
  background: rgba(247, 246, 243, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--card-border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.brand .brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
}

.brand .brand-sub {
  display: block;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1.1px;
  color: var(--ink-muted);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 22px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  flex: 1;
}

.nav-links a {
  position: relative;
  transition: color 0.15s ease;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -3px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: right 0.2s ease;
}

.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { right: 0; }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  font-size: 18px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  color: var(--ink);
}

.mode-pill {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--gold-dim);
  color: var(--gold);
  border: 1px solid rgba(165, 118, 31, 0.22);
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.btn:active { transform: scale(0.96); }
.btn:disabled { cursor: default; opacity: 0.6; transform: none; }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(165, 118, 31, 0.28);
}

.btn-gold:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(165, 118, 31, 0.38);
}

.btn-ghost {
  background: #ffffff;
  border: 1px solid var(--card-border);
  color: var(--ink);
}

.btn-ghost:hover:not(:disabled) {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* ---------- HERO ---------- */

.hero {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  padding: 54px 32px 28px;
  text-align: center;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--card-border);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-muted);
  box-shadow: var(--shadow-card);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.8vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin: 0 0 18px;
}

.hero-title .accent {
  background: linear-gradient(100deg, var(--gold-light) 0%, var(--gold) 60%, #6b4e12 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto 32px;
}

/* ---------- HERO PROMPT BOX ---------- */

.prompt-box {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 18px;
  text-align: left;
  margin-bottom: 24px;
}

.prompt-box textarea {
  width: 100%;
  border: none;
  outline: none;
  resize: none;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  min-height: 52px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 14px;
}

.prompt-box textarea::placeholder { color: #9a9da5; }

.prompt-box-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.prompt-agent-select {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--card-border);
  min-width: 0;
}

.prompt-agent-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  flex: 0 0 auto;
  background: #e6e4de;
}

.prompt-agent-select select {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  outline: none;
  cursor: pointer;
}

.prompt-send-btn {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prompt-send-btn:disabled { opacity: 0.5; cursor: default; }

.hero-cta-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

/* ---------- STATS ---------- */

.stats-row {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  padding: 30px 32px 0;
  max-width: 780px;
  margin: 0 auto;
}

.stat-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.stat-num {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
}

.stat-label {
  font-size: 12.5px;
  color: var(--ink-muted);
}

/* ---------- FEATURED WORKERS (accueil, selection resserree) ---------- */

.featured-heading {
  text-align: center;
  margin: 56px 0 24px;
}

.featured-heading h2 {
  font-size: 24px;
  margin: 0 0 8px;
}

.featured-heading p {
  color: var(--ink-muted);
  font-size: 14.5px;
  margin: 0;
}

/* ---------- ROUE D'AGENTS (accueil, "demi-horloge" : le Worker au
   centre s'agrandit, les autres s'estompent sur les cotes) ---------- */

.agent-wheel {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  overflow-x: auto;
  max-width: 100%;
  padding: 10px 4px 30px;
}

.wheel-item {
  flex: 0 0 auto;
  width: 86px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: width 0.25s ease, opacity 0.25s ease, filter 0.25s ease, transform 0.25s ease;
  opacity: 0.5;
  filter: saturate(0.75);
}

.wheel-item.is-near { width: 106px; opacity: 0.78; filter: saturate(0.9); }

.wheel-item.is-center {
  width: 152px;
  opacity: 1;
  filter: none;
  z-index: 5;
}

.wheel-item:hover { opacity: 1; filter: none; transform: translateY(-5px); }

.wheel-item img {
  width: 100%;
  aspect-ratio: 4 / 7;
  object-fit: cover;
  object-position: top center;
  border-radius: 14px;
  border: 2px solid transparent;
  background: #eae8e2;
  display: block;
  box-shadow: var(--shadow-card);
}

.wheel-item.is-center img {
  border-color: var(--gold);
  box-shadow: 0 10px 28px rgba(165, 118, 31, 0.28);
}

.wheel-item-name {
  font-size: 12px;
  font-weight: 700;
  margin-top: 9px;
  color: var(--ink);
}

.wheel-item.is-center .wheel-item-name {
  color: var(--gold);
  font-size: 14.5px;
}

.wheel-item-role {
  font-size: 10px;
  color: var(--ink-muted);
}

.agent-wheel-wrap {
  position: relative;
}

.wheel-tooltip {
  position: absolute;
  top: -14px;
  transform: translate(-50%, -100%);
  background: var(--dark-panel);
  color: #ffffff;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  min-width: 140px;
  text-align: center;
  box-shadow: 0 10px 26px rgba(20, 20, 25, 0.25);
  pointer-events: none;
  z-index: 20;
  white-space: nowrap;
}

.wheel-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--dark-panel);
}

.wheel-tooltip-name { font-weight: 800; font-size: 13.5px; }
.wheel-tooltip-role { font-size: 11px; color: var(--dark-panel-muted); margin-top: 1px; }
.wheel-tooltip-skill {
  display: inline-block;
  margin-top: 6px;
  font-size: 10px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 3px 9px;
}

.featured-cta {
  text-align: center;
  margin-bottom: 8px;
}

/* ---------- CATEGORY FILTERS ---------- */

.category-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 26px;
  scrollbar-width: none;
}

.category-bar::-webkit-scrollbar { display: none; }

.category-chip {
  flex: 0 0 auto;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: #ffffff;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.category-chip.active {
  background: var(--gold-dim);
  border-color: rgba(165, 118, 31, 0.35);
  color: var(--gold);
}

/* ---------- SEARCH ---------- */

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 13px 18px;
  box-shadow: var(--shadow-card);
  margin-bottom: 22px;
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14.5px;
  color: var(--ink);
  font-family: inherit;
}

.search-bar input::placeholder { color: #9a9da5; }

.search-icon { color: var(--ink-muted); flex: 0 0 auto; }

/* ---------- TARIFS ---------- */

.promo-banner {
  background: linear-gradient(100deg, #fff6e3, #fdf0d5);
  border: 1px solid rgba(165, 118, 31, 0.25);
  border-radius: var(--radius);
  padding: 16px 22px;
  text-align: center;
  margin-bottom: 30px;
}

.promo-banner-title {
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 4px;
}

.promo-banner-sub {
  font-size: 13px;
  color: var(--ink-muted);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

@media (max-width: 980px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

.plan-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.plan-card.is-popular {
  border-color: var(--gold);
  box-shadow: 0 8px 28px rgba(165, 118, 31, 0.18);
  position: relative;
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 22px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

.plan-name {
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 4px;
}

.plan-audience {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-bottom: 16px;
}

.plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}

.plan-price {
  font-size: 30px;
  font-weight: 800;
}

.plan-price-period {
  font-size: 13px;
  color: var(--ink-muted);
}

.plan-price-strike {
  font-size: 14px;
  color: #8a8d96;
  margin-bottom: 14px;
}

.plan-price-promo {
  font-size: 12px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 18px;
}

.plan-features {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan-features li {
  font-size: 13.5px;
  color: var(--ink);
  padding-left: 20px;
  position: relative;
}

.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ok);
  font-weight: 700;
}

.plan-cta {
  width: 100%;
  padding: 11px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  background: #f2f1ec;
  color: var(--ink);
}

.plan-card.is-popular .plan-cta {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #ffffff;
}

.pricing-note {
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-muted);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* ---------- AUTOMATISATIONS & INTEGRATIONS ---------- */

.automation-section-heading {
  margin: 40px 0 18px;
}

.automation-section-heading h2 {
  font-size: 20px;
  margin: 0 0 4px;
}

.automation-section-heading p {
  color: var(--ink-muted);
  font-size: 13.5px;
  margin: 0;
}

.automation-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
}

.automation-form select,
.automation-form input[type="text"] {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
  font-size: 13.5px;
  font-family: inherit;
  color: var(--ink);
  background: var(--bg);
}

.automation-form #automation-objective-input { flex: 1; min-width: 220px; }
.automation-form select { flex: 0 0 auto; }
.automation-form button { flex: 0 0 auto; }

.automation-notify-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-muted);
  flex: 0 0 auto;
  white-space: nowrap;
}

.automation-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}

.automation-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.automation-card.is-disabled { opacity: 0.55; }

.automation-card-main { flex: 1; min-width: 200px; }

.automation-card-objective { font-weight: 700; font-size: 14px; margin-bottom: 3px; }
.automation-card-meta { font-size: 12px; color: var(--ink-muted); }

.automation-card-status {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
}

.automation-card-status.on { background: rgba(26, 157, 92, 0.12); color: var(--ok); }
.automation-card-status.off { background: rgba(20, 20, 25, 0.08); color: var(--ink-muted); }

.automation-card-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.automation-card-actions button {
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
}

.automation-card-actions .btn-danger { color: var(--danger); border-color: rgba(213, 69, 63, 0.3); }

.automation-empty {
  text-align: center;
  color: var(--ink-muted);
  font-size: 13.5px;
  padding: 30px 0;
}

/* Invite a se connecter, affichee a la place d'une donnee personnelle
   (pas au lieu de toute la page) : la navigation reste libre partout,
   seul ce qui appartient reellement a un compte demande une connexion. */
.connect-required {
  text-align: center;
  background: #ffffff;
  border: 1px dashed var(--card-border);
  border-radius: var(--radius-sm);
  padding: 28px 20px;
  margin: 18px 0;
}

.connect-required p {
  color: var(--ink-muted);
  font-size: 14px;
  margin: 0 0 14px;
}

.connectors-summary-banner {
  font-size: 13px;
  color: var(--ink-muted);
}

.connectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.connector-category-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  box-shadow: var(--shadow-card);
}

.connector-category-title {
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--ink);
}

.connector-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 8px;
  font-size: 13px;
  padding: 5px 0;
  border-bottom: 1px solid var(--card-border);
}
.connector-row:last-child { border-bottom: none; }

.connector-toggle-btn {
  flex: 0 0 100%;
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: #ffffff;
  color: var(--ink-muted);
  cursor: pointer;
}
.connector-toggle-btn:hover { border-color: var(--gold); color: var(--ink); }
.connector-toggle-btn.on {
  background: var(--gold);
  border-color: var(--gold);
  color: #1a1a1a;
  font-weight: 700;
}

.connector-row .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: 0 0 auto;
  margin-right: 6px;
}

.connector-row.enabled .dot { background: var(--ok); }
.connector-row.disabled .dot { background: #c7c9cf; }

.connector-row-name { display: flex; align-items: center; color: var(--ink); }
.connector-row-badge { font-size: 10.5px; color: var(--ink-muted); }

/* ---------- ANALYTICS ---------- */

.analytics-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 8px;
}

.analytics-stat-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  box-shadow: var(--shadow-card);
}

.analytics-stat-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
}

.analytics-stat-label {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-top: 2px;
}

.analytics-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.analytics-bar-row {
  display: grid;
  grid-template-columns: 90px 1fr 40px;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
}

.analytics-bar-name { color: var(--ink); font-weight: 600; text-transform: capitalize; }

.analytics-bar-track {
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.analytics-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  border-radius: 999px;
}

.analytics-bar-fill.status-EXECUTED, .analytics-bar-fill.status-SUCCESS { background: var(--ok); }
.analytics-bar-fill.status-BLOCKED, .analytics-bar-fill.status-SECURITY_BLOCKED { background: var(--danger); }
.analytics-bar-fill.status-ROUTED, .analytics-bar-fill.status-NEEDS_CHLOE_VERIFICATION { background: var(--gold); }

.analytics-bar-count { text-align: right; color: var(--ink-muted); }

.analytics-note {
  font-size: 12.5px;
  color: var(--ink-muted);
  background: var(--gold-dim);
  border: 1px solid rgba(165, 118, 31, 0.2);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-top: 24px;
}

/* ---------- ONBOARDING ---------- */

.onboarding-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 40px;
}

.onboarding-step-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--card-border);
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.onboarding-step-dot.active {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-color: transparent;
  color: #ffffff;
}

.onboarding-step-dot.done { background: var(--ok); border-color: transparent; color: #ffffff; }

.onboarding-step-line {
  width: 36px;
  height: 1px;
  background: var(--card-border);
}

.onboarding-step {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.onboarding-step .workers-title { font-size: 28px; }

.onboarding-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  text-align: left;
}

.onboarding-form input[type="text"],
.onboarding-form input[type="email"],
.onboarding-form textarea {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
  font-size: 14.5px;
  font-family: inherit;
  color: var(--ink);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  resize: vertical;
}

.onboarding-form input::placeholder,
.onboarding-form textarea::placeholder { color: #9a9da5; }

.onboarding-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 14px;
  margin: 28px 0;
}

.onboarding-team-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.onboarding-team-card img {
  width: 100%;
  aspect-ratio: 4 / 7;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.onboarding-team-card-name { font-weight: 700; font-size: 13px; padding: 8px 8px 2px; }
.onboarding-team-card-role { font-size: 11px; color: var(--ink-muted); padding: 0 8px 8px; }

/* ---------- BILLING ---------- */

.billing-current-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 22px 26px;
  margin-bottom: 20px;
}

.billing-current-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.billing-current-label {
  font-size: 12px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.billing-current-plan {
  font-size: 24px;
  font-weight: 700;
}

.billing-usage-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.billing-usage-fill {
  height: 100%;
  background: var(--gold, #a5761f);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.billing-usage-fill.alert { background: #c0392b; }

.billing-usage-line {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-muted);
}

.billing-alert {
  margin-top: 12px;
  font-size: 12.5px;
  color: #92351f;
  background: #fdece8;
  border: 1px solid rgba(192, 57, 43, 0.25);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.billing-recharge {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.billing-recharge input {
  flex: 1;
  min-width: 200px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
  font-size: 14px;
}

.billing-section-title {
  font-size: 18px;
  margin: 30px 0 14px;
}

.billing-interval-toggle {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  margin-bottom: 16px;
}

.billing-interval-toggle button {
  border: none;
  background: transparent;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
  white-space: nowrap;
}

.billing-interval-toggle button.active {
  background: var(--gold-dim);
  color: var(--gold);
}

.billing-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 10px;
}

.billing-plan-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  padding: 16px;
  text-align: center;
}

.billing-plan-card.active {
  border-color: var(--gold, #a5761f);
  box-shadow: 0 0 0 2px rgba(165, 118, 31, 0.25);
}

.billing-plan-card .billing-plan-name { font-weight: 700; margin-bottom: 4px; }
.billing-plan-card .billing-plan-price { font-size: 13.5px; color: var(--gold); font-weight: 600; margin-bottom: 2px; }
.billing-plan-card .billing-plan-credits { font-size: 12.5px; color: var(--ink-muted); margin-bottom: 12px; }

.billing-history {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 40px;
}

.billing-history-row {
  font-size: 13px;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
}

.billing-history-date {
  color: var(--ink-muted);
  font-size: 11.5px;
  margin-bottom: 2px;
}

/* ---------- CATALOG ---------- */

.page-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px 48px;
}

#workers-view.page-wrap,
#profile-view.page-wrap {
  padding-top: 28px;
}

.catalog-intro {
  margin-bottom: 22px;
  text-align: center;
}

.workers-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3.2vw, 36px);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.catalog-intro .hero-sub { margin: 0 auto; }

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* ---------- WORKER CARD (style Delos : photo + panneau sombre) ---------- */

.worker-card {
  background: var(--dark-panel);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
  border-top: 3px solid var(--gold);
}

.worker-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 28px rgba(20, 20, 25, 0.16);
}

.worker-card .card-portrait-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #22242c;
}

.worker-card .card-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.worker-card .card-portrait.is-svg {
  object-fit: contain;
  padding: 20px;
  box-sizing: border-box;
}

.worker-card .card-portrait-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 12, 0.88) 0%, rgba(10, 10, 12, 0.35) 45%, transparent 72%);
  pointer-events: none;
}

.worker-card .card-name-overlay {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;
  color: #ffffff;
}

.worker-card .wname {
  font-weight: 800;
  font-size: 16px;
}

.worker-card .wcategory {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 2px;
}

.worker-card-body {
  background: var(--dark-panel);
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.worker-card .wskills {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.worker-card .wskills li {
  font-size: 12px;
  color: var(--dark-panel-muted);
  padding-left: 12px;
  position: relative;
}

.worker-card .wskills li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--gold-light);
}

.worker-card .wtools {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
}

.worker-card .wtools .mini-tag {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 3px 8px;
}

.worker-card .wactions {
  margin-top: auto;
  display: flex;
  gap: 8px;
}

.worker-card .wactions button {
  flex: 1;
  border-radius: 999px;
  border: none;
  padding: 9px 10px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.worker-card .wactions .btn-info {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.worker-card .wactions .btn-recruit {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #ffffff;
}

/* ---------- PROFILE VIEW ---------- */

.view[hidden] { display: none; }

.back-btn {
  background: none;
  border: none;
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 0 0 20px;
}

.profile-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 28px;
}

@media (max-width: 860px) {
  .profile-layout { grid-template-columns: 1fr; }
}

.portrait-frame {
  background: var(--dark-panel);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-card);
}

.portrait-frame .online-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(10, 11, 15, 0.55);
  backdrop-filter: blur(6px);
  z-index: 2;
}

.online-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
}

.portrait-frame img#profile-portrait {
  width: 100%;
  aspect-ratio: 4 / 7;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.chat-preview {
  padding: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-bubble {
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13px;
  color: var(--dark-panel-muted);
  margin-bottom: 10px;
}

.profile-info-col h1 {
  margin: 0 0 4px;
  font-size: 30px;
  letter-spacing: -0.01em;
}

.profile-role {
  color: var(--gold);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.profile-personality {
  color: var(--ink-muted);
  line-height: 1.6;
  max-width: 560px;
}

.profile-block { margin-top: 26px; }

.block-title {
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  text-transform: uppercase;
  color: var(--ink);
}

.block-subtitle {
  font-weight: 400;
  text-transform: none;
  color: var(--ink-muted);
  font-size: 12px;
  letter-spacing: 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 12.5px;
  color: var(--ink);
}

.task-form {
  display: flex;
  gap: 8px;
}

.task-form input {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
  font-size: 14px;
  background: #ffffff;
  color: var(--ink);
}

.task-form input::placeholder { color: #9a9da5; }

.task-form button {
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  border: none;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

.task-form button:disabled { opacity: 0.55; cursor: default; }

.task-error {
  margin-top: 10px;
  color: var(--danger);
  font-size: 13px;
}

.task-result {
  margin-top: 14px;
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-left: 3px solid var(--ok);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: var(--shadow-card);
}

.task-result.blocked { border-left-color: var(--danger); }
.task-result.needs-chloe { border-left-color: var(--gold); }

.task-loading {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.task-loading span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: dot-pulse 1.1s ease-in-out infinite;
}

.task-loading span:nth-child(2) { animation-delay: 0.15s; }
.task-loading span:nth-child(3) { animation-delay: 0.3s; }

@keyframes dot-pulse {
  0%, 60%, 100% { opacity: 0.25; transform: scale(0.8); }
  30% { opacity: 1; transform: scale(1); }
}

.task-loading-text {
  color: var(--ink-muted);
  font-size: 13.5px;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .task-loading span { animation: none; opacity: 0.7; }
}

.trial-note {
  font-size: 12.5px;
  color: var(--ink-muted);
  font-style: italic;
  margin-top: 8px;
}

.task-result .status-line {
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--ink-muted);
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.activity-item {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13.5px;
}

.activity-item .a-status {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 9px;
  border-radius: 999px;
  margin-right: 8px;
  text-transform: uppercase;
}

.a-status.executed { background: rgba(26, 157, 92, 0.12); color: var(--ok); }
.a-status.blocked { background: rgba(213, 69, 63, 0.12); color: var(--danger); }
.a-status.routed { background: var(--gold-dim); color: var(--gold); }

.activity-item .a-request {
  color: var(--ink-muted);
  margin-top: 4px;
}

.activity-empty {
  color: var(--ink-muted);
  font-size: 13.5px;
}

/* ---------- HOW IT WORKS (liste numerotee, style Delos) ---------- */

.how-it-works {
  max-width: 640px;
  margin: 64px auto;
  padding: 0 32px;
}

.how-step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 18px;
  padding: 26px 0;
  border-top: 1px solid var(--card-border);
}

.how-step:last-child { border-bottom: 1px solid var(--card-border); }

.how-step-icon {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
  padding-top: 3px;
}

.how-step-title { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.how-step-sub { font-size: 14px; color: var(--ink-muted); line-height: 1.5; }

/* ---------- FINAL CTA ---------- */

.final-cta {
  max-width: 680px;
  margin: 0 auto 64px;
  padding: 48px 32px;
  text-align: center;
}

.final-cta-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--ink-muted);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.final-cta h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.final-cta p {
  color: var(--ink-muted);
  font-size: 15px;
  margin: 0 0 26px;
}

/* ---------- FOOTER ---------- */

.site-footer {
  border-top: 1px solid var(--card-border);
  padding: 40px 32px 24px;
  color: var(--ink-muted);
  font-size: 13px;
}

.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1240px;
  margin: 0 auto;
  padding-bottom: 28px;
}

.footer-col { min-width: 140px; }
.footer-col a { display: block; color: var(--ink-muted); text-decoration: none; margin-bottom: 8px; font-size: 13px; }
.footer-col a:hover { color: var(--ink); }
.footer-col-title { font-weight: 700; color: var(--ink); margin-bottom: 10px; font-size: 13px; }

.footer-brand { flex: 1.5; min-width: 220px; }
.footer-brand-title { font-weight: 700; color: var(--ink); font-size: 15px; margin-bottom: 8px; }
.footer-brand p { margin: 0; line-height: 1.6; max-width: 320px; }

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- FAQ ---------- */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 760px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 4px 18px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 0;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--accent-2);
}

.faq-item[open] summary::after { content: "−"; }
.faq-item[open] { border-color: var(--accent-2-dim); }

.faq-item p {
  margin: 0 0 16px;
  color: var(--ink-muted);
  line-height: 1.65;
  font-size: 14.5px;
}

/* ---------- PAGES LEGALES ---------- */

.legal-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.legal-nav {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 170px;
  flex-shrink: 0;
}

.legal-nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
}

.legal-nav a:hover { color: var(--accent-2); }

.legal-content { max-width: 720px; line-height: 1.7; color: var(--ink-muted); }
.legal-content article { margin-bottom: 48px; }
.legal-content h2 { color: var(--ink); margin-bottom: 6px; }
.legal-content h3 { color: var(--ink); margin: 22px 0 6px; font-size: 15px; }
.legal-content ul { padding-left: 20px; }
.legal-content li { margin-bottom: 6px; }

/* ---------- WORKERS VIVANTS ---------- */

@keyframes worker-breathe {
  0%, 100% { transform: scale(1) translateY(0) rotate(0deg); }
  25% { transform: scale(1.035) translateY(-6px) rotate(-0.6deg); }
  50% { transform: scale(1.045) translateY(-9px) rotate(0deg); }
  75% { transform: scale(1.035) translateY(-6px) rotate(0.6deg); }
}
@keyframes activity-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(26, 157, 92, 0.55); }
  50% { box-shadow: 0 0 0 6px rgba(26, 157, 92, 0); }
}
@keyframes ticker-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.worker-card .card-portrait-wrap { overflow: hidden; }
.worker-card .card-portrait {
  transform-origin: 50% 100%;
  animation: worker-breathe 5.5s ease-in-out infinite;
  animation-delay: var(--breath-delay, 0s);
}
.worker-card.is-active .card-portrait { animation-duration: 3.6s; }
/* Le mouvement continue au survol (repos = fige = "statique", l'inverse
   de ce qui est demande) — il accelere legerement, comme si le Worker
   reagissait a l'attention plutot que de se figer. */
.worker-card:hover .card-portrait { animation-duration: 2.8s; }

/* Portrait de la fiche individuelle (#profile-view) : totalement fige
   avant le 2026-09-23 (aucune animation), contrairement aux portraits
   de la grille. Meme traitement "vivant" ici. */
.portrait-frame img#profile-portrait {
  transform-origin: 50% 100%;
  animation: worker-breathe 6.5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .portrait-frame img#profile-portrait { animation: none !important; }
}

.card-activity {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  animation: ticker-in 0.5s ease both;
}
.activity-dot { width: 7px; height: 7px; border-radius: 50%; background: #8a8d96; flex-shrink: 0; }
.worker-card.is-active .activity-dot { background: var(--ok); animation: activity-pulse 1.8s infinite; }
.activity-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (prefers-reduced-motion: reduce) {
  .worker-card .card-portrait, .activity-dot { animation: none !important; }
}

/* ---------- ROLE FINDER / COMPARATIF / INTEGRATIONS ---------- */

.role-finder {
  display: flex;
  gap: 8px;
  max-width: 620px;
  margin: 0 auto 18px;
}
.role-finder input {
  flex: 1;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: #fff;
  font-size: 14px;
}

.compare-section { margin: 56px auto; max-width: 900px; padding: 0 12px; }
.compare-table { background: #fff; border: 1px solid var(--card-border); border-radius: var(--radius); box-shadow: var(--shadow-card); overflow: hidden; }
.compare-head, .compare-row { display: grid; grid-template-columns: 1fr 1.2fr 1.5fr; gap: 12px; padding: 14px 20px; font-size: 14px; }
.compare-head { font-weight: 700; background: var(--bg); }
.compare-row { border-top: 1px solid var(--card-border); color: var(--ink-muted); }
.compare-row span:first-child { font-weight: 600; color: var(--ink); }
.compare-us { color: var(--accent-2); font-weight: 600; }

.integrations-strip { margin: 56px auto; max-width: 1080px; padding: 0 12px; }
.integrations-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.integration-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--card-border); font-size: 13px; font-weight: 600; color: var(--ink); }
.integration-logo { width: 18px; height: 18px; display: inline-block; flex-shrink: 0; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; }
.integration-logo.is-initial { border-radius: 5px; color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

@media (max-width: 720px) {
  .compare-head, .compare-row { grid-template-columns: 1fr; gap: 4px; }
  .compare-head span:first-child { display: none; }
  .role-finder { flex-direction: column; }
}

/* ---------- PREUVES DE CONFIANCE ---------- */

.trust-signals { margin: 56px auto; max-width: 1080px; padding: 0 12px; }
.trust-heading { text-align: center; margin-bottom: 24px; }
.trust-heading h2 { margin-bottom: 6px; }
.trust-heading p { color: var(--ink-muted); }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.trust-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  padding: 22px 18px;
  text-align: center;
}

.trust-num { font-size: 28px; font-weight: 700; color: var(--accent-2, var(--ink)); margin-bottom: 6px; }
.trust-label { font-size: 13px; color: var(--ink-muted); line-height: 1.4; }

/* ---------- PORTE D'ACCES ---------- */

.gate-modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 25, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.gate-modal[hidden] { display: none; }

.gate-modal-box {
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px;
  max-width: 380px;
  width: 100%;
}

.gate-modal-box h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.gate-modal-box input {
  width: 100%;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
  font-size: 14px;
  box-sizing: border-box;
}

.gate-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.account-modal-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  background: var(--bg);
  border-radius: 999px;
  padding: 4px;
}

.account-modal-tabs button {
  flex: 1;
  border: none;
  background: transparent;
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
}

.account-modal-tabs button.active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: var(--shadow-card);
}

.account-modal-owner-link {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--card-border);
  font-size: 12px;
  color: var(--ink-muted);
  text-align: center;
}

.account-modal-owner-link button {
  border: none;
  background: transparent;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 720px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--card-border);
    box-shadow: var(--shadow-card);
    padding: 10px 18px 16px;
    z-index: 100;
  }
  .nav-links.nav-open { display: flex; }
  .nav-links a { padding: 10px 4px; border-bottom: 1px solid var(--card-border); }
  .nav-links a:last-child { border-bottom: none; }
  .mobile-menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .brand .brand-sub { display: none; }
  .topbar { position: relative; padding: 12px 18px; gap: 12px; }
  .topbar-actions .btn-ghost { display: none; }
  .hero { padding: 36px 18px 16px; }
  .hero-sub { font-size: 14.5px; }
  .stats-row { padding: 24px 18px 0; gap: 20px; }
  .page-wrap { padding: 0 18px 40px; }
  #workers-view.page-wrap, #profile-view.page-wrap { padding-top: 20px; }
  .wheel-item { width: 70px; }
  .wheel-item.is-near { width: 88px; }
  .wheel-item.is-center { width: 124px; }
  .how-it-works { padding: 0 18px; margin: 44px auto; }
  .profile-layout { gap: 20px; }
  .legal-layout { flex-direction: column; gap: 24px; }
  .legal-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .site-footer { padding: 22px 18px; flex-direction: column; align-items: flex-start; }
}

/* ---------- REPONSES DES WORKERS (rendu Markdown sur) ---------- */
.answer-body { line-height: 1.6; font-size: 14.5px; }
.answer-body h4 { margin: 16px 0 6px; font-size: 15px; font-family: var(--font-display); }
.answer-body p { margin: 8px 0; }
.answer-body ul { margin: 6px 0 10px; padding-left: 20px; }
.answer-body li { margin-bottom: 4px; }
.answer-body hr { border: none; border-top: 1px solid var(--card-border); margin: 14px 0; }
.answer-row { padding: 4px 0; border-bottom: 1px dashed var(--card-border); font-size: 13.5px; }

/* ---------- INTERACTIVITE (2026-09-23) : le site n'avait quasiment
   aucune transition — chaque etat changeait de facon instantanee, ce
   qui le faisait paraitre statique/figé plutot que vivant. Ajouts ici :
   lift au survol sur les cartes rendues dynamiquement, transition de
   vue (fade+slide) a chaque showView(), et reveal au scroll sur
   l'accueil. Tout est desactive sous prefers-reduced-motion. ---------- */

.plan-card, .trust-card, .automation-card, .connector-category-card,
.analytics-stat-card, .billing-plan-card, .onboarding-team-card, .billing-current-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.plan-card:hover, .trust-card:hover, .automation-card:hover, .connector-category-card:hover,
.analytics-stat-card:hover, .billing-plan-card:hover, .onboarding-team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(20, 20, 25, 0.10);
}

.stat-num, .analytics-stat-num {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* Transition de vue : rejouee a chaque showView() en retirant puis en
   reappliquant la classe (voir app.js). */
@keyframes view-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.view.view-enter { animation: view-fade-in 0.35s ease both; }

/* Reveal au scroll : la classe .reveal part invisible/decalee, .is-visible
   la ramene en place (voir IntersectionObserver dans app.js). */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .view.view-enter { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .btn-gold:hover, .btn-ghost:hover, .plan-card, .trust-card, .automation-card,
  .connector-category-card, .analytics-stat-card, .billing-plan-card, .onboarding-team-card,
  .nav-links a::after {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}
