/*
  Recruiter — Recherche Talents (R12). Migrated verbatim from the canonical
  mockups (app/views/mockups/recruiter/talent_search.html.erb +
  app/views/mockups/shared/_talent_card_styles.html.erb inline <style> blocks).
  Zero inline CSS: the view carries only class hooks; the few dynamic values go
  through data-attrs / Stimulus. Scoped under .ts-page.
*/

.ts-page {
  --ts-gold: #A38543;
  --ts-gold-light: #C9A54A;
  --ts-gold-deep: #6E582C;
  --ts-gold-luminous: linear-gradient(99deg, #BD9733 0%, #E5D29F 25%, #E8CC6E 50%, #E5D29F 75%, #FFF4C2 100%);
  /* --gold-fill : token CTA du design system (défini dans mockups/shared/_design_tokens,
     absent du layout recruteur → on le pose ici pour que var(--gold-fill) résolve). */
  --gold-fill: linear-gradient(135deg, #C4A559 0%, #D4BC7A 40%, #E5D4A0 70%, #EFE2B8 100%);
  --ts-cream: #FBF7EE;
  --ts-cream-border: #E6D5A4;
  --ts-ink: #1E1C18;
  --ts-ink-soft: #4A4640;
  --ts-ink-mute: #8A857A;
  --ts-line: #E8E2D6;
  --ts-bg: #FFFFFF;
  --ts-success: #1B7A4E;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--ts-bg);
  min-height: 100vh;
  color: var(--ts-ink);
}

/* === Hero (#1865 : espacements resserrés) === */
.ts-hero { max-width: 1280px; margin: 0 auto; padding: 26px 40px 10px; text-align: center; }
.ts-hero h1 { font-size: 34px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 8px; font-family: 'Geist', sans-serif; }
/* inline-block + padding droit : sinon la dernière lettre italique sort de la boîte de
   peinture du background-clip:text et se retrouve rognée (anti-crop titres gold). */
.ts-hero h1 em { font-family: 'Geist', system-ui, sans-serif; font-style: italic; font-weight: 600; display: inline-block; padding-right: .14em; margin-right: -.14em; background: linear-gradient(100deg, #C4A559, #E5D4A0, #A38543); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ts-hero p { font-size: 13.5px; color: var(--ts-ink-mute); margin: 0 0 14px; }
.ts-hero p strong { color: var(--ts-gold-deep); font-weight: 600; }

/* === #1634 : barre de recherche textuelle (fonctionnelle, GET) === */
.ts-hero-search { display: flex; align-items: center; gap: 8px; max-width: 620px; margin: 0 auto 14px; padding: 6px 6px 6px 16px; background: #fff; border: 1px solid var(--ts-line); border-radius: 999px; box-shadow: 0 2px 14px rgba(44,44,44,0.06); transition: border-color 0.15s, box-shadow 0.15s; }
.ts-hero-search:focus-within { border-color: var(--ts-cream-border); box-shadow: 0 4px 18px rgba(163,133,67,0.14); }
.ts-hero-search > svg { width: 17px; height: 17px; color: var(--ts-ink-mute); flex-shrink: 0; }
.ts-hero-search input[type="search"] { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-family: inherit; font-size: 13.5px; color: var(--ts-ink); padding: 9px 0; }
.ts-hero-search input[type="search"]::placeholder { color: var(--ts-ink-mute); }
.ts-hero-search button { flex-shrink: 0; height: 36px; padding: 0 20px; border: none; border-radius: 999px; background: var(--ts-gold-luminous); color: #fff; text-shadow: 0 1px 2px rgba(60,44,10,.45); font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; box-shadow: 0 2px 8px rgba(163,133,67,0.28); transition: filter 0.15s; }
.ts-hero-search button:hover { filter: brightness(1.04); }

/* === Mode toggle (#1895 : pills modernes, texte blanc sur gold) === */
.ts-mode-toggle { display: inline-flex; gap: 4px; background: #F4F2EE; border-radius: 999px; padding: 4px; margin-bottom: 14px; }
.ts-mode-btn { background: transparent; border: none; font-family: inherit; font-size: 13px; font-weight: 600; padding: 9px 18px; border-radius: 999px; cursor: pointer; color: var(--ts-ink-mute); transition: all 0.18s; display: inline-flex; align-items: center; gap: 7px; position: relative; }
.ts-mode-btn svg { width: 15px; height: 15px; }
.ts-mode-btn:not([disabled]):hover { color: var(--ts-gold-deep); }
.ts-mode-btn.active { background: var(--ts-gold-luminous); color: #fff; text-shadow: 0 1px 2px rgba(60,44,10,.45); font-weight: 700; box-shadow: 0 2px 8px rgba(189,151,51,0.30); }
.ts-mode-btn[disabled] { cursor: default; opacity: 0.72; }
.ts-beta { background: var(--ts-cream); color: var(--ts-gold-deep); border: 1px solid var(--ts-cream-border); padding: 2px 6px; border-radius: 6px; font-size: 8.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.ts-mode-btn.active .ts-beta { background: rgba(255,255,255,0.55); border-color: rgba(0,0,0,0.10); color: #6E582C; }

/* Future-brick annotation pill (AI mode = Brique 3) */
.ts-future-pill { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 18px; padding: 5px 12px; border-radius: 999px; background: #F5F5F5; color: #8A8A8A; font-size: 11px; font-weight: 600; border: 1px dashed #D9D9D9; }
.ts-future-badge { font-size: 9px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; color: #8B6F33; background: #F8F4ED; border: 1px solid #E8DDC4; border-radius: 6px; padding: 2px 7px; }

.ts-mode-panel { max-width: 1280px; margin: 0 auto; padding: 0 40px; }

/* === Filter bar (#1895 : cellules + chevrons modernisés) === */
.ts-filter-bar { display: flex; align-items: center; gap: 2px; padding: 7px; background: #fff; border: 1px solid var(--ts-line); border-radius: 20px; box-shadow: 0 3px 18px rgba(44,44,44,0.05); max-width: 1180px; margin: 0 auto; }
.ts-cell-wrap { flex: 1; position: relative; min-width: 0; }
.ts-cell { width: 100%; padding: 8px 26px 8px 13px; border-radius: 14px; cursor: pointer; transition: background 0.15s; position: relative; min-width: 0; background: transparent; border: none; text-align: left; font-family: inherit; }
.ts-cell:hover, .ts-cell.active { background: var(--ts-cream); }
.ts-cell-label { display: flex; align-items: center; gap: 5px; color: var(--ts-ink-mute); font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; white-space: nowrap; }
.ts-cell-label svg { width: 11px; height: 11px; opacity: 0.75; flex-shrink: 0; }
.ts-cell-value { display: block; color: var(--ts-ink); font-weight: 600; font-size: 13px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-chevron { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); color: var(--ts-ink-mute); opacity: 0.55; pointer-events: none; transition: transform 0.18s ease; }
.ts-divider { width: 1px; height: 26px; background: var(--ts-line); flex-shrink: 0; }
.ts-reset { width: 40px; height: 40px; border-radius: 50%; background: transparent; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--ts-ink-mute); flex-shrink: 0; text-decoration: none; transition: all 0.15s; }
.ts-reset:hover { background: #F4F2EE; color: var(--ts-gold-deep); }
.ts-search-btn { width: 46px; height: 46px; border-radius: 50%; background: var(--ts-gold-luminous); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #fff; text-shadow: 0 1px 2px rgba(60,44,10,.45); position: relative; box-shadow: 0 3px 10px rgba(163,133,67,0.30); flex-shrink: 0; transition: filter 0.15s; }
.ts-search-btn:hover { filter: brightness(1.04); }

/* Dropdown panels (open via the recruiter-talent-search Stimulus controller) */
.ts-cell-panel { position: absolute; top: calc(100% + 8px); left: 0; min-width: 200px; background: #fff; border: 1px solid var(--ts-line); border-radius: 14px; box-shadow: 0 12px 32px rgba(44,44,44,0.14); padding: 6px; z-index: 50; display: none; }
.ts-cell-wrap.open .ts-cell-panel { display: block; }
.ts-cell-wrap.open .ts-cell { background: var(--ts-cream); }
.ts-cell-wrap.open .ts-chevron { transform: translateY(-50%) rotate(180deg); opacity: 0.9; }
.ts-cell-opt { display: block; width: 100%; text-align: left; padding: 9px 11px; border-radius: 9px; font-size: 13px; color: var(--ts-ink); text-decoration: none; cursor: pointer; }
.ts-cell-opt:hover { background: var(--ts-cream); }
.ts-cell-opt.selected { background: var(--ts-cream); font-weight: 600; color: var(--ts-gold-deep); }

.ts-advanced-link { text-align: center; margin-top: 12px; }
.ts-advanced-link button { background: transparent; border: none; color: var(--ts-ink-mute); font-family: inherit; font-size: 12.5px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 6px; }
.ts-advanced-link button svg { width: 13px; height: 13px; }
.ts-advanced-link button:hover { color: var(--ts-gold-deep); }

/* Ancien double sélecteur de mode (remplacé par le mode-toggle du hero) */
.ts-mode-switch { display: none; }

/* === Results (#1865 : marges resserrées) === */
.ts-results { max-width: 1280px; margin: 18px auto 0; padding: 0 40px 56px; }
.ts-results-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.ts-results-title { font-size: 12px; color: var(--ts-ink-mute); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.ts-results-title strong { color: var(--ts-gold-deep); font-weight: 700; }
/* #1895 : pill de tri */
.ts-results-sort { display: inline-flex; gap: 7px; align-items: center; border: 1px solid transparent; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; color: var(--ts-ink-mute); transition: border-color 0.15s; }
.ts-results-sort:hover { border-color: var(--ts-cream-border); }
.ts-results-sort select { background: transparent; border: none; font-family: inherit; font-size: 12.5px; color: var(--ts-ink); font-weight: 600; cursor: pointer; outline: none; appearance: none; padding-right: 2px; }
.ts-empty { text-align: center; padding: 60px 20px; color: var(--ts-ink-soft); font-size: 14px; border: 1px dashed var(--ts-line); border-radius: 18px; background: #fff; }

/* === Talent card V4 (retour cliente #1864, migré depuis
   mockups/shared/_talent_card_styles). Or #A38543, bordures #E8E2D6, radius 18.
   Structure : photo 236px + badge Verified + bloc identité (nom / poste actuel /
   dispo / pitch vidéo) + timeline « Postes récents » + langues + certifs + éducation
   + CTA. Le badge de match (languette sur la couture) est prêt côté CSS mais reste
   Brique 3 (AI) : non rendu tant qu'aucun score réel n'existe. === */
article.ts-card, .ts-grid { --ts-gold: #A38543; --ts-gold-deep: #6E582C; --ts-gold-50: #FBF7EE; --ts-gold-200: #E6D5A4; --ts-ink: #1E1C18; --ts-ink-soft: #4A4640; --ts-ink-mute: #8A857A; --ts-border: #E8E2D6; --ts-green: #1B7A4E; --ts-green-50: #EAF4EE; --ts-cta: var(--gold-fill); --ts-round: linear-gradient(135deg,#C1A866,#DAC994 55%,#B8994F); }

.ts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
@media (max-width: 1180px) { .ts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .ts-grid { grid-template-columns: 1fr; } }

article.ts-card { position: relative; display: flex; flex-direction: column; padding: 0; margin: 0; background: #fff; border: 1px solid var(--ts-border); border-radius: 18px; overflow: hidden; box-shadow: 0 2px 14px rgba(44,44,44,.05); transition: box-shadow .18s ease, transform .18s ease; cursor: pointer; font-family: 'Geist', system-ui, sans-serif; color: var(--ts-ink); min-width: 0; }
article.ts-card:hover { box-shadow: 0 10px 30px rgba(44,44,44,.10); transform: translateY(-2px); }

/* Photo */
.ts-card .ts-card-photo { position: relative; height: 236px; border-radius: 0; overflow: visible; flex-shrink: 0; }
.ts-card .ts-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ts-card .ts-card-photo-gradient { position: absolute; inset: 0; height: auto; pointer-events: none; background: linear-gradient(180deg,rgba(0,0,0,.26),rgba(0,0,0,0) 38%,rgba(0,0,0,0) 62%,rgba(0,0,0,.40)); }
/* Badge Verified (identité vérifiée Tastellers) — texte noir sur gold */
.ts-card .ts-card-vbadge { position: absolute; top: 12px; right: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: 5px; background: var(--ts-round); color: #242424; font-size: 9.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; line-height: 1; box-shadow: 0 2px 8px rgba(0,0,0,.28); }
.ts-card .ts-card-vbadge::before { content: ""; width: 9px; height: 11px; flex-shrink: 0; background: url("/images/verified-t.svg") no-repeat center/contain; }

/* Languette de match (Brique 3 — rendue seulement si un score existe) */
.ts-card .ts-card-mtab { position: absolute; right: 0; bottom: 0; transform: translateY(50%); z-index: 4; display: inline-flex; border-radius: 999px 0 0 999px; overflow: hidden; box-shadow: 0 3px 12px rgba(30,28,24,.20); }
.ts-card .ts-card-mtab .tsm-badge { border-radius: 999px 0 0 999px; border-right: none; padding-right: 11px; }

/* Corps */
.ts-card .ts-card-info { padding: 0 11px 10px; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ts-card .ts-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding-top: 10px; }
.ts-card .ts-card-idblock { flex: 1; min-width: 0; }
.ts-card .ts-card-name { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; min-width: 0; }
.ts-card .ts-card-name-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ts-card .ts-card-vcheck { flex-shrink: 0; }
.ts-card .ts-card-cur { display: flex; align-items: center; gap: 5px; flex-wrap: nowrap; margin-top: 3px; font-size: 12.5px; color: var(--ts-ink-mute); min-width: 0; }
.ts-card .ts-card-cur b { color: var(--ts-gold-deep); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ts-card .ts-card-cur svg { width: 12px; height: 12px; flex-shrink: 0; }
.ts-card .ts-card-loc { display: inline-flex; align-items: center; gap: 4px; min-width: 0; flex: 0 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-card .ts-card-dispo { margin-top: 5px; }

/* Pitch vidéo */
.ts-card .ts-card-pitch { display: flex; flex-direction: column; align-items: center; gap: 5px; flex-shrink: 0; margin-top: 14px; }
.ts-card .ts-card-pitch-thumb { position: relative; width: 50px; height: 50px; padding: 3px; border: none; border-radius: 50%; background: var(--ts-round); box-shadow: 0 2px 8px rgba(163,133,67,.35); cursor: pointer; }
.ts-card .ts-card-pitch-inner { display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: #E6E0D4; }
.ts-card .ts-card-pitch-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ts-card .ts-card-pitch-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.9); color: #1E1C18; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 5px rgba(0,0,0,.28); }
.ts-card .ts-card-pitch-play svg { width: 11px; height: 11px; margin-left: 1px; }
.ts-card .ts-card-pitch-lbl { font-size: 7.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ts-gold-deep); }

/* Libellés de section (filet doré) */
.ts-card .ts-card-block { margin-top: 10px; min-width: 0; }
.ts-card .ts-card-lbl { display: inline-block; position: relative; padding-bottom: 4px; margin-bottom: 6px; font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ts-gold-deep); }
.ts-card .ts-card-lbl::after { content: ""; position: absolute; left: 0; right: 2px; bottom: 0; height: 1.5px; border-radius: 1px; background: var(--ts-cta); }

/* Timeline « Postes récents » */
.ts-card .ts-card-tl { position: relative; padding-left: 17px; }
.ts-card .ts-card-tl::before { content: ""; position: absolute; left: 4.5px; top: 9px; bottom: 9px; width: 1.5px; background: var(--ts-border); }
.ts-card .ts-card-tl-i { position: relative; padding: 4px 0; min-width: 0; }
.ts-card .ts-card-tl-d { position: absolute; left: -17px; top: 6px; width: 10px; height: 10px; border-radius: 3px; background: #fff; border: 1.5px solid var(--ts-gold-200); }
.ts-card .ts-card-tl-i.is-current .ts-card-tl-d { background: var(--ts-gold); border-color: var(--ts-gold); }
.ts-card .ts-card-tl-l1 { display: flex; align-items: center; gap: 5px; min-width: 0; }
.ts-card .ts-card-tl-t { font-size: 12.5px; font-weight: 700; color: var(--ts-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-card .ts-card-tl-y { font-size: 9px; letter-spacing: .02em; color: var(--ts-ink-mute); flex: 0 0 auto; }
.ts-card .ts-card-tl-now { flex: 0 0 auto; font-size: 7.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ts-green); background: var(--ts-green-50); border: 1px solid #BFE0CC; border-radius: 4px; padding: 1px 4px; }
.ts-card .ts-card-tl-m { font-size: 11.5px; color: var(--ts-ink-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; display: flex; align-items: center; gap: 5px; }
.ts-card .ts-card-tl-m > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ts-card .ts-card-mich { display: inline-flex; align-items: center; gap: 2px; flex: 0 0 auto; line-height: 0; background: #fff; border: 1px solid #E0A9A5; border-radius: 4px; padding: 2px 5px; }

/* Langues / Certifications / Éducation */
.ts-card .ts-card-langs, .ts-card .ts-card-edu { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.ts-card .ts-card-langs .ts-card-lbl, .ts-card .ts-card-edu .ts-card-lbl { margin-bottom: 0; flex: 0 0 auto; }
.ts-card .ts-card-flags { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: -1px; }
.ts-card .ts-card-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.ts-card .ts-card-chip { font-size: 10px; font-weight: 500; color: var(--ts-ink-mute); background: #fff; border: 1px solid var(--ts-border); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.ts-card .ts-card-chip--michelin { display: inline-flex; align-items: center; gap: 4px; color: #B8322B; background: #fff; border-color: #E0A9A5; font-weight: 700; }
.ts-card .ts-card-edu-i { width: 13px; height: 13px; color: var(--ts-gold); flex: 0 0 auto; margin-top: -1px; }
.ts-card .ts-card-edu-n { font-size: 11.5px; font-weight: 600; color: var(--ts-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; margin-top: -1px; }

/* CTA */
.ts-card .ts-card-preview-btn { margin-top: auto; width: 100%; height: 32px; padding: 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--ts-gold-200); border-radius: 10px; background: #fff; color: var(--ts-gold-deep); font-family: inherit; font-size: 10px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; cursor: pointer; transition: background .15s ease; }
.ts-card .ts-card-preview-btn:hover { background: var(--ts-gold-50); }
.ts-card .ts-card-preview-btn svg { width: 12px; height: 12px; }
.ts-card .ts-card-actions { display: flex; flex-direction: row; align-items: stretch; gap: 7px; margin-top: 7px; padding: 0; }
.ts-card .ts-card-actions turbo-frame { flex: 1; display: flex; min-width: 0; }
.ts-card .ts-card-actions form { flex: 1; display: flex; min-width: 0; }
.ts-card .ts-btn { flex: 1; width: auto; height: 32px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: none; border-radius: 10px; font-family: inherit; font-size: 10px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer; transition: all .15s ease; }
.ts-card .ts-btn svg { width: 12px; height: 12px; }
.ts-card .ts-btn.ghost { background: #fff; border: 1px solid var(--ts-border); color: var(--ts-ink); }
.ts-card .ts-btn.ghost:hover { border-color: var(--ts-gold-200); background: var(--ts-gold-50); color: var(--ts-gold-deep); }
.ts-card .ts-btn.ghost.is-on { border-color: #BFE0CC; background: var(--ts-green-50); color: var(--ts-green); }
.ts-card .ts-btn.gold { background: var(--ts-cta); color: #fff; text-shadow: 0 1px 2px rgba(60,44,10,.45); box-shadow: 0 3px 10px rgba(163,133,67,.30); }
.ts-card .ts-btn.gold:hover { filter: brightness(1.04); }

/* === Quick Preview Drawer === */
@keyframes qpFadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes qpSlideLeft { from { transform: translateX(40px); opacity: 0 } to { transform: translateX(0); opacity: 1 } }
.ts-qp-overlay { position: fixed; inset: 0; background: rgba(20,16,10,0.45); backdrop-filter: blur(4px); z-index: 1000; display: flex; justify-content: flex-end; animation: qpFadeIn 0.2s ease-out; }
.ts-qp-overlay[hidden] { display: none; }
.ts-qp-drawer { width: 390px; max-width: 100vw; height: 100vh; background: #fff; display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(0,0,0,0.25); animation: qpSlideLeft 0.28s ease-out; }
.ts-qp-drawer { position: relative; }
.ts-qp-close.is-floating { position: absolute; top: 14px; right: 14px; z-index: 3; }
.ts-qp-content { display: flex; flex-direction: column; height: 100%; }
.ts-qp-hero { position: relative; height: 220px; overflow: hidden; background: #222; flex-shrink: 0; }
.ts-qp-hero img { width: 100%; height: 100%; object-fit: cover; }
.ts-qp-hero-grad { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.75)); }
.ts-qp-close { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 8px; background: #fff; border: 1px solid rgba(0,0,0,0.08); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px; line-height: 1; padding: 0; color: #666; box-shadow: 0 2px 8px rgba(0,0,0,0.12); z-index: 2; transition: all 0.15s; }
.ts-qp-close:hover { background: #1a1a1a; color: #E5D4A0; border-color: #1a1a1a; }
.ts-qp-hero-info { position: absolute; left: 18px; bottom: 14px; color: #fff; right: 60px; }
.ts-qp-hero-name { display: flex; align-items: center; gap: 7px; margin-bottom: 2px; }
.ts-qp-hero-name span { font-size: 18px; font-weight: 700; }
.ts-qp-hero-flag { font-size: 14px; }
.ts-qp-hero-role { font-size: 13px; color: #E5D4A0; font-weight: 500; }
.ts-qp-body { flex: 1; overflow-y: auto; padding: 16px 20px 20px; }
.ts-qp-label { font-size: 9px; font-weight: 700; letter-spacing: 1.2px; color: var(--ts-ink-mute); text-transform: uppercase; margin-bottom: 7px; }
.ts-qp-status { display: flex; gap: 16px; font-size: 11.5px; color: #3A332A; margin-bottom: 16px; }
.ts-qp-status .dot { width: 7px; height: 7px; border-radius: 50%; background: #2E7D32; }
.ts-qp-status .pair { display: flex; align-items: center; gap: 5px; }
.ts-qp-current-box { padding: 10px 12px; border-radius: 8px; background: #FAF6EC; border: 1px solid rgba(201,165,74,0.25); margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; }
.ts-qp-current-role { font-size: 12.5px; font-weight: 700; color: #18140C; }
.ts-qp-current-place { font-size: 10.5px; color: #6B6560; margin-top: 1px; }
.ts-qp-current-badge { font-size: 11px; color: #9A7A28; font-weight: 600; white-space: nowrap; }
.ts-qp-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.ts-qp-badge { font-size: 10.5px; font-weight: 600; color: var(--ts-ink); padding: 4px 10px; border: 1px solid rgba(0,0,0,0.12); border-radius: 4px; }
.ts-qp-langs { font-size: 11.5px; color: #3A332A; margin-bottom: 18px; }
.ts-qp-timeline { position: relative; padding-left: 28px; margin-bottom: 18px; }
.ts-qp-timeline-rail { position: absolute; left: 11px; top: 4px; bottom: 4px; width: 1.5px; background: var(--ts-line); }
.ts-qp-timeline-item { position: relative; margin-bottom: 12px; }
.ts-qp-timeline-item:last-child { margin-bottom: 0; }
.ts-qp-timeline-dot { position: absolute; left: -22px; top: 2px; width: 16px; height: 16px; border-radius: 5px; background: #fff; border: 1.5px solid var(--ts-line); box-shadow: 0 1px 4px rgba(0,0,0,0.08); z-index: 2; }
.ts-qp-timeline-dot.current { border-color: var(--ts-gold); box-shadow: 0 0 0 2.5px rgba(163,133,67,0.15), 0 1px 4px rgba(0,0,0,0.08); }
.ts-qp-timeline-content { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.ts-qp-timeline-main { min-width: 0; flex: 1; }
.ts-qp-timeline-title { font-size: 12px; font-weight: 700; color: var(--ts-ink); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ts-qp-timeline-current-tag { font-size: 9px; font-weight: 700; letter-spacing: 0.4px; padding: 2px 7px; border-radius: 999px; background: #DCFCE7; color: #15803D; border: 1px solid #BBF7D0; text-transform: uppercase; white-space: nowrap; }
.ts-qp-timeline-place { font-size: 10.5px; color: var(--ts-ink-soft); margin-top: 2px; }
.ts-qp-timeline-side { text-align: right; flex-shrink: 0; }
.ts-qp-timeline-year { font-size: 10.5px; color: var(--ts-ink-mute); }
.ts-qp-timeline-stars { font-size: 10.5px; color: var(--ts-gold); margin-top: 1px; }
.ts-qp-bio { font-size: 11.5px; color: #3A332A; line-height: 1.6; margin: 0 0 18px; }
.ts-qp-edu { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(0,0,0,0.06); margin-bottom: 18px; }
.ts-qp-edu-icon { width: 30px; height: 30px; border-radius: 6px; background: linear-gradient(135deg, #FFF5D6, #E5D4A0); display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.ts-qp-edu-school { font-size: 12px; font-weight: 700; color: #18140C; }
.ts-qp-edu-diploma { font-size: 10.5px; color: #6B6560; margin-top: 1px; }
.ts-qp-mentor { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(0,0,0,0.06); }
.ts-qp-mentor-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #C4A559, #D4BC7A); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; font-weight: 800; flex-shrink: 0; }
.ts-qp-mentor-main { flex: 1; min-width: 0; }
.ts-qp-mentor-name { font-size: 12px; font-weight: 700; color: #18140C; }
.ts-qp-mentor-quote { font-size: 10.5px; color: #6B6560; font-style: italic; margin-top: 1px; }
.ts-qp-footer { padding: 12px 20px; border-top: 1px solid rgba(0,0,0,0.08); background: #fff; display: flex; gap: 10px; flex-shrink: 0; }
.ts-qp-footer turbo-frame { flex: 1; display: flex; }
.ts-qp-footer form { flex: 1; display: flex; }
.ts-qp-footer button, .ts-qp-footer a { flex: 1; padding: 13px 0; border-radius: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; cursor: pointer; font-family: inherit; display: flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; }
.ts-qp-footer .shortlist-btn { border: 1.5px solid #C4A559; background: #fff; color: #8C6D34; width: 100%; }
.ts-qp-footer .shortlist-btn.is-shortlisted { background: #E9F6EE; border-color: #1F7A4A; color: #1F7A4A; }
.ts-qp-footer .view-btn { border: none; background: linear-gradient(135deg, #C4A559, #D4BC7A, #E5D4A0, #EFE2B8); color: #fff; box-shadow: 0 2px 10px rgba(184,145,42,0.28); }
.ts-qp-nav-arrow { position: fixed; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 1px solid rgba(0,0,0,0.08); cursor: pointer; color: #1a1a1a; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,0.22), 0 1px 3px rgba(0,0,0,0.08); z-index: 1001; transition: all 0.2s; padding: 0; }
.ts-qp-nav-arrow:hover { background: linear-gradient(135deg, #1a1a1a, #2C2A26); color: #E5D4A0; border-color: #1a1a1a; transform: translateY(-50%) scale(1.08); }
.ts-qp-nav-arrow:disabled { opacity: 0.3; cursor: not-allowed; }
.ts-qp-nav-prev { right: 470px; }
.ts-qp-nav-next { right: 410px; }

/* === Responsive === */
@media (max-width: 720px) {
  .ts-hero { padding: 32px 20px 16px; }
  .ts-hero h1 { font-size: 32px; }
  .ts-mode-panel { padding: 0 20px; }
  .ts-results { padding: 0 20px 40px; }
  .ts-filter-bar { display: grid; grid-template-columns: 1fr auto; gap: 8px; border-radius: 18px; }
  .ts-filter-bar > * { min-width: 0; }
  .ts-divider { display: none; }
  .ts-cell-wrap { flex: 1 1 45%; }
  .ts-results-head { align-items: flex-start; gap: 10px; }
  .ts-results-sort { width: 100%; }
  .ts-results-sort select { width: 100%; }
}

/* ── Drawer : bouton Pitch vidéo + modale (AC3.14) ── */
.ts-qp-video-btn { width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid rgba(0,0,0,0.08); background: #FAF6EC; cursor: pointer; display: flex; align-items: center; gap: 11px; margin-bottom: 18px; font-family: inherit; }
.ts-qp-video-btn:hover { background: #F6EFDC; }
.ts-qp-video-play { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #C4A559, #D4BC7A); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; flex-shrink: 0; }
.ts-qp-video-meta { flex: 1; text-align: left; display: flex; flex-direction: column; }
.ts-qp-video-title { font-size: 12.5px; font-weight: 700; color: #18140C; }
.ts-qp-video-sub { font-size: 10px; color: #888; margin-top: 1px; }
.ts-qp-video-chevron { font-size: 14px; color: #18140C; }

/* Modale centrée par défaut (dialog::modal centré par le navigateur via margin auto). */
.ts-qp-video-modal { border: none; border-radius: 16px; padding: 0; width: min(90vw, 640px); max-width: 90vw; margin: auto; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.ts-qp-video-modal::backdrop { background: rgba(0,0,0,0.55); }
.ts-qp-video-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 12px 18px; border-bottom: 1px solid rgba(0,0,0,0.06); }
.ts-qp-video-modal-title { font-size: 13px; font-weight: 700; color: #18140C; }
.ts-qp-video-modal-tools { display: flex; align-items: center; gap: 4px; }
.ts-qp-video-modal-btn { background: none; border: none; line-height: 1; color: #6B6560; cursor: pointer; padding: 6px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; transition: background 0.15s; }
.ts-qp-video-modal-btn svg { width: 17px; height: 17px; }
.ts-qp-video-modal-btn:hover { background: #F3EFE6; color: #18140C; }
.ts-qp-video-frame { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #1C1A17, #2A2620); display: flex; align-items: center; justify-content: center; }
.ts-qp-video-frame svg { width: 56px; height: 56px; color: rgba(255,255,255,0.85); }
.ts-qp-video-frame:fullscreen { width: 100vw; height: 100vh; aspect-ratio: auto; }

/* Initiales (or sur fond noir) quand le talent n'a pas de photo de profil. */
.ts-card-photo-initials, .ts-qp-hero-initials { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #0D0D0D; color: #C9A54A; font-family: 'Geist', system-ui, sans-serif; font-weight: 700; letter-spacing: 1px; }
.ts-card-photo-initials { font-size: 46px; }
.ts-qp-hero-initials { font-size: 64px; }
