/*
 * theme_live.css
 * Extrait du <style> inline de app/views/layouts/mockup_live.html.erb (référence mockup).
 * Layout immersif plein écran (live navbar pill + drawer). Identique aux mockups.
 */
:root {
  --bg: #0E0B08;
  --surface: #161210;
  --line: rgba(255,255,255,0.07);
  --line-2: rgba(255,255,255,0.13);
  --gold: #C9A961;
  --gold-light: #E8C875;
  --gold-deep: #8B7340;
  --gold-glow: rgba(201,169,97,0.16);
  --gold-gradient: #E8C875; /* aplat propre (plus de dégradé métallique sur les boutons) */
  --white: #FAF8F4;
  --text: rgba(250,248,244,0.74);
  --text-mute: rgba(250,248,244,0.55);
  --text-faint: rgba(250,248,244,0.28);
  --red: #E04848;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --r-pill: 999px;
  --t: 0.35s cubic-bezier(.22,.7,.18,1);
  --ease: cubic-bezier(.22,.7,.18,1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: #0E0B08; color: #FAF8F4; font-family: var(--sans); }
.live-fullscreen { height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
a { text-decoration: none; }

/* ===== MÊME MENU que les autres pages (pill-nav), en barre statique ===== */
/* Pastille flottante centrée, positionnée comme sur les autres pages (top 1.5rem, sans barre pleine) */
.live-navbar { flex-shrink: 0; display: flex; justify-content: center; align-items: flex-start; padding: 1.5rem 1rem 1rem; background: transparent; border-bottom: none; }
.pill-nav { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 0.55rem 0.5rem 1.4rem; background: rgba(20,16,12,0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line-2); border-radius: var(--r-pill); max-width: 100%; }
.pill-nav__logo { display: inline-flex; align-items: center; padding: 0.35rem 1rem 0.35rem 0; margin-right: 0.5rem; border-right: 1px solid var(--line); height: 38px; flex-shrink: 0; }
.pill-nav__logo img { height: 24px; width: auto; max-width: none; flex-shrink: 0; object-fit: contain; }
.pill-nav__links { list-style: none; display: flex; gap: 0.2rem; }
.pill-nav__links a { display: flex; align-items: center; gap: 0.45rem; padding: 0.7rem 1.2rem; font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text); border-radius: var(--r-pill); transition: all var(--t); white-space: nowrap; }
.pill-nav__links a:hover { color: var(--white); background: rgba(255,255,255,0.04); }
.pill-nav__links a.is-current { color: var(--gold-light); background: rgba(201,169,97,0.14); border: 1px solid rgba(201,169,97,0.35); font-weight: 600; }
.pill-nav__live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); animation: navPulse 1.4s infinite; }
@keyframes navPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.pill-nav__lang { display: flex; align-items: center; gap: 2px; margin-left: 0.4rem; padding: 0.2rem; border: 1px solid var(--line-2); border-radius: var(--r-pill); }
.pill-nav__lang button { background: none; border: 0; cursor: pointer; font-family: var(--sans); font-size: 10px; font-weight: 500; letter-spacing: 0.08em; color: var(--text-mute); padding: 0.3rem 0.5rem; border-radius: var(--r-pill); transition: all var(--t); }
.pill-nav__lang button.is-active { background: rgba(201,169,97,0.15); color: var(--gold-light); }
.pill-nav__cta { margin-left: 0.5rem; padding: 0.72rem 1.4rem; background: var(--gold-gradient); color: var(--bg); border-radius: var(--r-pill); font-family: var(--sans); font-size: 10px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; transition: all var(--t); white-space: nowrap; }
.pill-nav__cta:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -10px rgba(201,169,97,0.55); }
.pill-nav__cta--live { display: inline-flex; align-items: center; gap: 0.5rem; }
.pill-nav__cta--live .pill-nav__live-dot--on-cta { background: var(--red); box-shadow: 0 0 0 2px rgba(14,11,8,0.25); }
.pill-nav__menu { display: none; width: 40px; height: 40px; border-radius: var(--r-pill); align-items: center; justify-content: center; background: var(--gold-gradient); color: var(--bg); cursor: pointer; border: 0; margin-left: 0.4rem; }
@media (max-width: 880px) { .pill-nav__links, .pill-nav__lang { display: none; } .pill-nav__menu { display: inline-flex; } .pill-nav__logo { border-right: 0; margin-right: 0; padding-right: 0; } }
/* Le CTA "Live" reste visible même en petit mobile (Favoris est dans le burger). */

