/* BeWide AI — Design System */
:root {
  --bleu:    #1A73E8;
  --bleu-dark: #1557B0;
  --noir:    #111827;
  --gris:    #6B7280;
  --gris-clair: #F3F4F6;
  --blanc:   #FFFFFF;
  --vert:    #10B981;
  --rouge:   #EF4444;
  --border:  #E5E7EB;
  --radius:  12px;
  --shadow:  0 4px 24px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--gris-clair);
  color: var(--noir);
  line-height: 1.6;
}

/* ── Navbar ── */
.navbar {
  background: var(--blanc);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--bleu);
  text-decoration: none;
}

.navbar-actions { display: flex; gap: 1rem; align-items: center; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  text-decoration: none;
}

.btn-primary {
  background: var(--bleu);
  color: var(--blanc);
}
.btn-primary:hover { background: var(--bleu-dark); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--bleu);
  border: 1.5px solid var(--bleu);
}
.btn-outline:hover { background: #EBF2FD; }

.btn-ghost {
  background: transparent;
  color: var(--gris);
}
.btn-ghost:hover { background: var(--gris-clair); color: var(--noir); }

.btn-danger { background: var(--rouge); color: var(--blanc); }
.btn-success { background: var(--vert); color: var(--blanc); }

.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-lg { padding: 0.8rem 2rem; font-size: 1rem; border-radius: 10px; }

/* ── YouTube sticky banner ── */
.youtube-subscribe-banner {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 9000;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.9rem;
  background: #FFFFFF;
  color: #111827;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.youtube-subscribe-banner:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 0, 0, 0.24);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22);
}
.youtube-subscribe-banner:focus-visible {
  outline: 3px solid rgba(26, 115, 232, 0.3);
  outline-offset: 3px;
}
.youtube-subscribe-logo {
  width: 1.75rem;
  height: 1.25rem;
  flex-shrink: 0;
  display: block;
}

/* ── Cards ── */
.card {
  background: var(--blanc);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

/* ── Forms ── */
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--noir); }
.form-input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  transition: border-color 0.15s;
  background: var(--blanc);
}
.form-input:focus { outline: none; border-color: var(--bleu); }
.form-hint { font-size: 0.78rem; color: var(--gris); margin-top: 0.35rem; }

/* ── Tabs ── */
.tabs { display: flex; gap: 0.25rem; background: var(--gris-clair); padding: 4px; border-radius: 10px; }
.tab-btn {
  flex: 1;
  padding: 0.55rem 1rem;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  color: var(--gris);
  transition: all 0.15s;
}
.tab-btn.active { background: var(--blanc); color: var(--bleu); font-weight: 600; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }


/* ── Badge ── */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-blue  { background: #DBEAFE; color: var(--bleu); }
.badge-green { background: #D1FAE5; color: #065F46; }
.badge-gray  { background: var(--gris-clair); color: var(--gris); }

/* ── Landing ── */
.hero {
  text-align: center;
  padding: 5rem 1rem 3rem;
  max-width: 680px;
  margin: 0 auto;
}
.hero h1 { font-size: 2.8rem; font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
.hero h1 span { color: var(--bleu); }
.hero p { font-size: 1.1rem; color: var(--gris); margin-bottom: 2rem; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem 4rem;
}

.pricing-card {
  background: var(--blanc);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }
.pricing-card.popular { border-color: var(--bleu); }
.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bleu);
  color: var(--blanc);
  padding: 0.25rem 1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.pricing-name  { font-size: 1rem; font-weight: 700; color: var(--gris); margin-bottom: 0.5rem; }
.pricing-price { font-size: 2.5rem; font-weight: 800; margin-bottom: 0.25rem; }
.pricing-price span { font-size: 1rem; font-weight: 400; color: var(--gris); }
.pricing-features { list-style: none; margin: 1.25rem 0; }
.pricing-features li { padding: 0.4rem 0; font-size: 0.9rem; color: var(--gris); }
.pricing-features li::before { content: "✓ "; color: var(--vert); font-weight: 700; }

/* ── Auth ── */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.auth-card {
  background: var(--blanc);
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow);
}
.auth-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.25rem; }
.auth-sub   { color: var(--gris); font-size: 0.9rem; margin-bottom: 2rem; }
.auth-switch { text-align: center; margin-top: 1.5rem; font-size: 0.85rem; color: var(--gris); }
.auth-switch a { color: var(--bleu); font-weight: 600; text-decoration: none; }

/* ══════════════════════════════════════════════
   DASHBOARD — Layout premium
══════════════════════════════════════════════ */

body.dash {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #F1F5F9;
  color: var(--noir);
  height: 100vh;
  overflow: hidden;
}

.dash-layout {
  display: flex;
  height: 100vh;
}

