/* Recruiter "Équipe" management page (R7). Aligned on the merged canonical
   mockup /mockups/recruiter/team (retour client 06/08 : « /recruiter/team :
   à revoir ») — standalone two-panel screen (onboarding style) : rt-topbar
   (brand / help / exit) + rt-shell (live preview panel | form panel).
   All rules scoped under .page-recruiter-team. Zero inline CSS in the view
   (dynamic avatar gradients passed via --rt-bg).
   Future blocks without a model (LinkedIn import, Ambassador invitation,
   leadership add, LinkedIn field) are grayed + annotated via .rt-future. */

.page-recruiter-team {
  --brand-gold-main: 41 43% 45%;
  font-family: 'Geist', system-ui, sans-serif;
  color: #1a1a1a;
  background: #FFFFFF;
  min-height: 100vh;
}
.page-recruiter-team *, .page-recruiter-team *::before, .page-recruiter-team *::after { box-sizing: border-box; }
.page-recruiter-team a { text-decoration: none; color: inherit; }
.page-recruiter-team button { cursor: pointer; font-family: inherit; }
.page-recruiter-team input, .page-recruiter-team select, .page-recruiter-team textarea { font-family: inherit; }

/* ── TOPBAR ── */
.rt-topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid #E5E5E5;
  padding: 14px 24px;
  display: flex; align-items: center; gap: 18px;
}
.rt-brand {
  font-size: 20px; font-weight: 700; color: #1a1a1a;
  display: inline-flex; align-items: center; gap: 8px;
}
.rt-brand-logo { height: 24px; width: auto; }
.rt-topbar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.rt-help-link {
  font-size: 13px; color: #737373;
  padding: 6px 12px; border-radius: 9999px; border: 1px solid #E5E5E5;
  transition: all .15s ease;
}
.rt-help-link:hover { border-color: hsl(var(--brand-gold-main)); color: hsl(var(--brand-gold-main)); }
.rt-exit-link { font-size: 13px; color: #737373; padding: 6px 12px; border-radius: 9999px; }
.rt-exit-link:hover { background: rgba(163,133,67,.06); color: hsl(var(--brand-gold-main)); }

/* ── STEP BADGE ── */
.rt-step-badge {
  font-size: 9px; font-weight: 700; color: hsl(var(--brand-gold-main));
  padding: 4px 10px; background: rgba(163,133,67,.06);
  border: 1px solid rgba(163,133,67,.15); border-radius: 6px;
  letter-spacing: 0.5px; text-transform: uppercase;
}

/* ── LAYOUT SHELL ── */
.rt-shell { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 56px); }

