/* ================================================================
   PROP PHONE STUDIO — lot3-screens.css
   Styles pour 13 écrans : notes, calendar, weather, news, bank,
   tickets, delivery, camera, browser, notif-center, settings,
   lock-advanced, home-advanced
   ================================================================ */
[id^="screen-"] { color: #fff; }

/* ---------- Notes ---------- */
#screen-notes { background: #0e0e11; }
.notes-header { padding: 12px 16px 6px; display: flex; justify-content: space-between; align-items: center; }
.notes-header input { background: #1c1c20; border: 1px solid #2a2a2f; border-radius: 10px; padding: 6px 10px; color: #fff; font-size: 12px; width: 120px; }
.notes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 16px; overflow-y: auto; }
.notes-card { position: relative; border: 1px solid; border-radius: 10px; padding: 10px; min-height: 80px; cursor: pointer; }
.notes-card b { display: block; font-size: 13px; margin-bottom: 4px; }
.notes-card p { font-size: 11px; color: #ccc; margin: 0; }
.notes-pin { position: absolute; top: 6px; right: 6px; font-size: 11px; }
.notes-date { font-size: 10px; color: #8a8a92; display: block; margin-top: 6px; }
.notes-empty { grid-column: 1/-1; text-align: center; color: #666; padding: 30px; }
.notes-open { height: 100%; padding: 16px; overflow-y: auto; }
.notes-open-bar { display: flex; justify-content: space-between; margin-bottom: 12px; }
.notes-back { background: none; border: none; color: #4f8ef7; font-size: 16px; cursor: pointer; }
.notes-pin-btn { background: none; border: 1px solid #2a2a2f; border-radius: 10px; color: #f0d989; padding: 4px 10px; font-size: 11px; cursor: pointer; }
.notes-content { font-size: 14px; line-height: 1.5; min-height: 100px; }
.notes-checklist { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.notes-check-item { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.notes-check-item .done { text-decoration: line-through; color: #666; }

/* ---------- Calendrier ---------- */
#screen-calendar { background: #0e0e11; overflow-y: auto; }
.cal-header { padding: 12px 16px 8px; display: flex; justify-content: space-between; align-items: center; }
.cal-view-toggle { display: flex; gap: 4px; }
.cal-view-btn { padding: 4px 10px; border-radius: 10px; background: #1c1c20; border: 1px solid #2a2a2f; color: #ccc; font-size: 11px; cursor: pointer; }
.cal-view-btn.active { background: #4f8ef7; border-color: #4f8ef7; color: #fff; }
.cal-reminder-banner { margin: 0 16px 8px; padding: 8px 12px; background: rgba(240,217,137,0.15); border: 1px solid #f0d989; border-radius: 10px; font-size: 12px; }
.cal-events { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.cal-event { display: flex; align-items: center; gap: 12px; padding: 10px; background: #1a1a1d; border-radius: 10px; border-left: 3px solid #4f8ef7; }
.cal-event.pending { border-left-color: #f0d989; } .cal-event.cancelled { border-left-color: #e0577a; opacity: 0.6; }
.cal-event-time { font-weight: 700; font-size: 13px; min-width: 42px; }
.cal-event-body { flex: 1; display: flex; flex-direction: column; }
.cal-event-body b { font-size: 13px; } .cal-event-body span { font-size: 11px; color: #8a8a92; }
.cal-event-status { font-size: 10px; color: #ccc; }

/* ---------- Météo ---------- */
#screen-weather { background: linear-gradient(160deg, #2c5aa0, #16294f); }
.weather-wrap { padding: 20px 16px; text-align: center; }
.weather-alert { background: rgba(224,87,122,0.2); border: 1px solid #e0577a; border-radius: 10px; padding: 8px; font-size: 12px; margin-bottom: 14px; }
.weather-city { font-size: 16px; opacity: 0.9; }
.weather-temp { font-size: 64px; font-weight: 200; margin: 4px 0; }
.weather-cond { font-size: 15px; margin-bottom: 4px; }
.weather-sub { font-size: 12px; opacity: 0.8; margin-bottom: 22px; }
.weather-hourly { display: flex; justify-content: space-between; background: rgba(255,255,255,0.08); border-radius: 14px; padding: 12px 8px; margin-bottom: 12px; }
.weather-hour { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; }
.weather-hour-icon { font-size: 16px; }
.weather-daily { display: flex; flex-direction: column; background: rgba(255,255,255,0.08); border-radius: 14px; overflow: hidden; }
.weather-day { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; font-size: 12px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.weather-day:last-child { border-bottom: none; }
.weather-day-range { opacity: 0.8; }

/* ---------- Actualités ---------- */
#screen-news { background: #0e0e11; overflow-y: auto; }
.news-breaking { background: #7c1919; padding: 6px 16px; font-size: 12px; font-weight: 700; }
.news-hero { padding: 16px; cursor: pointer; }
.news-hero-img { height: 130px; border-radius: 12px; background: linear-gradient(135deg,#3a3a40,#1c1c20); margin-bottom: 8px; }
.news-hero h2 { margin: 4px 0 2px; font-size: 17px; }
.news-cat { display: inline-block; background: #4f8ef7; color: #fff; font-size: 9px; padding: 2px 6px; border-radius: 4px; text-transform: uppercase; }
.news-meta { display: block; font-size: 11px; color: #8a8a92; margin-top: 4px; }
.news-list { padding: 0 16px 16px; }
.news-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid #232327; cursor: pointer; }
.news-thumb { width: 60px; height: 44px; background: #1c1c20; border-radius: 8px; flex-shrink: 0; position: relative; }
.news-video-badge { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.news-item-body b { display: block; font-size: 13px; margin: 3px 0 2px; }
.news-article { padding: 16px; overflow-y: auto; height: 100%; }
.news-back { background: none; border: none; color: #4f8ef7; margin-bottom: 10px; cursor: pointer; }
.news-article-img { height: 160px; border-radius: 12px; background: linear-gradient(135deg,#3a3a40,#1c1c20); margin-bottom: 10px; display: flex; align-items: center; justify-content: center; }
.news-video-player { color: #ccc; }
.news-article h2 { margin: 8px 0 2px; }
.news-article p { font-size: 14px; line-height: 1.6; color: #ddd; margin-top: 14px; }

/* ---------- Banque fictive ---------- */
#screen-bank { background: #0e0e11; overflow-y: auto; }
.bank-wrap { padding: 18px 16px; }
.bank-card { background: linear-gradient(135deg,#2a2a3a,#151520); border-radius: 14px; padding: 16px; margin-bottom: 18px; }
.bank-card-label { font-size: 10px; opacity: 0.7; text-transform: uppercase; }
.bank-card-number { font-size: 16px; letter-spacing: 2px; margin-top: 8px; }
.bank-balance-label { font-size: 12px; color: #8a8a92; }
.bank-balance { font-size: 34px; font-weight: 700; margin: 2px 0 16px; }
.bank-payment-notif { padding: 8px 12px; border-radius: 10px; font-size: 12px; margin-bottom: 14px; }
.bank-payment-notif.declined { background: rgba(224,87,122,0.15); border: 1px solid #e0577a; }
.bank-payment-notif.pending { background: rgba(240,217,137,0.15); border: 1px solid #f0d989; }
.bank-tx-label { font-size: 11px; color: #8a8a92; text-transform: uppercase; margin-bottom: 8px; }
.bank-tx-list { display: flex; flex-direction: column; gap: 8px; }
.bank-tx { display: flex; justify-content: space-between; align-items: center; padding: 10px; background: #1a1a1d; border-radius: 10px; }
.bank-tx-info b { font-size: 13px; display: block; } .bank-tx-info span { font-size: 11px; color: #8a8a92; }
.bank-tx-amount.neg { color: #e0577a; } .bank-tx-amount.pos { color: #34c759; }

/* ---------- Billets / QR ---------- */
#screen-tickets { background: #0e0e11; }
.ticket-wrap { padding: 18px 16px; }
.ticket-card { background: #fff; color: #111; border-radius: 16px; padding: 18px; position: relative; }
.ticket-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ticket-type-icon { font-size: 20px; }
.ticket-status { font-size: 10px; padding: 2px 8px; border-radius: 8px; font-weight: 700; }
.ticket-status.valid { background: #d4f5df; color: #1a7a3c; }
.ticket-status.used { background: #eee; color: #888; }
.ticket-card h2 { margin: 4px 0; font-size: 17px; }
.ticket-route { font-size: 13px; color: #444; margin-bottom: 12px; }
.ticket-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 12px; }
.ticket-details-grid .label { color: #888; display: block; font-size: 10px; }
.ticket-tear { border-top: 2px dashed #ccc; margin: 16px 0; }
.ticket-qr-zone { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ticket-qr-svg { width: 90px; height: 90px; }
.ticket-ref { font-size: 10px; color: #888; letter-spacing: 1px; }
.ticket-control-btn { width: 100%; margin-top: 14px; padding: 10px; background: #1c1c20; border: 1px solid #2a2a2f; border-radius: 10px; color: #fff; font-size: 12px; cursor: pointer; }
.ticket-control { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.ticket-control-icon { width: 60px; height: 60px; border-radius: 50%; background: #34c759; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.ticket-control-ref { color: #8a8a92; font-size: 12px; }
.ticket-control-close { margin-top: 14px; padding: 8px 20px; background: #1c1c20; border: 1px solid #2a2a2f; border-radius: 10px; color: #fff; cursor: pointer; }

/* ---------- Livraison ---------- */
#screen-delivery { background: #0e0e11; }
.delivery-wrap { padding: 16px; }
.delivery-notif { background: rgba(79,142,247,0.15); border: 1px solid #4f8ef7; border-radius: 10px; padding: 8px 12px; font-size: 12px; margin-bottom: 12px; }
.delivery-map { position: relative; height: 100px; background: #1a2b1f; border-radius: 12px; margin-bottom: 14px; overflow: hidden; }
.delivery-map-route { position: absolute; top: 50%; left: 10%; right: 10%; height: 2px; background: repeating-linear-gradient(90deg,#4f8ef7 0 6px,transparent 6px 12px); }
.delivery-map-truck { position: absolute; top: 50%; left: 55%; transform: translate(-50%,-50%); font-size: 20px; }
.delivery-status-badge { display: inline-block; padding: 4px 12px; border-radius: 10px; background: #4f8ef7; font-size: 11px; font-weight: 700; margin-bottom: 8px; }
.delivery-status-badge.delivered { background: #34c759; }
.delivery-tracking { font-size: 13px; color: #ccc; } .delivery-eta { font-size: 13px; margin-top: 4px; } .delivery-address { font-size: 12px; color: #8a8a92; margin: 8px 0 16px; }
.delivery-steps { display: flex; flex-direction: column; gap: 10px; }
.delivery-step { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #666; }
.delivery-step.done { color: #fff; }
.delivery-step-dot { width: 8px; height: 8px; border-radius: 50%; background: #333; }
.delivery-step.done .delivery-step-dot { background: #34c759; }

/* ---------- Caméra ---------- */
#screen-camera { background: #000; }
.camscreen-viewfinder { height: 100%; display: flex; flex-direction: column; justify-content: space-between; background: radial-gradient(circle at center,#222,#000); }
.camscreen-top-bar { display: flex; justify-content: space-between; padding: 14px; }
.camscreen-flash, .camscreen-timer { background: rgba(255,255,255,0.12); border: none; color: #fff; padding: 6px 10px; border-radius: 10px; font-size: 12px; cursor: pointer; }
.camscreen-flash.on { background: #f0d989; color: #000; }
.camscreen-rec-indicator { align-self: center; display: flex; align-items: center; gap: 6px; background: rgba(0,0,0,0.5); padding: 4px 12px; border-radius: 10px; font-size: 12px; }
.camscreen-red-dot { width: 8px; height: 8px; border-radius: 50%; background: #e0342f; animation: cs-blink 1s infinite; }
@keyframes cs-blink { 50%{opacity:0.3} }
.camscreen-zoom-bar { padding: 0 40px; }
.camscreen-zoom-slider { width: 100%; }
.camscreen-bottom-bar { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-bottom: 20px; }
.camscreen-mode-toggle { display: flex; gap: 16px; }
.camscreen-mode-btn { background: none; border: none; color: #999; font-size: 12px; cursor: pointer; }
.camscreen-mode-btn.active { color: #f0d989; font-weight: 700; }
.camscreen-shutter { width: 62px; height: 62px; border-radius: 50%; background: #fff; border: 4px solid rgba(255,255,255,0.4); cursor: pointer; }
.camscreen-shutter.video-mode { background: #e0342f; }
.camscreen-shutter.recording { border-radius: 12px; width: 30px; height: 30px; }
.camscreen-review { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; }
.camscreen-review-media { width: 70%; aspect-ratio: 9/16; background: #1a1a1d; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #666; }
.camscreen-review-actions { display: flex; gap: 16px; }
.camscreen-discard, .camscreen-use { padding: 8px 18px; border-radius: 10px; border: none; font-size: 12px; cursor: pointer; }
.camscreen-discard { background: #2a2a2f; color: #fff; } .camscreen-use { background: #34c759; color: #fff; }

/* ---------- Navigateur fictif ---------- */
#screen-browser { background: #0e0e11; display: flex; flex-direction: column; }
.browserfic-bar { display: flex; gap: 6px; padding: 10px 12px; }
.browserfic-url { flex: 1; padding: 8px 12px; border-radius: 20px; background: #1c1c20; border: 1px solid #2a2a2f; color: #fff; font-size: 12px; }
.browserfic-go { padding: 8px 14px; border-radius: 20px; background: #4f8ef7; border: none; color: #fff; font-size: 12px; cursor: pointer; }
.browserfic-content { flex: 1; padding: 20px 16px; overflow-y: auto; }
.browserfic-loading { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 60px 0; color: #8a8a92; font-size: 12px; }
.browserfic-spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid #2a2a2f; border-top-color: #4f8ef7; animation: cs-spin 0.8s linear infinite; }
@keyframes cs-spin { to{transform:rotate(360deg)} }
.browserfic-error { text-align: center; padding: 50px 20px; color: #e0577a; font-size: 13px; }
.browserfic-error span { font-size: 11px; color: #8a8a92; }
.browserfic-page h2 { margin-top: 0; } .browserfic-page p { color: #ccc; font-size: 13px; line-height: 1.6; }
.browserfic-tabs-bottom { display: flex; border-top: 1px solid #232327; }
.browserfic-tab-btn { flex: 1; padding: 10px; background: none; border: none; color: #8a8a92; font-size: 11px; cursor: pointer; }

/* ---------- Centre de notifications ---------- */
#screen-notif-center { background: #0e0e11; overflow-y: auto; }
.notifctr-banner { padding: 8px 16px; background: #1c1c20; font-size: 12px; border-bottom: 1px solid #2a2a2f; }
.notifctr-banner.urgent { background: rgba(224,87,122,0.2); }
.notifctr-wrap { padding: 12px 16px; }
.notifctr-group-label { font-size: 11px; color: #8a8a92; text-transform: uppercase; margin: 10px 0 6px; }
.notifctr-item { position: relative; display: flex; flex-direction: column; padding: 10px 30px 10px 10px; background: #1a1a1d; border-radius: 10px; margin-bottom: 6px; cursor: pointer; }
.notifctr-item.unread { border-left: 3px solid #4f8ef7; }
.notifctr-item.urgent { border-left-color: #e0577a; }
.notifctr-item-text { font-size: 13px; } .notifctr-item-time { font-size: 10px; color: #8a8a92; margin-top: 3px; }
.notifctr-dismiss { position: absolute; top: 8px; right: 8px; background: none; border: none; color: #666; cursor: pointer; }
.notifctr-empty { text-align: center; color: #666; padding: 40px; }

/* ---------- Paramètres ---------- */
#screen-settings { background: #0e0e11; overflow-y: auto; }
.settingsfic-wrap { padding: 16px; }
.settingsfic-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #232327; font-size: 13px; }
.settingsfic-row.static b { color: #ccc; }
.settingsfic-switch { position: relative; width: 40px; height: 22px; }
.settingsfic-switch input { opacity: 0; width: 0; height: 0; }
.settingsfic-slider { position: absolute; inset: 0; background: #2a2a2f; border-radius: 11px; transition: 0.2s; }
.settingsfic-slider::before { content: ''; position: absolute; width: 18px; height: 18px; left: 2px; top: 2px; background: #fff; border-radius: 50%; transition: 0.2s; }
.settingsfic-switch input:checked + .settingsfic-slider { background: #34c759; }
.settingsfic-switch input:checked + .settingsfic-slider::before { transform: translateX(18px); }
.settingsfic-storage-bar { height: 6px; background: #2a2a2f; border-radius: 3px; margin: 4px 0 14px; overflow: hidden; }
.settingsfic-storage-bar div { height: 100%; background: #4f8ef7; }
.settingsfic-privacy-btn, .settingsfic-lock-btn { width: 100%; padding: 10px; margin-top: 10px; background: #1c1c20; border: 1px solid #2a2a2f; border-radius: 10px; color: #fff; font-size: 13px; cursor: pointer; }

/* ---------- Verrouillage avancé (overlay sur #screen-lock) ---------- */
#lock-advanced-host:empty { display: none; }
#lock-advanced-host { position: absolute; inset: 0; z-index: 40; }
.lockadv-pin-overlay { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; background: rgba(0,0,0,0.75); backdrop-filter: blur(6px); }
.lockadv-pin-dots { display: flex; gap: 12px; }
.lockadv-pin-dots span { width: 12px; height: 12px; border-radius: 50%; border: 1px solid #fff; }
.lockadv-pin-dots span.filled { background: #fff; }
.lockadv-pin-error { color: #e0577a; font-size: 12px; }
.lockadv-pin-grid { display: grid; grid-template-columns: repeat(3, 56px); gap: 12px; }
.lockadv-pin-key { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,0.12); border: none; color: #fff; font-size: 18px; cursor: pointer; }
.lockadv-faceid { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: rgba(0,0,0,0.6); color: #fff; font-size: 12px; }
.lockadv-faceid-ring { width: 70px; height: 70px; border-radius: 50%; border: 3px solid #4f8ef7; animation: cs-spin 1.2s linear infinite; }

/* ---------- Accueil avancé (overlay sur #screen-home) ---------- */
#home-advanced-host { position: relative; z-index: 5; }
.homeadv-search-bar { padding: 8px 20px; }
.homeadv-search-bar input { width: 100%; box-sizing: border-box; padding: 8px 14px; border-radius: 14px; background: rgba(255,255,255,0.12); border: none; color: #fff; font-size: 12px; }
.homeadv-page-dots { display: flex; justify-content: center; gap: 6px; padding: 6px 0; }
.homeadv-page-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.3); }
.homeadv-page-dots span.active { background: #fff; }
.homeadv-folders-row { display: flex; gap: 14px; padding: 8px 20px; }
.homeadv-folder { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10px; cursor: pointer; }
.homeadv-folder-icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,0.15); display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 5px; }
.homeadv-folder-icon span { background: rgba(255,255,255,0.5); border-radius: 3px; }
.homeadv-app-open { position: absolute; inset: 0; background: #101012; z-index: 20; }
.homeadv-app-open-bar { display: flex; align-items: center; gap: 10px; padding: 14px; border-bottom: 1px solid #232327; }
.homeadv-app-close { background: none; border: none; color: #fff; font-size: 16px; cursor: pointer; }
.homeadv-app-open-body { padding: 20px; color: #ccc; font-size: 13px; }

/* ---------- Panneau appareils (Studio) §6 ---------- */
.devices-panel { display: flex; flex-direction: column; gap: 6px; }
.device-row { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 0.8fr; gap: 8px; padding: 8px 10px; background: #1a1a1d; border-radius: 8px; font-size: 12px; align-items: center; }
.device-row.active { border: 1px solid #4f8ef7; }
.device-kind-label { font-weight: 600; }
.device-screen-label { color: #8a8a92; text-transform: capitalize; }