/* Drawer mobile */
.drawer { position: fixed; top: 0; right: 0; width: min(420px, 100%); height: 100vh; background: var(--surface); border-left: 1px solid var(--line); z-index: 60; transform: translateX(100%); transition: transform var(--t); display: flex; flex-direction: column; padding: 2rem 1.75rem; overflow-y: auto; }
.drawer.is-open { transform: translateX(0); }
.drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.drawer__close { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--r-pill); background: transparent; color: var(--white); cursor: pointer; font-size: 1rem; }
.drawer__links { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 2rem; }
.drawer__links a { display: block; padding: 1rem 0; font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: var(--text); border-bottom: 1px solid var(--line); }
.drawer__cta-btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; padding: 1.1rem 1.5rem; font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; background: var(--gold-gradient); color: var(--bg); border-radius: var(--r-pill); }
/* Bouton « Installer l'application » (PWA) dans le drawer mobile. */
.drawer__install { -webkit-appearance: none; appearance: none; display: flex; align-items: center; gap: 0.6rem; width: 100%; padding: 1rem 0; margin-bottom: 0.75rem; background: none; border: 0; border-bottom: 1px solid var(--line); font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-light); cursor: pointer; text-align: left; }
.drawer__lang { display: flex; gap: 4px; margin-top: 1rem; }
.drawer__lang button { flex: 1; background: none; border: 1px solid var(--line-2); cursor: pointer; font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.1em; color: var(--text-mute); padding: 0.7rem; border-radius: var(--r-pill); }
.drawer__lang button.is-active { background: rgba(201,169,97,0.15); color: var(--gold-light); border-color: var(--gold); }

/* ===== FLASH NOTICES (overlay, partagé) ===== */
.flash-stack { position: fixed; top: 1.5rem; right: 1.5rem; z-index: 200; display: flex; flex-direction: column; gap: 0.6rem; max-width: min(380px, calc(100vw - 2rem)); pointer-events: none; }
.flash-card { pointer-events: auto; display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.9rem 1rem; border-radius: 16px; background: rgba(22,18,16,0.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line-2); box-shadow: 0 18px 40px -16px rgba(0,0,0,0.7); color: var(--white); font-family: var(--sans); font-size: 13px; font-weight: 400; line-height: 1.45; transition: transform var(--t), opacity var(--t); }
.flash-card.is-leaving { transform: translateX(115%); opacity: 0; }
.flash-card__icon { flex-shrink: 0; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--gold); }
.flash-card__body { flex: 1; min-width: 0; }
.flash-card__close { flex-shrink: 0; background: none; border: 0; cursor: pointer; color: var(--text-mute); font-size: 1rem; line-height: 1; padding: 0.15rem; border-radius: 8px; transition: color var(--t); }
.flash-card__close:hover { color: var(--white); }
.flash-card--notice .flash-card__icon, .flash-card--success .flash-card__icon { background: var(--gold-light); }
.flash-card--success { border-color: rgba(201,169,97,0.4); }
.flash-card--alert .flash-card__icon, .flash-card--error .flash-card__icon { background: var(--red); }
.flash-card--alert, .flash-card--error { border-color: rgba(224,72,72,0.45); }

/* ============================================================
 * PAGE LIVE (T015) — extrait du mockup public/live, zéro inline.
 * ============================================================ */