/* ── LEFT PANEL: LIVE PREVIEW ── */
.rt-preview-panel {
  background: #FAFAFA; border-right: 1px solid #E5E5E5;
  position: sticky; top: 56px; height: calc(100vh - 56px);
  overflow-y: auto; display: flex; flex-direction: column;
}
.rt-pp-header {
  padding: 14px 24px;
  background: rgba(250,250,250,.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,.04);
  display: flex; align-items: center; gap: 8px;
  position: sticky; top: 0; z-index: 5;
}
.rt-pp-dot { width: 6px; height: 6px; border-radius: 50%; background: hsl(var(--brand-gold-main)); animation: rt-pulse 1.8s infinite; }
@keyframes rt-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
.rt-pp-label { font-size: 9px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: hsl(var(--brand-gold-main)); }
.rt-pp-sublabel { font-size: 8px; color: #999; margin-left: auto; }
.rt-pp-body { flex: 1; padding: 24px; display: flex; align-items: flex-start; justify-content: center; }
.rt-pp-body > div { width: 100%; max-width: 440px; }

/* ── PREVIEW CARD (public view) ── */
.rt-preview-card {
  background: #fff; border: 1px solid #E5E0D4; border-radius: 16px; overflow: hidden;
  box-shadow: 0 8px 28px rgba(38,28,8,0.06); width: 100%; max-width: 440px;
}
.rt-preview-banner { background: linear-gradient(135deg, var(--gold-800) 0%, #2A1F0A 100%); padding: 20px 18px 16px; }
.rt-preview-banner-title { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 3px; }
.rt-preview-banner-sub { font-size: 11px; color: rgba(255,255,255,.5); }
.rt-preview-section { padding: 14px 18px; }
.rt-preview-section-label { font-size: 9px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: hsl(var(--brand-gold-main)); margin-bottom: 10px; }
.rt-preview-leader { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #fff; border: 1px solid rgba(0,0,0,.04); border-radius: 10px; margin-bottom: 6px; }
.rt-preview-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.85); flex-shrink: 0; background: var(--rt-bg, linear-gradient(135deg,#1a1a1a,#333)); }
.rt-preview-name { font-size: 12px; font-weight: 700; color: #1a1a1a; }
.rt-preview-role { font-size: 10px; color: #888; margin-top: 1px; }
.rt-preview-badge-inline { font-size: 8px; font-weight: 700; color: hsl(var(--brand-gold-main)); padding: 2px 6px; border-radius: 4px; background: rgba(163,133,67,.08); border: 1px solid rgba(163,133,67,.15); display: inline-block; margin-top: 2px; }
.rt-preview-member { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; background: #fff; border: 1px solid rgba(0,0,0,.04); margin-bottom: 5px; }
.rt-preview-member-av { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: rgba(255,255,255,.8); flex-shrink: 0; background: var(--rt-bg, linear-gradient(135deg,#6B4EBF,#8B6EDF)); }
.rt-preview-member-name { font-size: 11px; font-weight: 700; color: #1a1a1a; }
.rt-preview-member-role { font-size: 9px; color: #888; }
.rt-preview-member-star { margin-left: auto; font-size: 12px; color: hsl(var(--brand-gold-main)); }
.rt-preview-empty { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; background: #fafafa; border: 1.5px dashed rgba(0,0,0,.08); margin-bottom: 5px; }
.rt-preview-empty-av { width: 30px; height: 30px; border-radius: 50%; background: #f0f0f0; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.rt-preview-empty-text { font-size: 10px; color: #ccc; font-style: italic; }
.rt-preview-divider { height: 1px; background: rgba(0,0,0,.04); margin: 0 18px; }
.rt-preview-footer { padding: 14px 18px; border-top: 1px solid rgba(0,0,0,.04); text-align: center; }
.rt-preview-footer-text { font-size: 10px; color: #888; margin-bottom: 8px; }
/* Sélecteur élément+classe : bat le preflight Tailwind (button { background-image: none })
   qui neutralise sinon le fond dégradé du bouton. */
button.rt-preview-footer-btn, .rt-preview-footer-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 18px; border-radius: 9999px; font-size: 11px; font-weight: 700;
  color: #fff; text-shadow: 0 1px 2px rgba(60,44,10,.45);
  background-image: var(--gold-fill-deep); border: none;
}

/* ── RIGHT PANEL: FORM ── */
.rt-form-panel { background: #fff; padding: 32px 36px 48px; overflow-y: auto; min-width: 0; }

/* ── TYPOGRAPHY ── */
.rt-form-title { font-size: 24px; font-weight: 700; margin: 0 0 4px; line-height: 1.15; }
.rt-form-title em { font-style: italic; color: hsl(var(--brand-gold-main)); font-weight: 400; }
.rt-form-sub { font-size: 12px; color: #888; margin: 0 0 24px; line-height: 1.5; }

/* ── IMPORT BANNER (future) ── */
.rt-import-banner { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #FAFAFA; border: 1px solid rgba(0,0,0,.06); margin-bottom: 16px; }
.rt-ib-icon { font-size: 20px; flex-shrink: 0; }
.rt-ib-info { flex: 1; }
.rt-ib-title { font-size: 11px; font-weight: 700; color: #1a1a1a; }
.rt-ib-sub { font-size: 9px; color: #888; margin-top: 1px; }
.rt-ib-arrow { font-size: 12px; color: #ccc; }

/* ── SECTIONS ── */
.rt-section { padding: 18px 0; border-bottom: 1px solid rgba(0,0,0,.04); }
.rt-section:last-of-type { border-bottom: none; }
.rt-section-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.rt-section-hint { font-size: 10px; color: #888; margin-bottom: 12px; line-height: 1.5; }

/* ── TEAM CARD ── */
.rt-card-reset { padding: 0; margin-bottom: 6px; }
.rt-team-card--flush { border: none !important; box-shadow: none !important; }
.rt-row-edit { padding: 14px; }
.rt-tip-link { color: hsl(var(--brand-gold-main)); font-weight: 600; }
.rt-team-card { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid rgba(0,0,0,.06); box-shadow: 0 1px 3px rgba(0,0,0,.03), 0 4px 12px rgba(0,0,0,.02); margin-bottom: 6px; transition: all .15s; }
.rt-team-card:hover { border-color: rgba(163,133,67,.2); box-shadow: 0 4px 18px rgba(163,133,67,.12); transform: translateY(-1px); }
.rt-tc-av { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.85); flex-shrink: 0; background: var(--rt-bg, linear-gradient(135deg,#6B4EBF,#8B6EDF)); }
.rt-tc-info { flex: 1; min-width: 0; }
.rt-tc-name { font-size: 12px; font-weight: 700; color: #1a1a1a; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rt-tc-role { font-size: 10px; color: #888; margin-top: 1px; }
.rt-tc-actions { display: flex; gap: 4px; }
.rt-tc-btn { padding: 5px 8px; border-radius: 7px; border: 1px solid rgba(0,0,0,.06); font-size: 10px; color: #999; transition: all .12s; background: none; cursor: pointer; }
.rt-tc-btn:hover { border-color: hsl(var(--brand-gold-main)); color: hsl(var(--brand-gold-main)); transform: translateY(-1px); }
.rt-tc-remove:hover { border-color: #e88; color: #e44; }

/* ── PLACEHOLDER CARD ── */
.rt-team-card--placeholder { opacity: .45; border-style: dashed; }
.rt-tc-av--placeholder { background: #ddd !important; color: #999; }
.rt-tc-name--placeholder { color: #999; }

/* ── ADD / EDIT FORM ── */
.rt-add-form { background: #FAFAFA; border: 1.5px dashed rgba(163,133,67,.2); border-radius: 14px; padding: 16px; margin-top: 8px; }
.rt-add-form[hidden] { display: none; }
.rt-add-form-title { font-size: 10px; font-weight: 700; color: hsl(var(--brand-gold-main)); margin-bottom: 12px; letter-spacing: .3px; text-transform: uppercase; }
.rt-fi-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rt-fg { margin-bottom: 12px; }
.rt-fl { display: block; font-size: 9px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: hsl(var(--brand-gold-main)); margin-bottom: 4px; }
.rt-fl-optional { font-weight: 400; text-transform: none; letter-spacing: 0; color: #ccc; }
.rt-fi { width: 100%; padding: 11px 14px; border-radius: 10px; border: 1.5px solid rgba(0,0,0,.06); font-size: 12px; outline: none; transition: border .15s, box-shadow .15s; background: #fff; font-family: inherit; }
.rt-fi:focus { border-color: var(--gold-primary); box-shadow: 0 0 0 3px rgba(201,169,110,.08); }
.rt-fi::placeholder { color: #ccc; }
.rt-fi-hint { font-size: 9px; color: #999; }
.rt-form-actions { display: flex; gap: 8px; margin-top: 4px; }

/* ── ADD BUTTON ── */
.rt-team-add-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: 9999px; border: 1px dashed rgba(163,133,67,.35); font-size: 12px; font-weight: 600; color: hsl(var(--brand-gold-main)); cursor: pointer; transition: all .12s; margin-top: 8px; background: none; font-family: inherit; }
.rt-team-add-btn:hover { border-color: hsl(var(--brand-gold-main)); background: rgba(163,133,67,.04); }

/* ── TIP BOX ── */
.rt-tip-box { background: #FBF8F1; border: 1px solid rgba(163,133,67,.15); border-radius: 10px; padding: 10px 12px; margin-top: 10px; font-size: 10px; color: var(--gold-800); line-height: 1.6; }
.rt-tip-box b { font-weight: 700; }
.rt-tip-box--error { color: #b91c1c; background: #fef2f2; border-color: #fecaca; margin-bottom: 16px; }

/* ── CTA FOOTER ── */
.rt-cta-row { margin-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rt-cta-row .ds-btn-outline, .rt-cta-row .ds-btn-gold { padding: 7px 10px; }

/* ── FUTURE (no model yet) — grayed + annotated ── */
.rt-future { opacity: .55; pointer-events: none; position: relative; }
.rt-future-badge { display: inline-block; font-size: 8px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--gold-500); background: rgba(163,133,67,.10); border: 1px solid rgba(163,133,67,.20); border-radius: 5px; padding: 2px 6px; margin-left: 6px; vertical-align: middle; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .rt-shell { grid-template-columns: 1fr; }
  .rt-preview-panel { display: none; }
  .rt-form-panel { padding: 24px 20px 40px; }
}

/* Avatars équipe avec photo uploadée : l'image remplit le cercle (sinon initiales + gradient). */
.rt-tc-av--img, .rt-preview-avatar--img { background: none !important; padding: 0; overflow: hidden; }
.rt-tc-av--img img, .rt-preview-avatar--img img { width: 100%; height: 100%; object-fit: cover; }