/* ── Sidebar ── */
.dash-sidebar {
  width: 220px;
  background: #0F172A;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 100vh;
  overflow-y: auto;
}

.dash-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dash-logo-icon {
  width: 32px; height: 32px;
  background: var(--bleu);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem; color: #fff;
  flex-shrink: 0;
}
.dash-logo-text {
  font-weight: 700; font-size: 1rem; color: #F8FAFC;
  letter-spacing: -0.02em;
}

.dash-nav {
  padding: 0.75rem 0;
  flex: 1;
}
.dash-nav-group {
  padding: 0.75rem 1.25rem 0.3rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #475569;
  margin: 0;
}
.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.55rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #94A3B8;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: all 0.12s;
  border-left: 3px solid transparent;
}
.dash-nav-item:hover { background: rgba(255,255,255,0.05); color: #E2E8F0; }
.dash-nav-item.active {
  background: rgba(26,115,232,0.15);
  color: #93C5FD;
  border-left-color: var(--bleu);
  font-weight: 600;
}
.nav-icon { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.8; }

/* Sidebar footer */
.dash-sidebar-foot {
  padding: 0.75rem 0 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: auto;
}
.dash-user-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  cursor: pointer;
  border-radius: 6px;
  margin: 0 0.25rem;
  transition: background 0.12s;
}
.dash-user-row:hover { background: rgba(255,255,255,0.05); }
.dash-avatar {
  width: 28px; height: 28px;
  background: var(--bleu);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.dash-user-email {
  font-size: 0.72rem;
  color: #64748B;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-user-menu {
  background: #1E293B;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  margin: 0.25rem 0.75rem;
  overflow: hidden;
}
.dash-user-menu-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.6rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #94A3B8;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: all 0.12s;
}
.dash-user-menu-item:hover {
  background: rgba(255,255,255,0.06);
  color: #E2E8F0;
}

/* ── Main content ── */
.dash-main {
  flex: 1;
  overflow-y: auto;
  padding: 2.5rem 2.5rem;
  max-width: 900px;
}

.dash-section { display: block; }

/* Page header */
.dash-page-header { margin-bottom: 2rem; }
.dash-page-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bleu);
  margin-bottom: 0.35rem;
}
.dash-page-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--noir);
  margin-bottom: 0.4rem;
}
.dash-page-desc {
  color: var(--gris);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 580px;
}

/* Form card */
.dash-form-card {
  background: var(--blanc);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: 0 1px 8px rgba(0,0,0,0.05);
  margin-bottom: 1.5rem;
  max-width: 640px;
}
.dash-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-optional { font-weight: 400; color: var(--gris); }

.btn-launch {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ── Agent activity feed ── */
.agent-feed {
  background: #0F172A;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  max-width: 640px;
}
.agent-feed-title {
  padding: 0.75rem 1.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #475569;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.agent-feed-items {
  padding: 0.75rem 1.25rem;
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.agent-feed-item {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.82rem;
  line-height: 1.5;
}
.agent-pill {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
}
.agent-text { color: #94A3B8; }
.agent-text-muted { color: #475569; font-style: italic; }

/* ── Checkpoint ── */
.cp-card {
  background: #FFFBEB;
  border: 1.5px solid #FCD34D;
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  max-width: 640px;
}
.cp-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.875rem;
  color: #92400E;
  margin-bottom: 1rem;
}
.cp-content {
  background: var(--blanc);
  border: 1px solid #FDE68A;
  border-radius: 8px;
  padding: 1rem;
  font-size: 0.85rem;
  white-space: pre-wrap;
  max-height: 220px;
  overflow-y: auto;
  margin-bottom: 1rem;
  line-height: 1.7;
  color: var(--noir);
}
.cp-actions { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.cp-input { flex: 1; min-width: 180px; }
.cp-done { font-size: 0.875rem; font-weight: 600; color: var(--vert); }

/* ── Results ── */
.result-wrap {
  background: var(--blanc);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 8px rgba(0,0,0,0.05);
  max-width: 640px;
}
.result-header {
  padding: 1rem 1.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bleu);
  border-bottom: 1px solid var(--border);
  background: #F8FAFC;
}
.result-section { border-bottom: 1px solid var(--border); }
.result-section:last-child { border-bottom: none; }
.result-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--noir);
  transition: background 0.1s;
}
.result-section-head:hover { background: #F8FAFC; }
.toggle-icon { transition: transform 0.2s; flex-shrink: 0; color: var(--gris); }
.result-section-body {
  display: block;
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  line-height: 1.85;
  white-space: pre-wrap;
  color: #374151;
  border-top: 1px solid var(--border);
  background: var(--blanc);
}

/* ── Subscription ── */
.sub-active {
  padding: 0.5rem 0;
}
.sub-plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #D1FAE5;
  color: #065F46;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.sub-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 560px;
}
.sub-plan-card {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}
.sub-plan-card:hover { border-color: var(--bleu); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(26,115,232,0.1); }
.sub-plan-popular { border-color: var(--bleu); }
.sub-plan-badge-pop {
  position: absolute;
  top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--bleu);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}
