/*
 * L'APPEL — la sonnerie dans la pile des annonces, et la fenêtre d'une transmission (étape 26, 31 octobre 2026 ; maquette validée
 * `plan/essais/appel.html`). Rien n'est redessiné de la grammaire : cadre, barre, tag, plaque viennent de `hud.css`, l'annonce de `os.css`.
 * Ni trame, ni hachure, ni halo ; la mire ne tourne pas — ce qui sonne, ce sont trois traits qui battent. L'or agit, l'argent part.
 */

/* ── LA SONNERIE : une annonce qui ne part pas seule — on ne la clique pas, on choisit l'un de ses deux gestes. ── */
.os__appel { cursor: default; }
.os__appel .tag svg { display: block; width: 13px; height: 13px; }
.appel-ondes { display: flex; gap: 3px; align-items: flex-end; align-self: center; height: 12px; margin-left: auto; padding: 0 12px; }
.appel-ondes i { width: 3px; height: 3px; background: var(--signal); animation: appel-onde 1s ease-in-out infinite; }
.appel-ondes i:nth-child(2) { animation-delay: .15s; }
.appel-ondes i:nth-child(3) { animation-delay: .3s; }
@keyframes appel-onde { 0%, 100% { height: 3px; } 50% { height: 12px; } }
.os__appel-qui { display: flex; gap: 12px; align-items: center; }
.os__appel-visage { flex: none; width: 56px; height: 56px; overflow: hidden; border: 1px solid var(--structureVive); }
.os__appel-visage img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* UN PORTRAIT EN PIED (le capitaine d'un clan, assis à sa table, lot 3a) : la vignette se resserre sur le haut, où est le visage. */
.os__appel-visage.figure img { object-position: 50% 0; transform: scale(2.1); transform-origin: 50% 12%; }
.os__appel-nom { display: grid; gap: 3px; min-width: 0; }
.os__appel-nom strong { font-family: var(--titre); font-size: 15px; letter-spacing: 1px; color: var(--encre); }
.os__appel-nom span, .app-appel__nom span { font-size: 11px; letter-spacing: .6px; color: var(--discret); }
.os__appel-refus { margin: 8px 0 0; font-size: 12px; color: var(--alerte); }

/* ── DEUX GESTES CÔTE À CÔTE, DE MÊME TAILLE : l'or agit, l'argent part (3 octobre 2026). ── */
.appel-gestes { display: flex; gap: 10px; }
.appel-gestes > * { flex: 1 1 0; min-width: 0; }
.appel-argent { --accent: var(--gris); }

/* ── LA FENÊTRE D'UN APPEL : l'écran 16:9, les lignes dessous, les gestes au pied — leur place gardée, rien ne saute. ── */
.app-appel { display: flex; flex-direction: column; gap: 14px; min-height: 100%; padding: 14px; box-sizing: border-box; }
.app-appel__ecran { position: relative; flex: none; aspect-ratio: 16 / 9; overflow: hidden; background: var(--fond); border: 1px solid var(--structureVive); }
.app-appel__video, .app-appel__portrait { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* LE PORTRAIT PROVISOIRE RESPIRE, lentement : il tient la place de la vidéo, pas celle d'une photo. */
/* LA MARCHANDE (31 octobre 2026) : un portrait en hauteur dans un écran 16:9 — le haut de l'image, où sont son visage et son col. */
.app-appel__portrait { object-position: 50% 4%; animation: appel-respire 9s ease-in-out infinite alternate; }
@keyframes appel-respire { from { transform: scale(1.02); } to { transform: scale(1.08) translateY(-1%); } }
.app-appel__bandeau { position: absolute; top: 10px; left: 12px; right: 12px; display: flex; justify-content: space-between;
  font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; }
.app-appel__direct { color: var(--signal); }
.app-appel__duree { color: var(--encre); font-variant-numeric: tabular-nums; }
.app-appel__nom { position: absolute; left: 12px; bottom: 10px; display: grid; gap: 2px; padding: 6px 10px;
  background: color-mix(in srgb, var(--fond) 70%, transparent); }
.app-appel__nom strong { font-family: var(--titre); font-size: 14px; letter-spacing: 1px; color: var(--encre); }
/* LES LIGNES : la dernière dite en clair, les autres s'estompent ; chacune s'écrit, le curseur d'or la suit. */
.app-appel__lignes { flex: 1; display: grid; align-content: start; gap: 8px; min-height: 150px; margin: 0; padding: 0; list-style: none; }
.app-appel__lignes li { font-size: 14px; line-height: 1.5; color: var(--discret); transition: color .4s; }
.app-appel__lignes li.dite { color: var(--encre); }
.app-appel__curseur { display: inline-block; width: 7px; height: 14px; margin-left: 2px; vertical-align: -2px; background: var(--signal);
  animation: appel-clignote .8s steps(2) infinite; }
@keyframes appel-clignote { 50% { opacity: 0; } }
.app-appel > .appel-gestes { flex: none; }
.app-appel > .appel-gestes.attend { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  .appel-ondes i, .app-appel__portrait, .app-appel__curseur { animation: none; }
  .appel-ondes i { height: 8px; }
}
