/* Page "Le casting" (archive interactive des personnages). Chargée uniquement sur cette page. */
.vc-cast { --cast-r: 18px; }
.vc-cast .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.vc-cast-hero { padding: 48px 0 8px; background: radial-gradient(900px 340px at 50% -80px, rgba(214, 35, 95, .18), transparent 70%); }
.vc-cast-hero h1 { font-family: var(--font-display); font-size: clamp(44px, 8vw, 84px); line-height: .95; margin: 6px 0 12px; color: #fff; }
.vc-cast-hero .vc-archive-eyebrow { display: inline-block; font-family: var(--font-ui); font-size: 13px; letter-spacing: 3px; text-transform: uppercase; font-weight: 700; color: var(--neon); }
.vc-cast-hero .vc-archive-desc { color: rgba(255, 255, 255, .78); max-width: 60ch; font-size: 17px; }
.vc-cast-duo-role, .vc-cast-duo-copy strong, .vc-cast-duo-fact, .vc-cast-duo-more { text-shadow: 0 2px 14px rgba(0, 0, 0, .7); }
.vc-cast-count { color: var(--neon); font-variant-numeric: tabular-nums; }

/* Duo Jason / Lucia */
.vc-cast-duo { display: flex; gap: 14px; margin: 26px 0 8px; height: clamp(300px, 46vw, 460px); }
.vc-cast-duo-panel { position: relative; flex: 1 1 0; overflow: hidden; border-radius: var(--cast-r); border: 1px solid rgba(255, 255, 255, .1); text-decoration: none; color: #fff; background: #1a1922; transition: flex-grow .55s cubic-bezier(.2, .7, .2, 1), filter .4s, box-shadow .4s; filter: saturate(.85) brightness(.85); }
.vc-cast-duo-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transform: scale(1.04); transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.vc-cast-duo-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 17, 22, 0) 35%, rgba(18, 17, 22, .92) 100%); }
.vc-cast-duo:hover .vc-cast-duo-panel:not(:hover), .vc-cast-duo:focus-within .vc-cast-duo-panel:not(:focus) { flex-grow: .62; }
.vc-cast-duo-panel:hover, .vc-cast-duo-panel:focus-visible { flex-grow: 1.5; filter: none; box-shadow: 0 0 0 1px rgba(214, 35, 95, .55), 0 18px 60px rgba(214, 35, 95, .22); }
.vc-cast-duo-panel:hover img, .vc-cast-duo-panel:focus-visible img { transform: scale(1.09); }
.vc-cast-duo-copy { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 20px; display: flex; flex-direction: column; gap: 6px; }
.vc-cast-duo-role { font-family: var(--font-ui); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: #ff7aa2; font-weight: 700; }
.vc-cast-duo-copy strong { font-family: var(--font-display); font-size: clamp(30px, 4.4vw, 52px); line-height: 1; }
.vc-cast-duo-fact { font-size: 14px; color: rgba(255, 255, 255, .78); max-width: 40ch; }
.vc-cast-duo-more { font-family: var(--font-ui); font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.vc-cast-duo-panel:hover .vc-cast-duo-more, .vc-cast-duo-panel:focus-visible .vc-cast-duo-more { opacity: 1; transform: none; }

/* Outils */
.vc-cast-body { padding-top: 22px; padding-bottom: 90px; }
.vc-cast-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.vc-cast-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.vc-cast-chip { font-family: var(--font-ui); font-size: 14px; letter-spacing: 1.2px; text-transform: uppercase; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .04); color: #fff; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.vc-cast-chip span { opacity: .6; margin-left: 4px; }
.vc-cast-chip:hover { border-color: rgba(255, 255, 255, .4); transform: translateY(-1px); }
.vc-cast-chip.is-active { background: var(--neon); border-color: var(--neon); }
.vc-cast-search input { min-width: 240px; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .05); color: #fff; font-size: 15px; }
.vc-cast-search input:focus { outline: 2px solid var(--neon3); outline-offset: 2px; }
.vc-cast-empty { padding: 30px 0; color: rgba(255, 255, 255, .7); }

/* Grille de cartes */
.vc-cast-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; align-items: start; }
.vc-cast-card { position: relative; border-radius: var(--cast-r); overflow: hidden; background: #1a1922; border: 1px solid rgba(255, 255, 255, .09); transition: transform .35s cubic-bezier(.2, .7, .2, 1), border-color .3s, box-shadow .3s; }
.vc-cast-card[hidden] { display: none; }
.vc-cast-card:hover, .vc-cast-card.is-open, .vc-cast-card:focus-within { border-color: rgba(214, 35, 95, .5); box-shadow: 0 16px 44px rgba(0, 0, 0, .45), 0 0 0 1px rgba(214, 35, 95, .25); }
.vc-cast-card.is-picked { border-color: var(--neon3); box-shadow: 0 0 0 2px rgba(0, 153, 187, .5); }
.vc-cast-card-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #121116; }
.vc-cast-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.vc-cast-card:hover .vc-cast-card-media img { transform: scale(1.07); }
.vc-cast-card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(26, 25, 34, .9)); }
.vc-cast-card-copy { padding: 14px 16px 16px; }
.vc-cast-role { display: inline-block; font-family: var(--font-ui); font-size: 11.5px; letter-spacing: 1.8px; text-transform: uppercase; font-weight: 700; color: #a98bf5; }
.vc-role-protagoniste, .vc-role-antagoniste { color: #F0507F; }
.vc-role-faction { color: #a98bf5; }
.vc-role-secondaire { color: var(--neon3); }
.vc-cast-card h2 { font-family: var(--font-display); font-size: 28px; line-height: 1.05; margin: 4px 0 6px; }
.vc-cast-card h2 a { color: #fff; text-decoration: none; }
.vc-cast-card h2 a:hover { color: var(--neon); }
.vc-cast-card p { font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .72); margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vc-cast-card.is-open p { -webkit-line-clamp: unset; }
.vc-cast-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vc-cast-more { font-family: var(--font-ui); font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); background: transparent; color: #fff; cursor: pointer; transition: background .2s; }
.vc-cast-more:hover { background: rgba(255, 255, 255, .1); }
.vc-cast-more[aria-expanded="true"] { background: var(--neon); border-color: var(--neon); }
.vc-cast-pick { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(255, 255, 255, .7); cursor: pointer; }
.vc-cast-pick input { accent-color: var(--neon3); width: 16px; height: 16px; }
.vc-cast-brief { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .1); }
.vc-cast-brief[hidden] { display: none; }
.vc-cast-brief dl { margin: 10px 0 12px; }
.vc-cast-brief dl > div { display: flex; gap: 10px; padding: 6px 0; border-top: 1px solid rgba(255, 255, 255, .06); font-size: 13.5px; }
.vc-cast-brief dt { flex: 0 0 82px; color: rgba(255, 255, 255, .5); }
.vc-cast-brief dd { margin: 0; color: rgba(255, 255, 255, .9); }
.vc-cast-read { font-family: var(--font-ui); font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--neon3); text-decoration: none; }
.vc-cast-read:hover { text-decoration: underline; }

/* Apparition au défilement (uniquement quand le JS l'a préparée) */
.vc-cast-js .vc-reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--vc-i, 0) * 60ms); }
.vc-cast-js .vc-reveal.is-in { opacity: 1; transform: none; }

