/* ================================================================
   PROP PHONE STUDIO — lot1-screens.css
   Styles pour : messaging-plus, video-message, video-call-plus, gallery
   ================================================================ */

/* ---------- Messagerie enrichie ---------- */
.msgplus-typing { display: inline-flex; gap: 4px; padding: 10px 14px !important; align-items: center; }
.msgplus-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.5; animation: msgplus-bounce 1.2s infinite; }
.msgplus-dot:nth-child(2) { animation-delay: 0.15s; }
.msgplus-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes msgplus-bounce { 0%,60%,100%{transform:translateY(0);opacity:.5} 30%{transform:translateY(-4px);opacity:1} }

.msgplus-tick { display: block; font-size: 10px; color: #8a8a92; margin-top: 2px; text-align: right; }
.msgplus-tick.read { color: #4f8ef7; }

.msgplus-voice { display: flex; align-items: center; gap: 8px; padding: 8px 12px; min-width: 160px; }
.msgplus-voice-play { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.msgplus-voice-wave { display: flex; align-items: center; gap: 2px; flex: 1; height: 20px; }
.msgplus-voice-wave i { width: 2px; background: currentColor; opacity: 0.6; border-radius: 1px; }
.msgplus-voice-duration { font-size: 11px; opacity: 0.7; }
.msgplus-special.playing .msgplus-voice-play { background: #4f8ef7; }

.msgplus-location { padding: 0; overflow: hidden; border-radius: 12px; min-width: 180px; }
.msgplus-location-map {
  height: 90px;
  background:
    linear-gradient(0deg, rgba(255,255,255,0.06) 1px, transparent 1px) 0 0/20px 20px,
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px) 0 0/20px 20px,
    #2a3f2a;
}
.msgplus-location-label { padding: 8px 10px; font-size: 12px; }

.msgplus-contact { display: flex; align-items: center; gap: 10px; padding: 8px 12px; min-width: 180px; }
.msgplus-contact-avatar { width: 34px; height: 34px; border-radius: 50%; background: #8a8fa3; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.msgplus-contact-info { display: flex; flex-direction: column; }
.msgplus-contact-info b { font-size: 13px; }
.msgplus-contact-info span { font-size: 11px; opacity: 0.7; }

.msgplus-reaction { position: absolute; bottom: -8px; right: 6px; background: #1a1a1d; border-radius: 10px; padding: 1px 4px; font-size: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.4); }

/* ---------- Message video (#screen-video-msg) ---------- */
#screen-video-msg { background: #0c0c0e; color: #fff; display: flex; flex-direction: column; }
.videomsg-head { display: flex; align-items: center; gap: 10px; padding: 10px 16px; }
.videomsg-head .avatar { width: 34px; height: 34px; border-radius: 50%; background: #565c68; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.videomsg-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; gap: 10px; }
.videomsg-card { position: relative; width: 82%; max-width: 320px; aspect-ratio: 9/16; border-radius: 16px; overflow: hidden; background: #1a1a1d; opacity: 0; transform: scale(0.9) translateY(10px); transition: opacity 0.35s ease, transform 0.35s ease; }
.videomsg-card.arrived { opacity: 1; transform: none; }
.videomsg-card video, .videomsg-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.videomsg-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #666; letter-spacing: 3px; }
.videomsg-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.videomsg-playbtn { width: 52px; height: 52px; border-radius: 50%; background: rgba(0,0,0,0.5); color: #fff; border: 1px solid rgba(255,255,255,0.3); font-size: 18px; cursor: pointer; }
.videomsg-progress { position: absolute; left: 10px; right: 10px; bottom: 34px; height: 3px; background: rgba(255,255,255,0.25); border-radius: 2px; }
.videomsg-progress-fill { height: 100%; width: 0%; background: #fff; border-radius: 2px; }
.videomsg-meta { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; justify-content: space-between; align-items: center; font-size: 11px; }
.videomsg-mutebtn { background: rgba(0,0,0,0.5); border: none; color: #fff; border-radius: 50%; width: 24px; height: 24px; cursor: pointer; }
.videomsg-caption { color: #ccc; font-size: 13px; max-width: 82%; text-align: center; }
.videomsg-status { color: #8a8a92; font-size: 11px; }

/* ---------- Appel video enrichi (badges/reconnexion) ---------- */
#call-plus-badges { position: absolute; top: 60px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; z-index: 60; }
.callplus-badge { background: rgba(0,0,0,0.55); color: #fff; padding: 4px 10px; border-radius: 12px; font-size: 11px; }
#call-avatar.camera-off { filter: grayscale(1) brightness(0.6); }
#call-plus-reconnect { position: absolute; inset: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: rgba(0,0,0,0.7); color: #fff; font-size: 13px; }
.callplus-spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.25); border-top-color: #fff; animation: callplus-spin 0.8s linear infinite; }
@keyframes callplus-spin { to { transform: rotate(360deg); } }

/* ---------- Galerie (#screen-gallery) ---------- */
#screen-gallery { background: #0a0a0c; color: #fff; overflow-y: auto; }
.gallery-albums-bar { display: flex; gap: 6px; padding: 10px 12px; overflow-x: auto; }
.gallery-album-chip { flex-shrink: 0; padding: 6px 12px; border-radius: 14px; background: #1a1a1d; border: 1px solid #2a2a2f; color: #ccc; font-size: 12px; cursor: pointer; }
.gallery-album-chip.active { background: #4f8ef7; border-color: #4f8ef7; color: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; padding: 2px; }
.gallery-thumb { position: relative; aspect-ratio: 1; overflow: hidden; cursor: pointer; background: #16161a; }
.gallery-thumb img, .gallery-thumb video { width: 100%; height: 100%; object-fit: cover; }
.gallery-video-badge { position: absolute; bottom: 4px; right: 4px; font-size: 10px; background: rgba(0,0,0,0.6); border-radius: 50%; width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; }
.gallery-empty { grid-column: 1/-1; text-align: center; padding: 40px 10px; color: #666; font-size: 13px; }

.gallery-fullscreen { position: absolute; inset: 0; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gallery-media-wrap { max-width: 100%; max-height: 76%; }
.gallery-media-wrap img, .gallery-media-wrap video { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform 0.25s; }
.gallery-fullscreen.zoomed .gallery-media-wrap img { transform: scale(1.8); cursor: zoom-out; }
.gallery-fullscreen:not(.zoomed) .gallery-media-wrap img { cursor: zoom-in; }
.gallery-close { position: absolute; top: 14px; right: 14px; background: rgba(255,255,255,0.12); border: none; color: #fff; width: 30px; height: 30px; border-radius: 50%; font-size: 14px; cursor: pointer; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); border: none; color: #fff; width: 36px; height: 36px; border-radius: 50%; font-size: 20px; cursor: pointer; }
.gallery-nav.prev { left: 10px; } .gallery-nav.next { right: 10px; }
.gallery-fs-info { position: absolute; bottom: 60px; left: 0; right: 0; text-align: center; padding: 0 20px; }
.gallery-fs-filename { font-size: 12px; color: #ccc; }
.gallery-fs-date { font-size: 11px; color: #777; margin-top: 2px; }
.gallery-fs-caption { font-size: 12px; color: #ddd; margin-top: 6px; }
.gallery-share { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); background: rgba(255,255,255,0.1); border: none; color: #fff; padding: 6px 16px; border-radius: 16px; font-size: 12px; cursor: pointer; }