/* ----- Keyframes ----- */
@keyframes pulse-dot     { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.7); } }
@keyframes pulse-outbid  { 0%,100% { box-shadow: 0 0 0 0 rgba(224,72,72,0.5); } 50% { box-shadow: 0 0 0 8px rgba(224,72,72,0); } }
@keyframes bid-pop       { 0% { transform: scale(1); color: #E8C875; } 20% { transform: scale(1.12); color: #fff; text-shadow: 0 0 30px #E8C875; } 100% { transform: scale(1); color: #E8C875; } }
@keyframes msg-slide-in  { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes btn-shimmer   { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }
@keyframes unlock-pulse  { 0% { transform: scale(1); } 40% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes toast-in      { from { transform: translateX(-50%) translateY(-20px); opacity: 0; } to { transform: translateX(-50%) translateY(0); opacity: 1; } }

/* ----- Structure globale ----- */
.live-page { display: flex; flex-direction: column; height: 100%; overflow: hidden; }

.live-topbar {
  flex-shrink: 0; background: rgba(201,169,97,0.08);
  border-bottom: 1px solid rgba(201,169,97,0.18); min-height: 36px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.4rem 0.85rem; gap: 0.75rem;
}
.live-topbar__lot { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.live-topbar__title { font-family: var(--sans); font-size: 0.7rem; color: rgba(250,248,244,0.7); letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-topbar__title strong { color: #E8C875; }

.live-pill {
  background: #C9A961; color: #0E0B08; font-family: var(--sans);
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.1em;
  padding: 0.18rem 0.7rem; flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 0.35rem; border-radius: 3px;
}
.live-pill .dot { width: 5px; height: 5px; background: #0E0B08; border-radius: 50%; animation: pulse-dot 1.2s ease-in-out infinite; }

/* ----- Layout 3 colonnes (catalogue | vidéo | chat) ----- */
.live-body { flex: 1; display: grid; grid-template-columns: 300px 1fr 380px; overflow: hidden; min-height: 0; }

.live-catalogue-panel { background: #0E0B08; border-right: 1px solid rgba(201,169,97,0.12); display: flex; flex-direction: column; overflow: hidden; min-height: 0; }
.live-panel-header { flex-shrink: 0; padding: 0.7rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.06); font-family: var(--sans); font-size: 0.68rem; font-weight: 700; color: #FAF8F4; letter-spacing: 0.1em; text-transform: uppercase; }

.live-main { display: flex; flex-direction: column; overflow: hidden; background: #0E0B08; }
.video-wrap { flex: 1 1 auto; position: relative; background: #0E0B08; overflow: hidden; min-height: 0; }
.video-inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #0E0B08; }
.video-wrap .mux-player { position: absolute; inset: 0; width: 100%; height: 100%; }
.video-wrap .mux-player__video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.video-wrap .mux-player__placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: #000; }
/* L'attribut `hidden` (posé par le contrôleur Stimulus quand le stream est dispo)
   doit l'emporter sur le `display: flex` ci-dessus, sinon le placeholder « Stream
   offline » recouvre la vidéo qui joue. */
.video-wrap .mux-player__placeholder[hidden] { display: none; }
.video-wrap .mux-player__placeholder-text { font-family: var(--sans); font-size: 0.8rem; color: rgba(250,248,244,0.5); letter-spacing: 0.08em; }

/* Badges sur la vidéo (seuls éléments tolérés en superposition) */
.video-badges { position: absolute; top: 0.75rem; left: 0.75rem; right: 0.75rem; display: flex; align-items: center; justify-content: space-between; z-index: 2; }
.video-badge--live { background: rgba(220,38,38,0.92); color: #fff; font-family: var(--sans); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em; padding: 0.25rem 0.65rem; border-radius: 4px; display: flex; align-items: center; gap: 0.35rem; }
.video-badge--live .dot { width: 5px; height: 5px; background: #fff; border-radius: 50%; animation: pulse-dot 1s infinite; }
.video-badge--viewers { background: rgba(0,0,0,0.55); color: rgba(250,248,244,0.65); font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.05em; padding: 0.25rem 0.65rem; border-radius: 4px; display: flex; align-items: center; gap: 0.3rem; }

/* Encadré fixe d'infos lot (rectangle plein sous la vidéo) */
.lot-info-panel { flex: 0 0 auto; background: #161210; border-top: 1px solid rgba(201,169,97,0.18); padding: 0.85rem 1rem 0.6rem; }
.lot-info-panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.3rem; }
.lot-info-panel__lotno { font-family: var(--sans); font-size: 0.62rem; color: rgba(201,169,97,0.7); letter-spacing: 0.12em; }
.lot-info-panel__name { font-family: var(--serif); font-size: 1.55rem; color: #FAF8F4; line-height: 1.1; }
.lot-info-panel__breed { font-family: var(--sans); font-size: 0.72rem; color: rgba(250,248,244,0.45); margin-top: 0.15rem; margin-bottom: 0.7rem; }
.lot-info-panel__note { margin-top: 0.6rem; font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.04em; color: rgba(250,248,244,0.4); }

/* Statut badge */
.status-badge { font-family: var(--sans); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em; padding: 0.3rem 0.8rem; border-radius: 20px; white-space: nowrap; display: inline-flex; align-items: center; gap: 0.3rem; }
.status-badge--outbid { background: rgba(224,72,72,0.2); border: 1px solid rgba(224,72,72,0.6); color: #E04848; animation: pulse-outbid 1.8s ease-in-out infinite; }
.status-badge--leader { background: rgba(72,187,120,0.18); border: 1px solid rgba(72,187,120,0.5); color: #68d391; }
.status-badge--neutral { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: rgba(250,248,244,0.55); }
.status-badge[hidden] { display: none; }

/* Ligne enchère */
.bid-line { display: flex; align-items: center; gap: 0.6rem 1.25rem; flex-wrap: wrap; min-height: 3.6rem; }
.bid-line__amount { flex: 0 0 auto; }
.bid-amount-label { font-family: var(--sans); font-size: 0.6rem; color: rgba(201,169,97,0.6); letter-spacing: 0.14em; text-transform: uppercase; }
.bid-amount { font-family: var(--sans); font-size: 2.8rem; font-weight: 800; color: #E8C875; line-height: 1; text-shadow: 0 0 40px rgba(232,200,117,0.25); }
.bid-amount.is-leading { color: #68d391; text-shadow: 0 0 40px rgba(104,211,145,0.25); }
.bid-amount--pop { animation: bid-pop 0.6s ease-out; }
.bid-line__leader { font-family: var(--sans); font-size: 1.05rem; color: rgba(250,248,244,0.55); line-height: 1.5; }
.bid-line__leader strong { color: rgba(250,248,244,0.85); }
.bid-line__leader.is-you strong { color: #68d391; }
.bid-line__leader-flag { font-size: 1.15rem; }
.bid-line__leader-meta { font-size: 0.88rem; color: rgba(250,248,244,0.45); }
.bid-line__actions { margin-left: auto; align-self: center; display: flex; justify-content: flex-end; }

/* Bouton enchère */
.bid-btn { display: flex; align-items: center; justify-content: center; gap: 0.5rem; width: 19rem; max-width: 19rem; background: linear-gradient(100deg, #C9A961 0%, #E8C875 40%, #E8C875 60%, #C9A961 100%); background-size: 200% auto; animation: btn-shimmer 3s linear infinite; color: #0E0B08; font-family: var(--sans); font-weight: 800; font-size: 1rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.95rem 1.5rem; border-radius: 10px; border: 1px solid transparent; cursor: pointer; text-align: center; text-decoration: none; white-space: nowrap; box-shadow: 0 4px 24px rgba(201,169,97,0.35); transition: transform 0.1s, box-shadow 0.1s; }
.bid-btn:hover { transform: scale(1.015); box-shadow: 0 6px 32px rgba(201,169,97,0.55); }
.bid-btn[hidden] { display: none; }
.bid-btn--unlocked { animation: btn-shimmer 3s linear infinite, unlock-pulse 0.4s ease-out; }
.bid-btn--locked { background: rgba(255,255,255,0.06); color: rgba(250,248,244,0.6); border: 1px solid rgba(255,255,255,0.15); animation: none; box-shadow: none; }
.bid-btn--locked:hover { transform: none; box-shadow: none; }
.bid-cta-signin { background: rgba(201,169,97,0.12); color: #E8C875; border: 1px solid rgba(201,169,97,0.4); }
.bid-cta-signin:hover { box-shadow: 0 4px 24px rgba(201,169,97,0.3); }

/* Toast surenchéri */
.outbid-toast { position: fixed; top: 80px; left: 50%; transform: translateX(-50%); background: rgba(224,72,72,0.95); color: #fff; font-family: var(--sans); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; padding: 0.5rem 1.25rem; border-radius: 8px; white-space: nowrap; z-index: 200; box-shadow: 0 4px 20px rgba(224,72,72,0.4); animation: toast-in 0.3s ease-out, pulse-outbid 2s ease-in-out 0.3s infinite; }
.outbid-toast[hidden] { display: none; }

/* ----- Onglets ----- */
.live-tabs { display: flex; border-bottom: 1px solid rgba(255,255,255,0.06); flex-shrink: 0; }
.live-tab { flex: 1; padding: 0.6rem 0.5rem; font-family: var(--sans); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(250,248,244,0.35); background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer; text-align: center; transition: color 0.2s, border-color 0.2s; }
.live-tab:hover { color: rgba(250,248,244,0.6); }
.live-tab.is-active { color: #C9A961; border-bottom-color: #C9A961; }
.tab-panel { display: none; flex-direction: column; flex: 1; overflow: hidden; min-height: 0; }
.tab-panel.is-active { display: flex; }

/* ----- Onglet/colonne Lots (catalogue) ----- */
.lot-info-tab { flex: 1; overflow-y: auto; padding: 0.75rem; min-height: 0; }
.lot-info-tab::-webkit-scrollbar { width: 3px; }
.lot-info-tab::-webkit-scrollbar-track { background: transparent; }
.lot-info-tab::-webkit-scrollbar-thumb { background: rgba(201,169,97,0.2); border-radius: 2px; }
.lots-count { font-family: var(--sans); font-size: 0.55rem; color: rgba(250,248,244,0.35); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.6rem; }

.lot-row { display: flex; align-items: center; gap: 0.6rem; padding: 0.45rem; border-radius: 10px; margin-bottom: 0.35rem; cursor: pointer; border: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.02); text-decoration: none; }
.lot-row--live { border-color: rgba(201,169,97,0.4); background: rgba(201,169,97,0.07); }
.lot-row--sold { opacity: 0.55; }
.lot-row__img { width: 42px; height: 42px; border-radius: 8px; background-size: cover; background-position: center; flex-shrink: 0; border: 1px solid rgba(255,255,255,0.08); overflow: hidden; }
.lot-row__img-el { width: 100%; height: 100%; object-fit: cover; display: block; }
.lot-row__body { flex: 1; min-width: 0; }
.lot-row__head { display: flex; align-items: center; gap: 0.4rem; }
.lot-row__num { font-family: var(--sans); font-size: 0.5rem; color: rgba(250,248,244,0.35); letter-spacing: 0.06em; }
.lot-row__status { font-family: var(--sans); font-size: 0.48rem; font-weight: 700; letter-spacing: 0.06em; padding: 0.05rem 0.35rem; border-radius: 3px; }
.lot-row__status--live { background: rgba(224,72,72,0.2); color: #E04848; }
.lot-row__status--upcoming, .lot-row__status--pending { background: rgba(66,153,225,0.15); color: #63b3ed; }
.lot-row__status--sold, .lot-row__status--passed { background: rgba(113,128,150,0.15); color: #a0aec0; }
.lot-row__name { font-family: var(--serif); font-size: 0.82rem; color: #FAF8F4; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lot-row__breed { font-family: var(--sans); font-size: 0.55rem; color: rgba(250,248,244,0.35); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lot-row__price { text-align: right; flex-shrink: 0; font-family: var(--sans); font-size: 0.78rem; font-weight: 700; color: rgba(250,248,244,0.6); }
.lot-row--live .lot-row__price { color: #E8C875; }

.lots-link { display: flex; align-items: center; justify-content: center; gap: 0.4rem; margin-top: 0.6rem; padding: 0.55rem; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; font-family: var(--sans); font-size: 0.66rem; font-weight: 600; color: rgba(201,169,97,0.8); text-decoration: none; letter-spacing: 0.06em; }

/* ----- Onglet Lot info (pédigré + view full profile) ----- */
.info-section-title { font-family: var(--sans); font-size: 0.55rem; font-weight: 700; color: rgba(250,248,244,0.3); letter-spacing: 0.1em; text-transform: uppercase; margin: 0.75rem 0 0.5rem; }
.info-section-title:first-child { margin-top: 0; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }
.info-cell { margin-bottom: 0.3rem; }
.info-cell-label { font-family: var(--sans); font-size: 0.55rem; color: rgba(250,248,244,0.3); letter-spacing: 0.06em; text-transform: uppercase; }
.info-cell-value { font-family: var(--sans); font-size: 0.78rem; color: #FAF8F4; }
.pedigree-card { background: rgba(201,169,97,0.06); border: 1px solid rgba(201,169,97,0.15); border-radius: 8px; padding: 0.5rem 0.65rem; margin-bottom: 0.35rem; }
.pedigree-card__role { font-family: var(--sans); font-size: 0.5rem; color: rgba(201,169,97,0.6); letter-spacing: 0.08em; text-transform: uppercase; }
.pedigree-card__name { font-size: 0.82rem; color: #FAF8F4; font-weight: 500; }
.pedigree-row { display: flex; gap: 0.35rem; margin-bottom: 0.35rem; padding-left: 0.5rem; }
.pedigree-row__cell { flex: 1; border-left: 2px solid rgba(201,169,97,0.2); border-radius: 0 6px 6px 0; background: rgba(255,255,255,0.02); padding: 0.35rem 0.5rem; }
.pedigree-row__role { font-family: var(--sans); font-size: 0.45rem; color: rgba(250,248,244,0.28); letter-spacing: 0.06em; text-transform: uppercase; }
.pedigree-row__name { font-size: 0.66rem; color: rgba(250,248,244,0.7); }
.full-profile-link { display: flex; align-items: center; justify-content: center; gap: 0.4rem; margin-top: 0.9rem; padding: 0.6rem; background: rgba(201,169,97,0.08); border: 1px solid rgba(201,169,97,0.2); border-radius: 8px; font-family: var(--sans); font-size: 0.68rem; font-weight: 600; color: #C9A961; text-decoration: none; letter-spacing: 0.06em; }

/* ----- Flux d'enchères ----- */
.bid-feed { flex: 1; overflow-y: auto; padding: 0.6rem 0.75rem; display: flex; flex-direction: column; gap: 0.3rem; min-height: 0; }
.bid-feed::-webkit-scrollbar { width: 3px; }
.bid-feed::-webkit-scrollbar-thumb { background: rgba(201,169,97,0.2); border-radius: 2px; }
.bid-feed__row { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; font-family: var(--sans); font-size: 0.85rem; padding: 0.4rem 0.65rem; border-radius: 5px; border: 1px solid rgba(201,169,97,0.25); background: rgba(201,169,97,0.06); animation: msg-slide-in 0.25s ease-out both; }
.bid-feed__name { color: #E8C875; font-weight: 700; }
.bid-feed__verb { color: rgba(250,248,244,0.55); }
.bid-feed__amount { color: #fff; font-weight: 800; }
.bid-feed__empty { font-family: var(--sans); font-size: 0.78rem; color: rgba(250,248,244,0.35); padding: 0.75rem; text-align: center; }

/* ----- Chat (Brick 2 — grisé/désactivé) ----- */
.live-chat-panel { background: #0E0B08; border-left: 1px solid rgba(201,169,97,0.12); display: flex; flex-direction: column; overflow: hidden; min-height: 0; }
.chat-header { flex-shrink: 0; padding: 0.7rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: space-between; }
.chat-header__title { font-family: var(--sans); font-size: 0.68rem; font-weight: 700; color: #FAF8F4; letter-spacing: 0.08em; }
.brick2-badge { font-family: var(--sans); font-size: 0.5rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #C9A961; background: rgba(201,169,97,0.12); border: 1px solid rgba(201,169,97,0.3); padding: 0.15rem 0.5rem; border-radius: 999px; }
.brick2-block { position: relative; flex: 1; display: flex; flex-direction: column; overflow: hidden; min-height: 0; opacity: 0.45; filter: grayscale(0.6); pointer-events: none; user-select: none; }
.brick2-block__overlay { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; }
.brick2-block__overlay-label { font-family: var(--sans); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(250,248,244,0.7); background: rgba(14,11,8,0.7); border: 1px solid rgba(201,169,97,0.3); padding: 0.4rem 0.9rem; border-radius: 999px; }
.chat-messages { flex: 1; overflow: hidden; padding: 0.6rem 0.75rem; display: flex; flex-direction: column; gap: 0.3rem; }
.chat-msg { font-size: 0.92rem; font-family: var(--sans); line-height: 1.5; padding: 0.4rem 0.65rem; border-radius: 5px; word-break: break-word; }
.chat-msg__user { font-weight: 600; color: #C9A961; }
.chat-msg__time { color: rgba(250,248,244,0.18); font-size: 0.72rem; }
.chat-msg__text { color: rgba(250,248,244,0.7); }
.chat-msg--official { background: rgba(201,169,97,0.1); border: 1px solid rgba(201,169,97,0.2); color: #E8C875; font-weight: 500; }
.chat-reactions { flex-shrink: 0; padding: 0.55rem 0.8rem; border-top: 1px solid rgba(255,255,255,0.04); display: flex; gap: 0.5rem; flex-wrap: wrap; }
.reaction-btn { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); border-radius: 18px; padding: 0.35rem 0.6rem; font-size: 1.15rem; }
.chat-input-zone { flex-shrink: 0; padding: 0.7rem 0.8rem; border-top: 1px solid rgba(255,255,255,0.06); display: flex; gap: 0.5rem; align-items: center; }
.chat-input { flex: 1; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.09); border-radius: 6px; padding: 0.6rem 0.85rem; color: #FAF8F4; font-family: var(--sans); font-size: 0.9rem; }
.chat-send-btn { background: rgba(201,169,97,0.18); border: 1px solid rgba(201,169,97,0.3); color: #C9A961; border-radius: 6px; padding: 0.55rem 1rem; font-size: 1.05rem; }

/* ----- Modale de confirmation d'enchère ----- */
.bid-modal { display: none; position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,0.75); backdrop-filter: blur(4px); align-items: center; justify-content: center; }
.bid-modal.is-open { display: flex; }
.bid-modal__card { background: #161210; border: 1px solid rgba(201,169,97,0.3); border-radius: 16px; padding: 2rem; max-width: 400px; width: 90%; text-align: center; box-shadow: 0 8px 40px rgba(0,0,0,0.6); }
.bid-modal__icon { display: flex; justify-content: center; margin-bottom: 0.75rem; color: #E8C875; }
.bid-modal__title { font-family: var(--serif); font-size: 1.4rem; color: #FAF8F4; margin-bottom: 0.5rem; }
.bid-modal__sub { font-size: 0.8rem; color: rgba(250,248,244,0.5); margin-bottom: 1.5rem; font-family: var(--sans); }
.bid-modal__sub strong { color: #FAF8F4; }
.bid-modal__box { background: rgba(201,169,97,0.1); border: 1px solid rgba(201,169,97,0.25); border-radius: 12px; padding: 1.25rem; margin-bottom: 1.5rem; }
.bid-modal__box-label { font-family: var(--sans); font-size: 0.6rem; color: rgba(201,169,97,0.6); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.5rem; }
.bid-modal__amount { font-family: var(--sans); font-size: 2.2rem; font-weight: 800; color: #E8C875; line-height: 1; }
.bid-modal__breakdown { margin-top: 1rem; padding-top: 0.85rem; border-top: 1px solid rgba(201,169,97,0.2); font-family: var(--sans); font-size: 0.78rem; text-align: left; }
.bid-modal__line { display: flex; justify-content: space-between; color: rgba(250,248,244,0.55); margin-bottom: 0.35rem; }
.bid-modal__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 0.5rem; margin-top: 0.5rem; border-top: 1px solid rgba(255,255,255,0.08); }
.bid-modal__total-label { font-weight: 600; color: #FAF8F4; letter-spacing: 0.04em; }
.bid-modal__total-val { font-weight: 800; font-size: 1.1rem; color: #FAF8F4; }
.bid-modal__actions { display: flex; gap: 0.75rem; }
.bid-modal__cancel { flex: 1; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: rgba(250,248,244,0.6); font-family: var(--sans); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; padding: 0.85rem; border-radius: 8px; cursor: pointer; }
.bid-modal__confirm { flex: 1; background: #E8C875; color: #0E0B08; font-family: var(--sans); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.85rem; border-radius: 999px; border: 1px solid #C9A961; cursor: pointer; }
.bid-modal__fine { font-size: 0.65rem; color: rgba(250,248,244,0.25); margin-top: 0.75rem; font-family: var(--sans); }

/* Erreur d'enchère (Turbo Stream cible) */
.bid-flash-error { font-family: var(--sans); font-size: 0.72rem; color: #E04848; margin-top: 0.5rem; }

/* Lien retour liste lots / nav lot */
.lots-back { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.75rem; }
.lots-back__btn { display: flex; align-items: center; gap: 0.4rem; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); color: rgba(201,169,97,0.85); font-family: var(--sans); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.4rem 0.7rem; border-radius: 999px; cursor: pointer; }
.lots-back__btn:hover { border-color: rgba(201,169,97,0.4); }
.lots-step { display: flex; align-items: center; gap: 0.35rem; }

/* ----- État d'attente (aucune vente live) ----- */
.live-waiting { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem; gap: 0.75rem; }
.live-waiting__title { font-family: var(--serif); font-size: 1.8rem; color: #FAF8F4; }
.live-waiting__text { font-family: var(--sans); font-size: 0.85rem; color: rgba(250,248,244,0.5); max-width: 28rem; }
.live-waiting__cta { margin-top: 0.75rem; }

/* Compte à rebours pré-vente sur la page live (vente programmée, pas de lot live) */
.live-cd { display: flex; gap: 0.75rem; align-items: flex-end; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }
.live-cd__unit { display: flex; flex-direction: column; align-items: center; min-width: 3.5rem; }
.live-cd__num { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3rem); font-weight: 300; line-height: 1; color: #C9A961; font-variant-numeric: tabular-nums; }
.live-cd__lbl { font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(250,248,244,0.4); margin-top: 0.4rem; }
.live-cd__sep { font-family: var(--serif); font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 300; color: rgba(201,169,97,0.5); line-height: 1; padding-bottom: 0.9rem; }
.live-waiting__date { font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(250,248,244,0.45); margin-top: 0.85rem; }

/* ----- Paliers responsive ----- */
@media (max-width: 1100px) { .live-body { grid-template-columns: 1fr 340px; } .live-catalogue-panel { display: none; } }
@media (max-width: 860px)  { .live-body { grid-template-columns: 1fr; } .live-chat-panel { display: none; } }
@media (max-width: 1024px) {
  .bid-line { align-items: flex-start; }
  .bid-line__leader { margin-left: auto; text-align: right; }
  .bid-line__actions { flex-basis: 100%; margin-left: 0; justify-content: stretch; }
  .bid-btn { width: 100%; max-width: none; }
}
@media (max-width: 768px) {
  .live-fullscreen { height: auto; overflow: visible; }
  .live-fullscreen > main { overflow: visible; flex: 0 0 auto; }
  .live-page { height: auto; min-height: calc(100vh - 68px); overflow: visible; }
  .live-body { display: flex; flex-direction: column; overflow: visible; }
  .live-main { order: 1; overflow: visible; }
  .live-chat-panel { display: flex; order: 2; height: 65vh; border-left: none; border-top: 1px solid rgba(201,169,97,0.18); }
  .live-catalogue-panel { display: flex; order: 3; height: 65vh; border-right: none; border-top: 1px solid rgba(201,169,97,0.18); }
  .video-wrap { flex: 0 0 auto; height: 40vh; }
  .bid-amount { font-size: 2.4rem; }
  .bid-btn { font-size: 0.9rem; padding: 0.9rem; }
}
@media (max-width: 480px) {
  .bid-line { gap: 0.4rem 0.75rem; }
  .bid-amount { font-size: 2.1rem; }
  .bid-line__leader { font-size: 0.95rem; }
}

/* État "upcoming" (vente programmée, pas encore live) — badge honnête, doré, sans dot rouge */
.live-pill--upcoming {
  background: rgba(201, 169, 97, 0.14);
  color: var(--gold-light, #E8C875);
  border: 1px solid rgba(201, 169, 97, 0.35);
}
.live-pill--upcoming .dot { display: none; }
.video-badge--upcoming {
  background: rgba(201, 169, 97, 0.16);
  color: var(--gold-light, #E8C875);
}
.video-badge--upcoming .dot { display: none; }