/* Barre de comparaison + fenêtre */
.vc-cast-tray { position: fixed; z-index: 60; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 18px; border-radius: 999px; background: #23222a; border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 12px 40px rgba(0, 0, 0, .55); max-width: calc(100vw - 24px); animation: vc-tray-in .3s ease-out; }
.vc-cast-tray[hidden] { display: none; }
.vc-cast-tray-text { font-size: 14px; color: #fff; }
.vc-cast-tray-go { padding: 8px 16px; border-radius: 999px; border: 0; background: var(--pill-cyan); color: #fff; font-family: var(--font-ui); letter-spacing: 1.2px; text-transform: uppercase; cursor: pointer; }
.vc-cast-tray-go:disabled { opacity: .4; cursor: not-allowed; }
.vc-cast-tray-clear { background: none; border: 0; color: rgba(255, 255, 255, .6); cursor: pointer; text-decoration: underline; }
@keyframes vc-tray-in { from { opacity: 0; transform: translate(-50%, 14px); } }
.vc-cast-dialog { width: min(760px, calc(100vw - 24px)); max-height: 90vh; overflow: auto; padding: 24px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .15); background: #1b1a21; color: #fff; }
.vc-cast-dialog::backdrop { background: rgba(8, 7, 12, .78); backdrop-filter: blur(4px); }
.vc-cast-dialog-close { position: absolute; top: 10px; right: 14px; background: none; border: 0; color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.vc-cmp-head { display: grid; grid-template-columns: 110px 1fr 1fr; gap: 12px; align-items: end; }
.vc-cmp-head .vc-cmp-col:first-child { grid-column: 2; }
.vc-cmp-img { aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #121116; }
.vc-cmp-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.vc-cmp-col h3 { font-family: var(--font-display); font-size: 26px; margin: 10px 0 2px; }
.vc-cmp-rows { margin: 18px 0 8px; }
.vc-cmp-rows > div { display: grid; grid-template-columns: 110px 1fr 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 14px; }
.vc-cmp-rows dt { color: rgba(255, 255, 255, .5); }
.vc-cmp-rows dd { margin: 0; }
.vc-cmp-links { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px; }
.vc-cmp-links a { color: var(--neon3); font-family: var(--font-ui); letter-spacing: 1.1px; text-transform: uppercase; text-decoration: none; }

@media (max-width: 720px) {
  .vc-cast-duo { flex-direction: column; height: auto; }
  .vc-cast-duo-panel { min-height: 240px; flex: none; }
  .vc-cast-duo:hover .vc-cast-duo-panel:not(:hover) { flex-grow: 1; }
  .vc-cast-duo-more { opacity: 1; transform: none; }
  .vc-cast-search, .vc-cast-search input { width: 100%; }
  .vc-cast-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .vc-cast-card h2 { font-size: 22px; }
  .vc-cast-card p { display: none; }
  .vc-cast-card.is-open p { display: block; }
  .vc-cast-actions { flex-direction: column; align-items: flex-start; }
  .vc-cmp-head, .vc-cmp-rows > div { grid-template-columns: 78px 1fr 1fr; }
}
@media (max-width: 420px) { .vc-cast-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .vc-cast *, .vc-cast *::before, .vc-cast *::after { transition: none !important; animation: none !important; }
  .vc-cast-js .vc-reveal { opacity: 1; transform: none; }
}

/* Page "Lieux" (atlas) : couleurs par type, sur la même base que les rôles du casting. */
.vc-role-ville { color: #F0507F; }
.vc-role-quartier { color: #a98bf5; }
.vc-role-point-dinteret { color: var(--gold); }
.vc-role-nature { color: var(--neon3); }
.vc-atlas .vc-cast-brief dt { flex-basis: 110px; }

/* Page "Théories" : couleurs par statut. */
.vc-role-confirmee { color: #3ddc97; }
.vc-role-en-discussion { color: var(--gold); }
.vc-role-rumeur { color: #F0507F; }
.vc-role-dementie { color: rgba(255, 255, 255, .55); }
.vc-theories .vc-cast-card-media { aspect-ratio: 16 / 9; }
