/* Recruiter "Équipe" management page (R7). Pixel-perfect copy of the canonical
   mockup /mockups/recruiter/team, bound to real TeamMembers. All rules scoped
   under .page-recruiter-team so they never leak into the shared chrome.
   Zero inline CSS in the view (dynamic avatar gradients passed via --rt-bg).
   Future-brick blocks (LinkedIn import / Ambassador invitation = Brique 4) are
   grayed + annotated via .rt-future. */

.page-recruiter-team {
  --brand-gold-main: 41 43% 45%;
  --grad-primary: linear-gradient(99deg, #BD9733 0%, #E5D29F 25%, #E8CC6E 50%, #E5D29F 75%, #FFF4C2 100%);
  font-family: 'Geist', system-ui, sans-serif;
  color: #1a1a1a;
}
.page-recruiter-team *, .page-recruiter-team *::before, .page-recruiter-team *::after { box-sizing: border-box; }
.page-recruiter-team a { text-decoration: none; color: inherit; }

/* ── HEADER ── */
.rt-head { margin-bottom: 24px; }
.rt-head-title {
  font-family: 'Geist', system-ui, sans-serif;
  font-size: 24px; font-weight: 700; line-height: 1.15; margin: 0 0 4px;
}
.rt-head-title em { font-style: italic; color: hsl(var(--brand-gold-main)); font-weight: 400; }
.rt-head-sub { font-size: 12px; color: #888; line-height: 1.5; margin: 0; max-width: 560px; }

/* ── 2-COL SHELL ── */
.rt-shell { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 1024px) { .rt-shell { grid-template-columns: 40% 60%; } }

/* ── LEFT — LIVE PREVIEW ── */
.rt-preview-col { position: sticky; top: 90px; align-self: start; }
.rt-pp-header {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.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: 9px; color: #999; margin-left: auto; }

.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);
}
.rt-preview-banner { background: linear-gradient(135deg, #5A4A25 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-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; }
.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: #1a1208; background: var(--grad-primary); border: none; }

/* ── RIGHT — FORM / MANAGEMENT ── */
.rt-form-col { min-width: 0; }

/* IMPORT BANNER (future brick) */
.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-preview-member-star { margin-left: auto; font-size: 12px; color: hsl(var(--brand-gold-main)); }
.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: #C9A96E; box-shadow: 0 0 0 3px rgba(201,169,110,.08); }
.rt-fi::placeholder { color: #ccc; }
.rt-fi-select { appearance: none; color: #555; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center/14px no-repeat; }
.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: #5A4A25; 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; }

/* FUTURE-BRICK ANNOTATION */
.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: #9a8350; 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; }

@media (max-width: 1023px) {
  .rt-preview-col { display: none; }
}

/* 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; }
