/* ==========================================================
   ecomstrike — Personnalités
   Complète style.css (à charger après)
   ========================================================== */

/* ---------- Recherche et filtres ---------- */
.finder { margin-top: 32px; display: grid; gap: 14px; }

.finder input {
  width: 100%;
  height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.03);
  color: var(--white);
  font: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color .3s, background .3s;
}
.finder input::placeholder { color: var(--grey-dark); }
.finder input:focus { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.05); }
.finder input::-webkit-search-cancel-button { filter: invert(1); opacity: .4; }

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

.chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--grey);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: color .3s, background .3s, border-color .3s;
}
.chip:hover { color: var(--white); border-color: rgba(255,255,255,.4); }
.chip.is-on { background: #fff; border-color: #fff; color: #000; font-weight: 500; }
.chip:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.count { margin-top: 18px; font-size: 12.5px; color: var(--grey-dark); }

/* ---------- Liste ---------- */
.people { margin-top: 12px; display: grid; gap: 10px; }

.person {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--white);
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  transition: border-color .35s var(--ease), transform .35s var(--ease), background .35s;
}
.person:hover,
.person:focus-visible {
  border-color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.06);
  transform: translateY(-2px);
}
.person.hide { display: none; }

.face {
  flex: none;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.06);
  font-size: 17px;
  font-weight: 600;
}
.face.lg { width: 72px; height: 72px; font-size: 28px; }

.person .who { flex: 1; min-width: 0; }
.person .who b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.person .role { display: block; margin-top: 3px; font-size: 12.5px; color: var(--grey-dark); }

.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tags span {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 11px;
  color: var(--grey);
}

.person .arrow {
  flex: none;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition: background .35s var(--ease), transform .35s var(--ease);
}
.person .arrow::before {
  content: "";
  width: 5px; height: 5px;
  border-top: 1.4px solid var(--grey);
  border-right: 1.4px solid var(--grey);
  transform: rotate(45deg) translate(-1px, 1px);
}
.person:hover .arrow { background: rgba(255,255,255,.12); transform: translateX(3px); }

.empty {
  display: none;
  margin-top: 32px;
  text-align: center;
  font-size: 14px;
  color: var(--grey-dark);
}
.empty.show { display: block; }

/* ---------- Fil d'Ariane ---------- */
.crumbs { padding-top: 8px; font-size: 12.5px; color: var(--grey-dark); }
.crumbs a { color: var(--grey); text-decoration: none; }
.crumbs a:hover { color: var(--white); }
.crumbs span { margin: 0 4px; }

/* ---------- Fiche ---------- */
.profile { margin-top: 26px; }

.id-card { display: flex; align-items: flex-start; gap: 22px; }

.profile h1 {
  margin-top: 0;
  font-size: clamp(28px, 4.4vw, 46px);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.08;
  background: linear-gradient(180deg, #fff 35%, rgba(255,255,255,.6));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.profile .lead { margin-top: 14px; max-width: 62ch; }
.profile .tags { margin-top: 16px; }

.facts {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.facts > div {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--glass);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.facts dt { font-size: 11.5px; color: var(--grey-dark); }
.facts dd { margin-top: 5px; font-size: 15px; font-weight: 500; }

/* ---------- Montres ---------- */
.watches {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.watch {
  padding: 22px 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--glass);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.watch h3 { font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.watch p { margin-top: 9px; font-size: 13.5px; line-height: 1.6; color: var(--grey-dark); }

/* ---------- Questions ---------- */
.qa { padding: 22px 0; border-bottom: 1px solid var(--line); }
.qa:first-of-type { border-top: 1px solid var(--line); margin-top: 22px; }
.qa h3 { font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.qa p { margin-top: 8px; font-size: 14.5px; line-height: 1.65; color: var(--grey); }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .watches { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .id-card { flex-direction: column; gap: 16px; }
  .face.lg { width: 58px; height: 58px; font-size: 23px; }
  .person { gap: 14px; padding: 14px 16px; }
  .person .tags { display: none; }
  .facts { gap: 10px; }
  .chips { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; padding-bottom: 4px; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; white-space: nowrap; }
}