.sub-plan-name { font-size: 0.8rem; font-weight: 700; color: var(--gris); margin-bottom: 0.35rem; text-transform: uppercase; letter-spacing: 0.05em; }
.sub-plan-price { font-size: 1.6rem; font-weight: 800; color: var(--noir); }
.sub-plan-price span { font-size: 0.85rem; font-weight: 400; color: var(--gris); }

.sub-cancel-zone {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  margin-top: 0.5rem;
}
.btn-cancel {
  background: none;
  border: none;
  color: var(--gris);
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  transition: color 0.15s;
}
.btn-cancel:hover { color: var(--rouge); }
.btn-cancel-confirm {
  background: var(--rouge);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn-cancel-confirm:hover { opacity: 0.85; }

/* ── Notices ── */
.dash-notice {
  padding: 0.875rem 1.25rem;
  border-radius: 10px;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  max-width: 640px;
}
.dash-notice-warn { background: #FFFBEB; color: #92400E; border: 1px solid #FCD34D; }
.dash-notice-error { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.dash-notice-success { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }

/* ── Toast ── */
#toaster {
  position: fixed;
  bottom: 5.5rem; right: 1.5rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  z-index: 9999;
}
.toast {
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  transform: translateY(8px);
  opacity: 0;
  transition: all 0.25s;
  max-width: 360px;
}
.toast-show { opacity: 1; transform: translateY(0); }
.toast-success { background: #065F46; color: #fff; }
.toast-error   { background: #991B1B; color: #fff; }
.toast-info    { background: var(--noir); color: #fff; }

@media (max-width: 768px) {
  .dash-sidebar { display: none; }
  .dash-main { padding: 1.5rem; }
  .dash-form-row { grid-template-columns: 1fr; }
  .sub-plans { grid-template-columns: 1fr; }
  .youtube-subscribe-banner {
    right: 1rem;
    bottom: 1rem;
    max-width: calc(100vw - 2rem);
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
  }
  #toaster {
    right: 1rem;
    bottom: 5rem;
    max-width: calc(100vw - 2rem);
  }
}

/* ── Alert ── */
.alert { padding: 0.75rem 1rem; border-radius: 8px; font-size: 0.875rem; margin-bottom: 1rem; }
.alert-error   { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
.alert-success { background: #D1FAE5; color: #065F46; border: 1px solid #A7F3D0; }
.alert-info    { background: #DBEAFE; color: #1E40AF; border: 1px solid #BFDBFE; }

/* ── Loader ── */
.spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: var(--blanc);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Copy button ── */
.copy-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  cursor: pointer;
  color: var(--gris);
}
.copy-btn:hover { background: var(--gris-clair); }

@media (max-width: 768px) {
  .sidebar { display: none; }
  .hero h1 { font-size: 2rem; }
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════
   ONBOARDING — Page choix de plan
══════════════════════════════════════════════ */

body.onb-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #F1F5F9;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 3rem 1.5rem 4rem;
}

.onb-wrap {
  width: 100%;
  max-width: 940px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.onb-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--noir);
}
.onb-logo-icon {
  width: 36px; height: 36px;
  background: var(--bleu);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem; color: #fff;
}

.onb-header { text-align: center; }
.onb-badge {
  display: inline-block;
  background: #DBEAFE;
  color: var(--bleu);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}
.onb-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--noir);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.onb-sub {
  color: var(--gris);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}
.onb-sub strong { color: var(--noir); }

/* Plans grid */
.onb-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  width: 100%;
}

.onb-plan {
  background: var(--blanc);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.onb-plan:hover {
  border-color: #93C5FD;
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(26,115,232,0.1);
}
.onb-plan-featured {
  border-color: var(--bleu);
  box-shadow: 0 4px 24px rgba(26,115,232,0.12);
}
.onb-plan-popular {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--bleu);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.onb-plan-name {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gris);
  margin-bottom: 0.25rem;
}
.onb-plan-price {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--noir);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.onb-plan-price span {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--gris);
}
.onb-plan-desc {
  font-size: 0.85rem;
  color: var(--gris);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.onb-plan-features {
  list-style: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}
.onb-plan-features li {
  font-size: 0.875rem;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.onb-plan-features li::before {
  content: "";
  width: 16px; height: 16px;
  background: var(--vert);
  border-radius: 50%;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.5 6l2.5 2.5 4.5-5' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-color: var(--vert);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

.onb-btn-outline {
  background: transparent;
  color: var(--bleu);
  border: 1.5px solid var(--bleu);
  width: 100%;
  justify-content: center;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  border-radius: 10px;
}
.onb-btn-outline:hover { background: #EBF2FD; }
.onb-btn-primary {
  width: 100%;
  justify-content: center;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  border-radius: 10px;
}

/* Trust bar */
.onb-trust {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--gris);
  flex-wrap: wrap;
  justify-content: center;
}

.onb-signout {
  font-size: 0.8rem;
  color: var(--gris);
}
.onb-signout a { color: var(--bleu); font-weight: 500; text-decoration: none; }
.onb-signout a:hover { text-decoration: underline; }

/* Spinner dark (pour fond blanc) */
.spinner-dark {
  border-color: rgba(0,0,0,0.15);
  border-top-color: var(--bleu);
}

@media (max-width: 768px) {
  .onb-plans { grid-template-columns: 1fr; }
  .onb-title { font-size: 1.6rem; }
  body.onb-body { padding: 2rem 1rem 3rem; }
}

/* ── Reply tabs ── */
.reply-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.reply-tab {
  padding: 0.5rem 1rem;
  border: none;
  background: none;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gris);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.15s;
  border-radius: 0;
}
.reply-tab:hover { color: var(--noir); }
.reply-tab.active { color: var(--bleu); border-bottom-color: var(--bleu); }
.reply-panel { padding: 1.25rem 1.5rem; }
.reply-panel.hidden { display: none; }
.reply-panel-desc {
  font-size: 0.75rem;
  color: var(--gris);
  font-style: italic;
  margin-bottom: 0.75rem;
}
.reply-panel-msg {
  font-size: 0.9rem;
  line-height: 1.8;
  white-space: pre-wrap;
  background: #F8FAFC;
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid var(--border);
  color: #1F2937;
}
.reply-panel-footer { margin-top: 0.75rem; }

/* ── Relance timeline ── */
.relance-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.relance-step {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.relance-step:last-child { border-bottom: none; }
.relance-step-day {
  flex-shrink: 0;
  text-align: center;
  width: 56px;
}
.relance-day-badge {
  display: inline-block;
  background: var(--bleu);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  margin-bottom: 0.25rem;
}
.relance-day-date {
  font-size: 0.68rem;
  color: var(--gris);
  line-height: 1.3;
}
.relance-step-body { flex: 1; }
.relance-step-action {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--noir);
  margin-bottom: 0.2rem;
}
.relance-step-duree {
  font-size: 0.75rem;
  color: var(--gris);
  margin-bottom: 0.5rem;
}
.relance-step-msg {
  font-size: 0.85rem;
  line-height: 1.7;
  white-space: pre-wrap;
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.875rem;
  color: #1F2937;
  margin-top: 0.5rem;
}

/* ══ Result redesign ══ */
.result-success-bar {
  padding: 1rem 1.5rem;
  background: #ECFDF5;
  color: #065F46;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-bottom: 1px solid #A7F3D0;
}
.result-success-check {
  width: 22px; height: 22px;
  background: #10B981;
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}
.rs-section {
  border-bottom: 1px solid var(--border);
}
.rs-section:last-of-type { border-bottom: none; }
.rs-section-title {
  padding: 1rem 1.5rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gris);
}
/* Textarea éditable — post, DM, plan */
.rs-edit {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.875rem 1rem;
  background: #F8FAFC;
  border: 1.5px solid var(--border);
  border-radius: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  line-height: 1.85;
  color: #1F2937;
  resize: vertical;
  transition: border-color 0.15s, background 0.15s;
  outline: none;
}
.rs-edit:focus {
  border-color: #6366F1;
  background: #fff;
}
/* Post LinkedIn — marges latérales */
.rs-edit-post {
  margin: 0 1.5rem;
  width: calc(100% - 3rem);
  border-radius: 10px;
  min-height: 200px;
}
/* DM — intégré dans la carte */
.rs-edit-dm {
  border: none;
  border-top: 1px solid var(--border);
  min-height: 90px;
}
.rs-edit-dm:focus {
  border-color: #6366F1;
}
/* Plan — marges latérales */
.rs-edit-plan {
  margin: 0 1.5rem;
  width: calc(100% - 3rem);
  border-radius: 10px;
  min-height: 200px;
}
.rs-dms {
  padding: 0 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.rs-dm-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.rs-dm-to {
  padding: 0.6rem 1rem;
  background: #F1F5F9;
  font-size: 0.78rem;
  font-weight: 600;
  color: #374151;
  border-bottom: 1px solid var(--border);
}
.rs-dm-card .copy-btn {
  margin: 0.5rem 1rem 0.875rem;
}
.rs-download {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  background: #FAFAFA;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.rs-save-status {
  font-size: 0.82rem;
  font-weight: 500;
  transition: color 0.2s;
}
