@font-face { font-family: "InterVar"; src: url("/player/fonts/inter-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "InterVar"; src: url("/player/fonts/inter-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* bigo · lecteur public. Thème iOS sombre, polices système, aucune image d'interface. */
:root {
  --accent: #5b4bff;
  --bg: #000;
  --cell: #1c1c1e;
  --cell-2: #2c2c2e;
  --sep: rgba(255, 255, 255, .1);
  --text: #fff;
  --dim: rgba(235, 235, 245, .6);
  --dimmer: rgba(235, 235, 245, .32);
  --blue: #0a84ff;
  --green: #30d158;
  --red: #ff453a;
  --yellow: #ffd60a;
  --sb-h: 48px;
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "InterVar", Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #000; overscroll-behavior: none; touch-action: manipulation; }
body { color: var(--text); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
img, video { display: block; -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }
input { font: inherit; }

/* ---------- scène et cadre ---------- */
#app { position: fixed; inset: 0; display: grid; place-items: center; overflow: hidden; background: #000; }
.device { position: relative; width: 100%; height: 100%; overflow: hidden; background: #000; isolation: isolate; }
@media (min-width: 560px) and (min-height: 640px) {
  #app { background: radial-gradient(110% 90% at 50% 0%, #241d3a 0%, #0c0a14 62%, #050408 100%); }

  .stage-foot { position: fixed; bottom: 14px; left: 0; right: 0; text-align: center; font-size: 12px; color: rgba(255,255,255,.38); }
  .stage-foot a, .stage-foot button { color: rgba(255,255,255,.55); text-decoration: none; }
}
.stage-foot { display: none; }
@media (min-width: 560px) and (min-height: 640px) { .stage-foot { display: block; } }

.screen { position: absolute; inset: 0; overflow: hidden; background: #000; }
.screen.t-open { animation: t-open .38s cubic-bezier(.2, .8, .25, 1); }
.screen.t-close { animation: t-close .3s cubic-bezier(.3, 0, .25, 1); }
.screen.t-push { animation: t-push .3s cubic-bezier(.25, .7, .25, 1); }
.screen.t-pop { animation: t-pop .3s cubic-bezier(.25, .7, .25, 1); }
@keyframes t-open { from { opacity: 0; transform: scale(.3); } 45% { opacity: 1; } to { transform: scale(1); } }
@keyframes t-close { from { opacity: .3; transform: scale(1.1); } to { opacity: 1; transform: scale(1); } }
@keyframes t-push { from { opacity: .3; transform: translateX(9%); } to { opacity: 1; transform: none; } }
@keyframes t-pop { from { opacity: .3; transform: translateX(-9%); } to { opacity: 1; transform: none; } }

.scroll { position: absolute; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }
.scroll::-webkit-scrollbar { display: none; }

/* ---------- barre de statut ---------- */
.sb { position: absolute; z-index: 350; top: 0; left: 0; right: 0; height: calc(var(--sb-h) + env(safe-area-inset-top, 0px)); padding: calc(env(safe-area-inset-top, 0px) + 15px) 30px 0 34px; display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none; color: #fff; font-weight: 600; font-size: 16px; letter-spacing: -.2px; }
.sb.on-wall { text-shadow: 0 1px 3px rgba(0,0,0,.35); }
.sb.hidden { visibility: hidden; }
.sb-right { display: flex; align-items: center; gap: 6px; }
.sb svg { height: 12px; width: auto; fill: currentColor; }
.batt { position: relative; width: 26px; height: 13px; }
.batt svg { height: 13px; }
.batt-num { position: absolute; left: 0; width: 22px; top: 0; height: 13px; display: grid; place-items: center; font-size: 9.5px; font-weight: 700; color: #000; letter-spacing: -.3px; }

/* ---------- écran verrouillé ---------- */
.lock { position: absolute; inset: 0; z-index: 300; background: var(--wall) center / cover no-repeat, var(--wall-color); display: flex; flex-direction: column; align-items: center; touch-action: none; cursor: grab; transition: transform .62s cubic-bezier(.22, 1, .36, 1), opacity .45s; will-change: transform; }
.lock::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.32), transparent 30% 60%, rgba(0,0,0,.5)); pointer-events: none; }
.lock.lifting { transform: translateY(-104%); opacity: 0; }
.lock > * { position: relative; }
.lock-pad { margin-top: calc(env(safe-area-inset-top, 0px) + 54px); opacity: .92; }
.lock-date { margin-top: 6px; font-size: 17px; font-weight: 500; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.lock-time { font-size: clamp(64px, 23vw, 92px); font-weight: 600; line-height: 1; letter-spacing: -2px; font-variant-numeric: tabular-nums; text-shadow: 0 2px 18px rgba(0,0,0,.45); }
@media (min-width: 560px) and (min-height: 640px) { .lock-time { font-size: 86px; } }
.lock-caption { margin-top: 22px; padding: 0 34px; text-align: center; font-size: 15px; font-style: italic; opacity: .94; text-shadow: 0 1px 8px rgba(0,0,0,.55); }
.lock-notifs { width: 100%; padding: 0 12px; margin-top: auto; display: grid; gap: 8px; }
.lock-bottom { margin: 14px 0 calc(env(safe-area-inset-bottom, 0px) + 10px); display: flex; flex-direction: column; align-items: center; gap: 12px; pointer-events: none; }
.lock-hint { font-size: 15px; font-weight: 500; opacity: .9; text-shadow: 0 1px 8px rgba(0,0,0,.6); animation: bob 2.6s ease-in-out infinite; }
.lock-hint.nudge { animation: nudge .5s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes bob { 0%, 70%, 100% { transform: none; } 82% { transform: translateY(-6px); } }
@keyframes nudge { 40% { transform: translateY(-16px); } }
.lock-credit { position: absolute; bottom: calc(env(safe-area-inset-bottom, 0px) + 32px); right: 16px; font-size: 11px; opacity: .55; pointer-events: auto; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.home-bar { width: 134px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.9); }

/* ---------- accueil ---------- */
.home { position: absolute; inset: 0; background: var(--wall) center / cover no-repeat, var(--wall-color); }
.home-inner { position: absolute; inset: 0; overflow-y: auto; scrollbar-width: none; padding: calc(env(safe-area-inset-top, 0px) + 62px) 20px calc(env(safe-area-inset-bottom, 0px) + 128px); }
.home-inner::-webkit-scrollbar { display: none; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 10px; align-items: start; }
.icon { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; position: relative; text-decoration: none; color: #fff; }
.tile { position: relative; width: 60px; height: 60px; border-radius: 15px; overflow: visible; }
.tile-face { position: absolute; inset: 0; border-radius: 15px; overflow: hidden; box-shadow: 0 3px 10px rgba(0,0,0,.28); }
.tile-face img { width: 100%; height: 100%; object-fit: cover; }
.tile-face svg { width: 100%; height: 100%; }
.icon-label { font-size: 11.5px; max-width: 74px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.badge { position: absolute; top: -6px; right: -7px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #ff3b30; color: #fff; font-size: 14px; font-weight: 600; line-height: 22px; text-align: center; z-index: 2; }
.new-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); margin-right: 3px; vertical-align: 1px; }
.icon.installing .tile-face { filter: brightness(.45) saturate(.6); }
.ring { position: absolute; z-index: 2; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.92); padding: 2px; background: conic-gradient(rgba(255,255,255,.92) calc(var(--p, 0) * 360deg), transparent 0) content-box; }
.icon:active .tile-face { filter: brightness(.75); }

.dock { position: absolute; z-index: 5; left: 14px; right: 14px; bottom: calc(env(safe-area-inset-bottom, 0px) + 14px); padding: 14px 16px; border-radius: 32px; display: flex; justify-content: space-around; background: rgba(255,255,255,.16); -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%); }
.dock .icon-label { display: none; }

/* widgets */
.widgets { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 22px; }
.widget { position: relative; overflow: hidden; border-radius: 22px; min-height: 152px; padding: 14px 16px; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; text-align: left; color: #fff; background: rgba(30, 28, 40, .55); -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%); box-shadow: 0 6px 24px rgba(0,0,0,.25); text-decoration: none; }
.widget.wide { grid-column: span 2; }
.widget-img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.widget-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(0,0,0,.72)); }
.widget > :not(.widget-img) { position: relative; }
.w-title { font-size: 17px; font-weight: 700; letter-spacing: -.3px; line-height: 1.15; }
.w-sub { font-size: 13px; color: rgba(255,255,255,.75); margin-top: 3px; }
.w-cd { display: flex; gap: 10px; margin-top: 8px; font-variant-numeric: tabular-nums; }
.w-cd b { display: block; font-size: 30px; font-weight: 600; line-height: 1; letter-spacing: -1px; }
.w-cd small { font-size: 11px; color: rgba(255,255,255,.7); }
.w-kicker { margin-bottom: auto; font-size: 12px; font-weight: 600; color: var(--accent); filter: brightness(1.5); }
.w-quote { font-size: 16px; line-height: 1.3; font-weight: 600; letter-spacing: -.2px; }

/* ---------- squelette des apps ---------- */
.app { position: absolute; inset: 0; background: #000; color: #fff; }
.nav { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 0 12px; padding-top: calc(var(--sb-h) + env(safe-area-inset-top, 0px)); background: rgba(0,0,0,.82); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.nav-btn { display: inline-flex; align-items: center; gap: 2px; min-width: 44px; min-height: 44px; color: var(--blue); font-size: 17px; }
.nav-btn svg { width: 22px; height: 22px; }
.nav-title { font-size: 17px; font-weight: 600; text-align: center; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-spacer { min-width: 44px; }
.big-title { font-size: 34px; font-weight: 700; letter-spacing: -.8px; margin: 4px 16px 12px; }
.group { margin: 0 16px 18px; background: var(--cell); border-radius: 12px; overflow: hidden; }
.row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 14px; text-align: left; position: relative; min-height: 48px; }
.row + .row::before { content: ""; position: absolute; top: 0; left: 14px; right: 0; height: 1px; background: var(--sep); }
.row:active { background: rgba(255,255,255,.07); }
.row-main { flex: 1; min-width: 0; }
.row-title { display: block; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { display: block; font-size: 14px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.chev { color: var(--dimmer); font-size: 22px; line-height: 1; }
.empty { margin: 60px 32px; text-align: center; color: var(--dim); font-size: 15px; }
.avatar { flex: none; width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: linear-gradient(160deg, #9fa0a8, #6c6d75); display: grid; place-items: center; font-weight: 600; font-size: 18px; color: #fff; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.home-bar-btn { position: absolute; z-index: 360; left: 50%; bottom: 0; width: 200px; height: 30px; transform: translateX(-50%); display: grid; place-items: end center; padding-bottom: 8px; }
.home-bar-btn .home-bar { background: rgba(255,255,255,.75); }

/* ---------- messages ---------- */
.unread-dot { position: absolute; left: 4px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--blue); }
.msg-list .row { padding-left: 20px; }
.thread { display: flex; flex-direction: column; height: 100%; }
.thread-head { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 0 10px; }
.thread-head .avatar { width: 56px; height: 56px; font-size: 22px; }
.thread-head strong { font-size: 13px; font-weight: 500; color: var(--dim); }
.bubbles { flex: 1; display: flex; flex-direction: column; gap: 3px; padding: 6px 14px 12px; }
.when { align-self: center; font-size: 12px; color: var(--dim); margin: 10px 0 6px; }
.bubble { max-width: 78%; padding: 8px 13px; border-radius: 19px; font-size: 17px; line-height: 1.28; letter-spacing: -.2px; word-wrap: break-word; white-space: pre-wrap; }
.bubble.them { align-self: flex-start; background: #26262a; }
.bubble.me { align-self: flex-end; background: var(--blue); }
.bubble.me + .bubble.them, .bubble.them + .bubble.me { margin-top: 8px; }
.bubble .author { display: block; font-size: 12px; font-weight: 600; color: #ffb340; margin-bottom: 1px; }
.bubble.media { padding: 0; overflow: hidden; background: none; }
.bubble.media img, .bubble.media video { width: 100%; max-width: 230px; border-radius: 18px; }
.bubble.link-card { padding: 0; overflow: hidden; background: #26262a; text-decoration: none; color: #fff; display: block; width: 240px; }
.bubble.link-card .lc-img { height: 120px; background: #333 center/cover; }
.bubble.link-card .lc-body { padding: 9px 12px 10px; font-size: 14px; }
.bubble.link-card .lc-body small { display: block; color: var(--dim); font-size: 12px; margin-top: 2px; }
.audio-msg { display: flex; align-items: center; gap: 10px; min-width: 210px; }
.audio-msg .play { width: 30px; height: 30px; display: grid; place-items: center; }
.audio-msg .play svg { width: 18px; height: 18px; fill: currentColor; }
.wave { flex: 1; height: 26px; display: flex; align-items: center; gap: 2px; }
.wave i { flex: 1; background: currentColor; border-radius: 2px; opacity: .55; }
.wave i.on { opacity: 1; }
.audio-msg small { font-size: 12px; opacity: .8; font-variant-numeric: tabular-nums; }
.composer { display: flex; align-items: center; gap: 8px; padding: 8px 12px calc(env(safe-area-inset-bottom, 0px) + 22px); }
.composer .field { flex: 1; height: 36px; border-radius: 18px; border: 1px solid #3a3a3c; color: var(--dimmer); font-size: 16px; display: flex; align-items: center; padding: 0 14px; }
.composer .plus { width: 34px; height: 34px; border-radius: 50%; background: #2c2c2e; display: grid; place-items: center; color: var(--dim); font-size: 24px; }

/* variante WhatsApp */
.wa .nav { background: rgba(18, 18, 18, .9); }
.wa .bubbles { background: #0b0b0b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='10' cy='10' r='1.2' fill='%23ffffff' fill-opacity='.05'/%3E%3Ccircle cx='40' cy='35' r='1.2' fill='%23ffffff' fill-opacity='.05'/%3E%3C/svg%3E"); }
.wa .bubble { border-radius: 8px; font-size: 16px; padding: 6px 9px 7px; }
.wa .bubble.them { background: #1f2c34; border-top-left-radius: 0; }
.wa .bubble.me { background: #005c4b; border-top-right-radius: 0; }
.wa .bubble.media { background: none; }
.wa .unread-dot { display: none; }
.wa-count { min-width: 20px; height: 20px; border-radius: 10px; background: #25d366; color: #0b0b0b; font-size: 12px; font-weight: 700; display: grid; place-items: center; padding: 0 6px; }

/* ---------- notes ---------- */
.notes { background: #000; }
.note-body { padding: 4px 18px 40px; font-size: 17px; line-height: 1.5; }
.note-body h1 { font-size: 27px; font-weight: 700; letter-spacing: -.5px; margin: 6px 0 12px; line-height: 1.15; }
.note-body p { margin: 0; min-height: 1.5em; white-space: pre-wrap; }
.note-date { text-align: center; color: var(--dim); font-size: 12px; margin-top: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; padding: 3px 0; }
.check i { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.6px solid rgba(235,235,245,.4); margin-top: 2px; display: grid; place-items: center; transition: background .12s, border-color .12s; }
.check.done i { background: var(--yellow); border-color: var(--yellow); }
.check.done i::after { content: ""; width: 10px; height: 5px; border-left: 2px solid #000; border-bottom: 2px solid #000; transform: rotate(-45deg) translate(1px, -1px); }
.check.done span { color: var(--dim); text-decoration: line-through; }
.notes .nav-btn { color: var(--yellow); }

/* ---------- photos ---------- */
.ph-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.ph-cell { position: relative; aspect-ratio: 1; background: #1c1c1e center/cover; }
.ph-cell .vbadge { position: absolute; right: 5px; bottom: 4px; width: 14px; height: 14px; fill: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.7)); }
.viewer { position: absolute; inset: 0; background: #000; touch-action: pan-y; }
.viewer-media { position: absolute; inset: 0; display: grid; place-items: center; transition: transform .24s cubic-bezier(.22, .8, .28, 1); }
.viewer-media img, .viewer-media video { max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer.dragging .viewer-media { transition: none; }
.viewer-top { position: absolute; z-index: 3; top: 0; left: 0; right: 0; padding: calc(env(safe-area-inset-top, 0px) + 52px) 12px 0; display: flex; align-items: center; justify-content: space-between; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.viewer-date { font-size: 14px; font-weight: 600; text-align: center; }
.viewer-date small { display: block; font-weight: 400; color: var(--dim); font-size: 12px; }
.viewer-caption { position: absolute; z-index: 3; left: 16px; right: 16px; bottom: calc(env(safe-area-inset-bottom, 0px) + 40px); font-size: 15px; text-align: center; text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.v-arrow { position: absolute; z-index: 3; top: 50%; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%; background: rgba(0,0,0,.4); font-size: 22px; }
.v-arrow.prev { left: 10px; } .v-arrow.next { right: 10px; }
@media (hover: none) { .v-arrow { display: none; } }

/* ---------- musique ---------- */
.music { background: linear-gradient(var(--m-tint, #3b2a5c) 0, #121212 380px); }
.mu-head { display: flex; flex-direction: column; align-items: center; padding: 6px 24px 18px; text-align: center; }
.mu-cover { width: 200px; height: 200px; border-radius: 8px; background: #2a2a2e center/cover; box-shadow: 0 16px 40px rgba(0,0,0,.55); }
.mu-title { font-size: 23px; font-weight: 700; margin: 16px 0 2px; letter-spacing: -.4px; }
.mu-sub { font-size: 14px; color: var(--dim); }
.mu-play { margin-top: 14px; width: 54px; height: 54px; border-radius: 50%; background: var(--green); color: #000; display: grid; place-items: center; }
.mu-play svg, .mu-row-ico svg { width: 26px; height: 26px; fill: currentColor; }
.mu-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 7px 16px; text-align: left; }
.mu-row .cv { width: 46px; height: 46px; border-radius: 4px; background: #2a2a2e center/cover; flex: none; }
.mu-row.on .row-title { color: var(--green); }
.mu-row-ico { color: var(--dim); }
.mini { position: absolute; z-index: 5; left: 8px; right: 8px; bottom: calc(env(safe-area-inset-bottom, 0px) + 22px); display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: #2b2b30; box-shadow: 0 8px 22px rgba(0,0,0,.5); }
.mini .cv { width: 40px; height: 40px; border-radius: 4px; background: #333 center/cover; flex: none; }
.mini-bar { position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2px; background: rgba(255,255,255,.18); border-radius: 1px; overflow: hidden; }
.mini-bar i { display: block; height: 100%; width: 0; background: #fff; }
.mini .ctl svg { width: 26px; height: 26px; fill: #fff; }

/* ---------- calendrier ---------- */
.cal-month { padding: 0 6px; }
.cal-month h3 { margin: 18px 10px 8px; font-size: 22px; font-weight: 700; color: var(--red); }
.cal-days, .cal-week { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-days { position: sticky; z-index: 3; top: calc(var(--sb-h) + env(safe-area-inset-top, 0px) + 44px); background: #000; padding-top: 4px; }
.cal-days span { text-align: center; color: var(--dim); font-size: 12px; font-weight: 600; padding-bottom: 6px; }
.cal-week { border-top: .5px solid rgba(255,255,255,.12); min-height: 62px; }
.cal-cell { display: flex; flex-direction: column; align-items: center; gap: 3px; padding-top: 6px; min-width: 0; }
.cal-num { font-size: 17px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
.cal-num.today { background: var(--red); font-weight: 600; }
.cal-ev { max-width: calc(100% - 4px); padding: 1px 4px; border-radius: 4px; font-size: 9.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: color-mix(in srgb, var(--c) 28%, transparent); color: color-mix(in srgb, var(--c) 80%, white); }
.ev-detail { padding: 8px 18px; }
.ev-detail h1 { font-size: 26px; margin: 4px 0 4px; display: flex; gap: 10px; align-items: baseline; }
.ev-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; background: var(--c); }
.ev-detail p { color: var(--dim); margin: 0 0 18px; font-size: 15px; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; border-radius: 14px; background: var(--cell); color: var(--blue); font-size: 17px; text-decoration: none; margin-bottom: 10px; }
.btn.primary { background: var(--accent); color: #fff; font-weight: 600; }
.btn.light { background: #fff; color: #000; font-weight: 600; }

/* ---------- contacts ---------- */
.ct-me { display: flex; align-items: center; gap: 12px; margin: 0 16px 16px; }
.ct-me .avatar { width: 58px; height: 58px; }
.ct-me b { display: block; font-size: 21px; }
.ct-me small { color: var(--dim); font-size: 14px; }
.cd { display: flex; flex-direction: column; align-items: center; padding: 10px 20px; }
.cd .avatar { width: 100px; height: 100px; font-size: 40px; }
.cd h1 { font-size: 27px; margin: 12px 0 2px; }
.cd p { color: var(--dim); margin: 0 0 20px; }
.cd-actions { display: flex; gap: 10px; width: 100%; margin-bottom: 18px; }
.cd-act { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0; border-radius: 12px; background: var(--cell); color: var(--blue); font-size: 12px; text-decoration: none; }
.cd-act svg { width: 22px; height: 22px; fill: currentColor; }
.cd-act[aria-disabled="true"] { opacity: .4; pointer-events: none; }

/* ---------- téléphone ---------- */
.rec-name.missed { color: var(--red); }
.vm-play { color: var(--blue); }
.tabs { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr); padding: 6px 0 calc(env(safe-area-inset-bottom, 0px) + 22px); background: rgba(20,20,22,.94); border-top: .5px solid rgba(255,255,255,.12); }
.tabs button { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; color: var(--dim); }
.tabs button[aria-current] { color: var(--blue); }
.tabs svg { width: 26px; height: 26px; fill: currentColor; }

/* ---------- appareil photo ---------- */
.cam { position: absolute; inset: 0; background: #000; }
.cam-view { position: absolute; left: 0; right: 0; top: 13%; bottom: 22%; overflow: hidden; background: #111; }
.cam-view img, .cam-view video { width: 100%; height: 100%; object-fit: cover; }
.cam-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 22%; display: grid; place-items: center; }
.shutter { width: 72px; height: 72px; border-radius: 50%; border: 4px solid #fff; padding: 4px; }
.shutter i { display: block; width: 100%; height: 100%; border-radius: 50%; background: #fff; transition: transform .1s; }
.shutter:active i { transform: scale(.9); }
.cam-modes { position: absolute; bottom: calc(22% + 10px); left: 0; right: 0; text-align: center; font-size: 13px; font-weight: 600; color: var(--yellow); letter-spacing: .5px; }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.flash.go { animation: flash .35s ease-out; }
@keyframes flash { 10% { opacity: .9; } 100% { opacity: 0; } }
.cam .close-x { position: absolute; z-index: 3; top: calc(env(safe-area-inset-top, 0px) + 52px); left: 14px; width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,.45); display: grid; place-items: center; font-size: 22px; }

/* ---------- météo ---------- */
.weather { background: linear-gradient(#2f6bb0, #5a97d6 60%, #7db0e2); }
.weather.night { background: linear-gradient(#0b1530, #1b3263 60%, #284a80); }
.weather.cloudy { background: linear-gradient(#56687a, #75879a 60%, #8e9fb0); }
.weather.rain { background: linear-gradient(#232f3b, #3a4e60 60%, #4b5f72); }
.wx-hero { text-align: center; padding: 10px 20px 24px; }
.wx-city { font-size: 32px; margin: 0; font-weight: 400; }
.wx-temp { font-size: 96px; font-weight: 200; line-height: 1; margin-left: 14px; }
.wx-cond { font-size: 19px; font-weight: 500; }
.wx-card { margin: 0 14px 14px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.14); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.wx-card h4 { margin: 0 0 8px; font-size: 12px; font-weight: 600; opacity: .7; }
.wx-hours { display: flex; gap: 16px; overflow-x: auto; scrollbar-width: none; }
.wx-h { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; }
.wx-day { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: .5px solid rgba(255,255,255,.18); font-size: 17px; }
.wx-day:first-of-type { border: 0; }
.wx-day span:first-child { width: 52px; font-weight: 600; }
.wx-day .bar { flex: 1; height: 5px; border-radius: 3px; background: rgba(255,255,255,.2); position: relative; }
.wx-day .bar i { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: linear-gradient(90deg, #8fd8ff, #ffd60a); }
.wx-ico { font-size: 20px; line-height: 1; }

/* ---------- coffre-fort ---------- */
.vault { display: flex; flex-direction: column; align-items: center; padding: calc(var(--sb-h) + env(safe-area-inset-top, 0px) + 30px) 20px 30px; background: radial-gradient(90% 60% at 50% 0%, #2b2347, #000 70%); }
.vault .lockico { width: 34px; height: 34px; fill: #fff; opacity: .9; }
.vault h2 { margin: 12px 0 4px; font-size: 20px; font-weight: 600; }
.vault .hint { color: var(--dim); text-align: center; font-size: 14px; max-width: 280px; margin: 0 0 18px; min-height: 2.6em; }
.dots { display: flex; gap: 16px; margin-bottom: 28px; }
.dots i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #fff; }
.dots i.on { background: #fff; }
.dots.shake { animation: shake .42s; }
@keyframes shake { 20%, 60% { transform: translateX(-12px); } 40%, 80% { transform: translateX(12px); } }
.pad { display: grid; grid-template-columns: repeat(3, 76px); gap: 16px 24px; }
.key { width: 76px; height: 76px; border-radius: 50%; background: rgba(255,255,255,.14); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 34px; font-weight: 400; }
.key small { font-size: 9px; letter-spacing: 2px; font-weight: 600; margin-top: -2px; }
.key:active { background: rgba(255,255,255,.4); }
.key.ghost { background: none; font-size: 16px; }
.reveal { width: 100%; max-width: 340px; text-align: center; animation: pop .4s cubic-bezier(.2, .9, .3, 1.2); }
.reveal img { width: 100%; border-radius: 16px; margin-bottom: 16px; }
.reveal h2 { font-size: 26px; }
.reveal p { color: var(--dim); margin: 0 0 22px; font-size: 16px; line-height: 1.45; }
@keyframes pop { from { opacity: 0; transform: scale(.9); } }

/* ---------- mail (capture) ---------- */
.mail-form { padding: 8px 18px; }
.mail-form p { color: var(--dim); font-size: 16px; line-height: 1.45; margin: 0 0 18px; }
.mail-form label.fld { display: block; background: var(--cell); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; }
.mail-form label.fld span { display: block; font-size: 12px; color: var(--dim); }
.mail-form input[type=email], .mail-form input[type=tel] { width: 100%; border: 0; background: none; color: #fff; font-size: 17px; padding: 4px 0; outline: none; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--dim); margin: 6px 2px 18px; line-height: 1.4; }
.consent input { margin-top: 2px; accent-color: var(--blue); width: 18px; height: 18px; flex: none; }
.form-err { color: var(--red); font-size: 14px; margin: -6px 2px 12px; min-height: 1em; }
.sent { text-align: center; padding: 40px 20px; }
.sent svg { width: 54px; height: 54px; fill: var(--green); }

/* ---------- notifications ---------- */
.notif-layer { position: absolute; z-index: 355; top: 0; left: 0; right: 0; pointer-events: none; }
.notif { pointer-events: auto; position: absolute; left: 10px; right: 10px; top: calc(env(safe-area-inset-top, 0px) + 10px); display: flex; align-items: center; gap: 11px; padding: 12px 14px; border-radius: 24px; color: #fff; text-align: left; background: rgba(30, 30, 36, .8); -webkit-backdrop-filter: blur(30px) saturate(170%); backdrop-filter: blur(30px) saturate(170%); box-shadow: 0 12px 36px rgba(0,0,0,.45), inset 0 .5px 0 rgba(255,255,255,.25); transform: translateY(-160%); transition: transform .5s cubic-bezier(.34, 1.35, .5, 1), opacity .2s; touch-action: none; width: auto; }
.notif.show { transform: translateY(var(--dy, 0)); }
.notif.dragging { transition: none; }
.notif.gone { opacity: 0; transform: translateY(-170%); transition: transform .26s, opacity .2s; }
.lock .notif { position: relative; left: 0; right: 0; top: 0; transform: none; }
.n-ico { position: relative; flex: none; width: 40px; height: 40px; }
.n-ico .tile-face { border-radius: 10px; box-shadow: none; }
.n-ico .av { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(160deg, #9fa0a8, #6c6d75) center/cover; display: grid; place-items: center; font-weight: 600; }
.n-ico .mini-app { position: absolute; right: -3px; bottom: -3px; width: 19px; height: 19px; }
.n-ico .mini-app .tile-face { border-radius: 5px; }
.n-text { flex: 1; min-width: 0; }
.n-top { display: flex; justify-content: space-between; gap: 8px; }
.n-top strong { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.n-top time { font-size: 13px; color: rgba(255,255,255,.55); flex: none; }
.n-msg { font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- appel ---------- */
.call { position: absolute; inset: 0; z-index: 320; display: flex; flex-direction: column; justify-content: space-between; padding: calc(env(safe-area-inset-top, 0px) + 96px) 30px calc(env(safe-area-inset-bottom, 0px) + 56px); opacity: 0; transform: scale(1.04); transition: opacity .35s, transform .35s; overflow: hidden; container-type: inline-size; }
.call.show { opacity: 1; transform: none; }
.call-bg { position: absolute; inset: -15%; z-index: -1; background: var(--wall) center/cover; background-color: #1c1c1e; filter: blur(34px) saturate(1.2) brightness(.5); }
.call-head { text-align: center; }
.call-from { font-size: min(34px, 9.5cqw); font-weight: 400; white-space: nowrap; font-variant-numeric: tabular-nums; }
.call-sub { margin-top: 6px; font-size: 17px; color: rgba(255,255,255,.72); font-variant-numeric: tabular-nums; }
.call.ended .call-sub { color: var(--red); }
.call-av { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 14px; background: linear-gradient(160deg, #9fa0a8, #6c6d75) center/cover; display: grid; place-items: center; font-size: 34px; font-weight: 600; }
.captions { min-height: 120px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; text-align: center; }
.captions p { margin: 0; font-size: 20px; line-height: 1.35; font-weight: 500; animation: cap .35s ease-out both; text-shadow: 0 1px 10px rgba(0,0,0,.35); }
.captions p.old { opacity: .45; font-size: 16px; }
@keyframes cap { from { opacity: 0; transform: translateY(8px); } }
.call-actions { display: flex; justify-content: space-between; padding: 0 10px; }
.cbtn { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 14px; }
.cbtn i { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; }
.cbtn svg { width: 34px; height: 34px; fill: #fff; }
.cbtn.decline i { background: #ff3b30; }
.cbtn.decline svg { transform: rotate(135deg); }
.cbtn.accept i { background: #34c759; animation: ring 1.4s ease-in-out infinite; }
@keyframes ring { 0%, 100% { transform: rotate(0); } 8% { transform: rotate(-14deg); } 16% { transform: rotate(12deg); } 24% { transform: rotate(-8deg); } 32% { transform: rotate(0); } }
.call.ongoing .cbtn.accept { display: none; }
.call.ongoing .call-actions { justify-content: center; }
.call-grid { display: none; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; }
.call.ongoing .call-grid { display: grid; }
.call-grid span { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; }
.call-grid i { width: 66px; height: 66px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; }
.call-grid svg { width: 28px; height: 28px; fill: #fff; }

/* ---------- alerte iOS ---------- */
.alert-bg { position: absolute; inset: 0; z-index: 340; background: rgba(0,0,0,.35); display: grid; place-items: center; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.alert { width: 270px; border-radius: 14px; overflow: hidden; text-align: center; background: rgba(44,44,46,.88); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); animation: pop .25s cubic-bezier(.2, .9, .3, 1.15); }
.alert-body { padding: 19px 16px 18px; }
.alert-body strong { display: block; font-size: 17px; margin-bottom: 3px; }
.alert-body p { margin: 0; font-size: 13px; }
.alert button { display: block; width: 100%; padding: 11px; border-top: .5px solid rgba(255,255,255,.18); color: var(--blue); font-size: 17px; }
.alert button.b { font-weight: 600; }

/* ---------- fin ---------- */
.end { position: absolute; inset: 0; z-index: 380; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 36px; padding: 30px; opacity: 0; transition: opacity .7s; }
.end.on { opacity: 1; }
.dead { width: 120px; opacity: 0; transition: opacity .6s; }
.end.s1 .dead { opacity: 1; }
.end-card { width: 100%; max-width: 330px; text-align: center; opacity: 0; transform: translateY(10px); transition: opacity .8s, transform .8s; }
.end.s2 .end-card { opacity: 1; transform: none; }
.end-card h2 { font-size: 22px; margin: 0 0 6px; }
.end-card p { color: var(--dim); margin: 0 0 22px; font-size: 15px; }
.end-row { display: flex; gap: 10px; }
.end-row .btn { flex: 1; }
.end-small { margin-top: 16px; font-size: 13px; color: rgba(255,255,255,.4); display: flex; justify-content: center; gap: 14px; }
.end-small a, .end-small button { color: rgba(255,255,255,.55); text-decoration: none; }

.toast { position: absolute; z-index: 390; left: 50%; bottom: 90px; transform: translateX(-50%); padding: 10px 16px; border-radius: 20px; background: rgba(60,60,64,.95); font-size: 14px; white-space: nowrap; animation: fade .2s; }
.preview-tag { position: absolute; z-index: 399; top: calc(env(safe-area-inset-top, 0px) + 46px); left: 50%; transform: translateX(-50%); font-size: 11px; padding: 3px 9px; border-radius: 10px; background: rgba(91,75,255,.85); color: #fff; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .screen.t-open, .screen.t-close, .screen.t-push, .screen.t-pop, .lock-hint, .cbtn.accept i, .captions p, .reveal { animation: none; }
  .lock, .notif, .call { transition: opacity .2s; }
}

.vault-open { background: radial-gradient(90% 60% at 50% 0%, #2b2347, #000 70%); }
.vault-open .reveal { margin: 30px auto 0; padding: 0 20px; }


/* =================================================================
   Réalisme iPhone (iOS 26) : cadre, îlot, icônes, verre liquide
   ================================================================= */
:root { --glass: rgba(255,255,255,.16); --glass-edge: rgba(255,255,255,.32); }

/* cadre physique : invisible sur un vrai téléphone, titane sur ordinateur */
.frame { position: relative; width: 100%; height: 100%; }
.island { display: none; }
.hw { display: none; }
@media (min-width: 560px) and (min-height: 640px) {
  .frame {
    --t1: #5b5a5f; --t2: #232326; --t3: #44444a;
    width: auto; height: min(900px, 94vh); aspect-ratio: 1290 / 2660; padding: 1.15%; border-radius: 15.5% / 7.3%;
    background: linear-gradient(140deg, var(--t1) 0%, var(--t2) 22%, var(--t3) 48%, var(--t2) 76%, var(--t1) 100%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), inset 0 0 6px rgba(0,0,0,.6), 0 50px 100px -20px rgba(0,0,0,.65), 0 30px 60px -30px rgba(0,0,0,.6);
  }
  .frame[data-finish="naturel"] { --t1: #d8d4cc; --t2: #8c8a85; --t3: #b9b5ad; }
  .frame[data-finish="blanc"] { --t1: #f4f4f2; --t2: #c9c8c4; --t3: #e6e5e1; }
  .frame[data-finish="desert"] { --t1: #e2c9a8; --t2: #9d8264; --t3: #c8ad8b; }
  .frame::before { content: ""; position: absolute; inset: .55%; border-radius: 15% / 7%; background: #050505; }
  .device { position: absolute; inset: 1.6%; width: auto; height: auto; border-radius: 13.2% / 6.15%; transform: translateZ(0); }
  .island { display: block; position: absolute; z-index: 420; top: 1.25%; left: 50%; width: 31.5%; height: 3.75%; transform: translateX(-50%); border-radius: 999px; background: #000; pointer-events: none; }
  .island::after { content: ""; position: absolute; right: 18%; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2b3448, #0b0d14 60%); }
  .hw { display: block; position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--t3), var(--t2)); }
  .hw-action { left: -3px; top: 17%; height: 4.2%; }
  .hw-vol-up { left: -3px; top: 24%; height: 7%; }
  .hw-vol-down { left: -3px; top: 33%; height: 7%; }
  .hw-power { right: -3px; top: 26%; height: 11%; }
  .hw-cam { right: -3px; top: 52%; height: 6.5%; border-radius: 1px; opacity: .8; }
}

/* barre d'état */
.sb { padding: calc(env(safe-area-inset-top, 0px) + 16px) 26px 0 30px; font-size: 16.5px; font-weight: 600; letter-spacing: -.3px; }
@media (min-width: 560px) and (min-height: 640px) { .sb { padding-top: 15px; } .sb-time { width: 31%; text-align: center; } .sb-right { width: 31%; justify-content: center; } }
.sb-right { gap: 5px; }
.sb .sb-cell { height: 11.5px; }
.sb .sb-wifi { height: 12px; }
.batt { width: 27px; }
.batt-num { color: #000; font-size: 9.5px; letter-spacing: -.4px; }
.batt-num.on-color { color: #fff; }

/* icônes : squircle continu, reflet de verre, ombre portée */
.tile { width: 61px; height: 61px; filter: drop-shadow(0 2px 5px rgba(0,0,0,.22)); }
.tile-face { border-radius: 0; box-shadow: none; -webkit-mask: url("/player/squircle.svg") center / 100% 100% no-repeat; mask: url("/player/squircle.svg") center / 100% 100% no-repeat; }
.tile-face::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,0) 42%), radial-gradient(120% 60% at 50% 0%, rgba(255,255,255,.12), transparent 60%); pointer-events: none; }
.badge { top: -7px; right: -8px; min-width: 23px; height: 23px; line-height: 23px; border-radius: 12px; font-size: 14px; background: #ff3b30; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.icon-label { font-size: 12px; font-weight: 500; letter-spacing: -.1px; max-width: 76px; text-shadow: 0 1px 4px rgba(0,0,0,.45); }
.home-inner { padding: calc(env(safe-area-inset-top, 0px) + 66px) 24px calc(env(safe-area-inset-bottom, 0px) + 170px); }
.grid { gap: 26px 0; justify-items: center; }
.n-ico .tile-face, .n-ico .mini-app .tile-face { border-radius: 0; }
.n-ico .tile { filter: none; }

/* pilule Rechercher et dock en verre liquide */
.spot { position: absolute; z-index: 5; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 116px); transform: translateX(-50%); display: flex; align-items: center; gap: 5px; padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.92); background: var(--glass); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); box-shadow: inset 0 0 0 .6px var(--glass-edge), 0 4px 14px rgba(0,0,0,.12); pointer-events: none; }
.spot svg { width: 13px; height: 13px; }
.dock { left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); padding: 16px 18px; border-radius: 38px; background: rgba(255,255,255,.14); -webkit-backdrop-filter: blur(30px) saturate(190%); backdrop-filter: blur(30px) saturate(190%); box-shadow: inset 0 .8px 0 rgba(255,255,255,.4), inset 0 0 0 .6px rgba(255,255,255,.22), 0 10px 30px rgba(0,0,0,.18); }
.dock .tile { width: 62px; height: 62px; }

/* widgets en verre */
.widget { border-radius: 24px; background: rgba(40, 38, 50, .32); -webkit-backdrop-filter: blur(28px) saturate(170%); backdrop-filter: blur(28px) saturate(170%); box-shadow: inset 0 .8px 0 rgba(255,255,255,.28), inset 0 0 0 .6px rgba(255,255,255,.16), 0 8px 26px rgba(0,0,0,.2); }

/* écran verrouillé iOS 26 */
.lock-pad { margin-top: calc(env(safe-area-inset-top, 0px) + 58px); }
.lock-pad svg { width: 13px; height: 17px; }
.lock-date { margin-top: 8px; font-size: 19px; font-weight: 600; letter-spacing: -.2px; opacity: .92; }
.lock-time { margin-top: -2px; font-size: clamp(84px, 27vw, 112px); font-weight: 700; letter-spacing: -4px; line-height: .95; color: rgba(255,255,255,.94); text-shadow: 0 2px 30px rgba(0,0,0,.25); font-feature-settings: "tnum" 0; }
@media (min-width: 560px) and (min-height: 640px) { .lock-time { font-size: 100px; } }
.lock-caption { margin-top: 18px; font-size: 15px; }
.lock-notifs { display: flex; flex-direction: column; gap: 8px; padding: 0 10px; margin: auto 0 10px; }
.lock .notif.lock-n { position: relative; left: 0; right: 0; top: 0; transform: none; opacity: 1; width: 100%; background: rgba(28, 28, 34, .38); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%); box-shadow: inset 0 .8px 0 rgba(255,255,255,.3), inset 0 0 0 .6px rgba(255,255,255,.14); animation: ln-in .6s cubic-bezier(.2,.9,.3,1.1) both; animation-delay: calc(.35s + var(--i) * .12s); }
@keyframes ln-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.lock-bottom { width: 100%; flex-direction: row; justify-content: space-between; align-items: flex-end; padding: 0 44px; margin: 6px 0 calc(env(safe-area-inset-bottom, 0px) + 8px); pointer-events: auto; }
.lock-mid { display: flex; flex-direction: column; align-items: center; gap: 12px; pointer-events: none; }
.lock-hint { font-size: 14px; }
.lock-q { width: 50px; height: 50px; margin-bottom: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(30,30,36,.35); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); box-shadow: inset 0 .8px 0 rgba(255,255,255,.3), inset 0 0 0 .6px rgba(255,255,255,.18); transition: transform .15s, background .2s; }
.lock-q svg { width: 21px; height: 21px; fill: currentColor; }
.lock-q:active { transform: scale(1.12); }
.lock-q.on { background: #fff; color: #000; }
.lock-q .lq-dot { fill: rgba(0,0,0,.4); }

/* notifications en verre liquide */
.notif { border-radius: 26px; padding: 12px 14px; background: rgba(30, 30, 36, .5); -webkit-backdrop-filter: blur(34px) saturate(190%); backdrop-filter: blur(34px) saturate(190%); box-shadow: inset 0 .8px 0 rgba(255,255,255,.3), inset 0 0 0 .6px rgba(255,255,255,.14), 0 14px 36px rgba(0,0,0,.4); }
.notif:not(.lock-n) { top: calc(env(safe-area-inset-top, 0px) + 8px); }
@media (min-width: 560px) and (min-height: 640px) { .notif:not(.lock-n) { top: 6px; } }
.n-ico { width: 38px; height: 38px; }
.n-ico .tile-face { position: absolute; inset: 0; }
.n-top strong { font-size: 15px; }
.n-top time { font-size: 13px; }
.n-msg { font-size: 15px; letter-spacing: -.2px; }

/* navigation iOS 26 : bouton rond en verre, grands titres */
.nav { background: linear-gradient(rgba(0,0,0,.85) 55%, rgba(0,0,0,0)); -webkit-backdrop-filter: none; backdrop-filter: none; padding-bottom: 6px; }
.nav-btn.glass { width: 44px; min-width: 44px; height: 44px; min-height: 44px; justify-content: center; border-radius: 50%; color: #fff; background: rgba(120,120,128,.24); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); box-shadow: inset 0 .8px 0 rgba(255,255,255,.22), inset 0 0 0 .6px rgba(255,255,255,.12); }
.nav-btn.glass svg { width: 20px; height: 20px; margin-left: -2px; }
.notes .nav-btn.glass { color: var(--yellow); }
.wa .nav { background: linear-gradient(rgba(11,11,11,.9) 55%, rgba(11,11,11,0)); }
.big-title { font-size: 34px; letter-spacing: -1px; margin-top: 2px; }
.tabs { left: 14px; right: 14px; bottom: calc(env(safe-area-inset-bottom, 0px) + 14px); border-radius: 32px; padding: 6px; background: rgba(30,30,34,.7); -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%); border: 0; box-shadow: inset 0 0 0 .6px rgba(255,255,255,.14); }
.tabs button { padding: 6px 0; border-radius: 26px; }
.tabs button[aria-current] { background: rgba(255,255,255,.12); }
.mini { border-radius: 22px; background: rgba(40,40,46,.82); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }

.home-bar-btn .home-bar { width: 140px; }

/* ajustements de placement */
.lock-hint { white-space: nowrap; font-size: 13.5px; }
.lock-bottom { padding: 0 30px; }
@media (min-width: 560px) and (min-height: 640px) {
  .frame { height: min(880px, 89vh); margin-bottom: 22px; }
  .notif:not(.lock-n) { top: 6.4%; }
  .stage-foot { bottom: 12px; }
}

/* fond d'écran clair : textes sombres sur l'écran verrouillé et l'accueil */
.device[data-tone="dark"] .lock, .device[data-tone="dark"] .lock-q { color: #1c1c1e; }
.device[data-tone="dark"] .lock::before { background: linear-gradient(rgba(255,255,255,.18), transparent 30% 60%, rgba(255,255,255,.25)); }
.device[data-tone="dark"] .lock-time { color: rgba(28,28,30,.92); text-shadow: 0 2px 24px rgba(255,255,255,.4); }
.device[data-tone="dark"] .lock-date, .device[data-tone="dark"] .lock-caption, .device[data-tone="dark"] .lock-hint { text-shadow: 0 1px 8px rgba(255,255,255,.6); }
.device[data-tone="dark"] .lock-pad svg path { fill: #1c1c1e; }
.device[data-tone="dark"] .lock .home-bar, .device[data-tone="dark"] .home ~ .home-bar-btn .home-bar { background: rgba(0,0,0,.75); }
.device[data-tone="dark"] .lock-q { background: rgba(255,255,255,.4); }
.device[data-tone="dark"] .lock-q svg { fill: #1c1c1e; }
.device[data-tone="dark"] .sb.on-wall { color: #1c1c1e; text-shadow: none; }
.device[data-tone="dark"] .sb.on-wall .batt-num { color: #fff; }
.device[data-tone="dark"] .icon-label { color: #1c1c1e; text-shadow: 0 1px 4px rgba(255,255,255,.6); }
.device[data-tone="dark"] .spot { color: #1c1c1e; background: rgba(255,255,255,.4); }
.device[data-tone="dark"] .dock { background: rgba(255,255,255,.35); }

/* widget vidéo */
.widget.video { padding: 0; min-height: 0; aspect-ratio: 16 / 9; justify-content: flex-start; }
.widget.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.widget.video .video-title { position: absolute; left: 14px; bottom: 10px; font-size: 13px; pointer-events: none; text-shadow: 0 1px 6px rgba(0,0,0,.8); }
/* lien vers la version liens */
.lock-links { margin-top: 12px; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: inherit; text-decoration: none; background: rgba(30,30,36,.28); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 0 0 .6px rgba(255,255,255,.2); }
.device[data-tone="dark"] .lock-links { background: rgba(255,255,255,.35); }

/* =====================================================================
   Couche « référence » : géométrie, couleurs et timings mesurés sur un
   lecteur found phone de référence (voir docs/reference/spec.md).
   Les valeurs sont en px pour un écran de 405 × 880.
   ===================================================================== */
#app { background: radial-gradient(120% 120% at 50% 0, #1b1720 0%, #050406 60%, #000 100%); }
.lock, .home, .device { background-color: #111114; }

/* cadre : écran 405 × 880, rayon 46, tranche en double anneau, pas d'île */
@media (min-width: 560px) and (min-height: 640px) {
  .frame {
    --ring: #0c0c0e; --edge: #33313a;
    height: min(880px, calc(100vh - 92px)); aspect-ratio: 1206 / 2622; padding: 0; border-radius: 46px;
    background: var(--ring);
    box-shadow: 0 0 0 12px var(--ring), 0 0 0 13px var(--edge), 0 26px 70px rgba(0, 0, 0, .65);
  }
  .frame[data-finish="naturel"] { --ring: #8d8a83; --edge: #c9c5bd; }
  .frame[data-finish="blanc"] { --ring: #e9e8e4; --edge: #ffffff; }
  .frame[data-finish="desert"] { --ring: #a88d6c; --edge: #d9bf9c; }
  .frame::before, .island, .hw { display: none; }
  .device { inset: 0; border-radius: 46px; }
  .notif:not(.lock-n) { top: 12px; }
}

/* barre d'état */
.sb { padding: calc(env(safe-area-inset-top, 0px) + 14px) 30px 0 30px; font-size: 16px; font-weight: 600; letter-spacing: .3px; }
@media (min-width: 560px) and (min-height: 640px) { .sb { padding-top: 14px; } .sb-time, .sb-right { width: auto; } .sb-time { text-align: left; } .sb-right { justify-content: flex-end; } }
.sb.on-wall { text-shadow: none; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }

/* écran verrouillé */
.lock { background: var(--wall) top / cover no-repeat, #111114; transform-origin: 50% 18%; will-change: transform, opacity, filter;
  transition: transform .64s cubic-bezier(.22, 1, .36, 1), opacity .48s, filter .48s; }
.lock::before { display: none; }
.lock.lifting { opacity: 0; filter: blur(1.5px); transform: translateY(-103%) scale(1.018); }
.lock-pad { margin-top: calc(env(safe-area-inset-top, 0px) + 22px); height: 23px; opacity: .92; display: grid; place-items: end center; }
.lock-pad svg { width: 15px; height: 19px; }
.lock-date { margin-top: 30px; font-size: 15px; font-weight: 500; letter-spacing: .5px; line-height: 18px; opacity: .95; text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
.lock-time { margin-top: 1px; font-size: 84px; font-weight: 600; letter-spacing: -1px; line-height: 1; color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .5); font-variant-numeric: tabular-nums; }
@media (min-width: 560px) and (min-height: 640px) { .lock-time { font-size: 84px; } }
.lock-caption { margin-top: 20px; padding: 0 30px; font-size: 14px; line-height: 17px; font-style: italic; opacity: .92; text-shadow: 0 1px 8px rgba(0, 0, 0, .55); }
.lock-bottom { margin: 6px 0 calc(env(safe-area-inset-bottom, 0px) + 10px); }
.lock-mid { gap: 13px; }
.lock-hint { font-size: 15px; font-weight: 500; letter-spacing: .1px; line-height: 18px; opacity: .88; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); animation: ref-bob 2.6s ease-in-out infinite; }
.lock-hint.nudge { animation: ref-nudge .55s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes ref-bob { 0%, 70%, 100% { transform: translateY(0); } 82% { transform: translateY(-5px); } }
@keyframes ref-nudge { 0% { transform: translateY(0); } 40% { transform: translateY(-14px); } 100% { transform: translateY(0); } }
.home-bar, .lock .home-bar, .home-bar-btn .home-bar { width: 134px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .85); }
.lock-q { margin-bottom: 0; }

/* écran d'accueil : grille 4 colonnes, icônes 56, dock 58 */
.home { background: var(--wall) top / cover no-repeat, var(--wall-color); }
.home-inner { padding: calc(env(safe-area-inset-top, 0px) + 64px) 20px calc(env(safe-area-inset-bottom, 0px) + 120px); }
.grid { gap: 22px 12px; justify-items: stretch; }
.icon { gap: 6px; }
.tile { width: 56px; height: 56px; filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .35)); }
.icon-label { font-size: 11px; font-weight: 400; letter-spacing: 0; line-height: 13px; max-width: 82px; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.dock { left: 16px; right: 16px; bottom: calc(env(safe-area-inset-bottom, 0px) + 14px); padding: 12px 16px; border-radius: 28px; justify-content: space-evenly;
  background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: none; }
.dock .tile { width: 58px; height: 58px; }

/* ouverture et fermeture des apps */
.screen.t-open { animation: ref-open .36s cubic-bezier(.2, .74, .24, 1); }
.screen.t-close { animation: ref-close .3s cubic-bezier(.3, 0, .25, 1); }
.screen.t-push { animation: ref-push .3s cubic-bezier(.25, .6, .25, 1); }
.screen.t-pop { animation: ref-pop .3s cubic-bezier(.25, .6, .25, 1); }
@keyframes ref-open { 0% { opacity: 0; transform: scale(.34); } 45% { opacity: 1; } 100% { opacity: 1; transform: scale(1); } }
@keyframes ref-close { 0% { opacity: .35; transform: scale(1.12); } 100% { opacity: 1; transform: scale(1); } }
@keyframes ref-push { 0% { opacity: .25; transform: translate(7%); } 100% { opacity: 1; transform: translate(0); } }
@keyframes ref-pop { 0% { opacity: .25; transform: translate(-7%); } 100% { opacity: 1; transform: translate(0); } }

/* bannière de notification */
.notif { left: 12px; right: 12px; gap: 11px; padding: 13px 15px; border-radius: 26px; border: .5px solid rgba(255, 255, 255, .22);
  background: rgba(30, 30, 34, .52); -webkit-backdrop-filter: blur(30px) saturate(170%); backdrop-filter: blur(30px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 0 0 1px rgba(255, 255, 255, .06), 0 14px 40px rgba(0, 0, 0, .5);
  transition: transform .5s cubic-bezier(.34, 1.4, .5, 1), opacity .22s; }
.notif:not(.lock-n) { top: calc(env(safe-area-inset-top, 0px) + 12px); max-width: 460px; }
.notif.gone { opacity: 0; transform: translateY(-180%); transition: transform .26s cubic-bezier(.2, .72, .2, 1), opacity .2s; }
.n-ico { width: 40px; height: 40px; }
.n-ico .tile-face { border-radius: 10px; -webkit-mask: none; mask: none; }
.n-ico .av { width: 42px; height: 42px; margin: -1px; }
.n-top strong { font-size: 15px; font-weight: 600; }
.n-top time { font-size: 13px; color: rgba(255, 255, 255, .55); }
.n-msg { font-size: 15px; line-height: 1.3; letter-spacing: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* appel entrant : numéro en haut, actions secondaires et curseur en bas */
.call { padding: calc(env(safe-area-inset-top, 0px) + 92px) 28px calc(env(safe-area-inset-bottom, 0px) + 54px); }
.call-bg { inset: -15%; filter: blur(34px) saturate(1.15) brightness(.55); transform: scale(1.15); }
.call::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(0, 0, 0, .25), rgba(0, 0, 0, .55)); pointer-events: none; }
.call-from { font-size: min(34px, 9.4cqw); font-weight: 400; line-height: 38px; }
.call-sub { margin-top: 8px; font-size: 17px; line-height: 20px; }
.call-incoming { display: flex; flex-direction: column; gap: 34px; }
.call.ongoing .call-incoming, .call:not(.ongoing) .call-actions { display: none; }
.call-small { display: flex; justify-content: space-between; padding: 0 10px; }
.call-small button { width: 76px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; line-height: 15px; color: #fff; white-space: nowrap; }
.call-small i { width: 26px; height: 26px; display: grid; place-items: center; }
.call-small svg { width: 26px; height: 26px; color: #fff; }
.call-small button:last-child svg { fill: #fff; }
.call-slider { --k: 0; position: relative; height: 76px; border-radius: 38px; background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); overflow: hidden; }
.cs-text { position: absolute; inset: 0 0 0 76px; display: grid; place-items: center; font-size: min(19px, 6.2cqw); color: rgba(255, 255, 255, .55); opacity: calc(1 - var(--k) * 1.6);
  background: linear-gradient(90deg, rgba(255,255,255,.55) 0 35%, #fff 50%, rgba(255,255,255,.55) 65% 100%) 0 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: ref-shimmer 2.4s linear infinite; }
@keyframes ref-shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }
.cs-knob { position: absolute; left: 4px; top: 4px; width: 68px; height: 68px; border-radius: 50%; background: #34c759; display: grid; place-items: center; touch-action: none; cursor: grab; transition: transform .3s cubic-bezier(.2, .9, .3, 1.2); }
.cs-knob svg { width: 30px; height: 30px; fill: #fff; }
.cs-knob:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* alerte système */
.alert-bg { animation: ref-fade .2s ease-out both; }
.alert { background: rgba(44, 44, 46, .86); -webkit-backdrop-filter: blur(30px) saturate(170%); backdrop-filter: blur(30px) saturate(170%); animation: ref-pop-in .28s cubic-bezier(.2, .9, .3, 1.15) both; }
.alert button { padding: 11px 8px; border-top: .5px solid rgba(255, 255, 255, .18); }
@keyframes ref-fade { from { opacity: 0; } }
@keyframes ref-pop-in { from { opacity: 0; transform: scale(1.15); } }

@media (prefers-reduced-motion: reduce) {
  .screen.t-open, .screen.t-close, .screen.t-push, .screen.t-pop, .lock-hint, .cs-text, .alert, .alert-bg { animation: none; }
}
.lock:focus, .lock:focus-visible { outline: none; }
/* widgets lisibles sur fond d'écran clair */
.device[data-tone="dark"] .widget:not(.video) { background-color: rgba(40, 28, 30, .55); color: #fff; }
.device[data-tone="dark"] .widget:not(.video) .w-sub, .device[data-tone="dark"] .widget:not(.video) .w-kicker { color: rgba(255, 255, 255, .78); }

/* =====================================================================
   iPhone 18 Pro, proportions réelles (fiche technique Apple) :
   écran 6,3 po, 2622 × 1206 px à 460 ppi = 402 × 874 pt (@3x)
   boîtier 150,0 × 71,9 mm = 434 × 906 pt, bordure de 16 pt tout autour.
   Rayon d'écran, Dynamic Island et barre d'état : mesures iOS des Pro
   récents (Apple ne les publie pas). Tout est en points iOS (1 px CSS = 1 pt)
   et le cadre entier est réduit d'un bloc (--z) pour tenir dans la fenêtre.
   ===================================================================== */
html.framed .frame {
  --z: 1; --metal: #3b3b41; --metal-hi: rgba(255, 255, 255, .22);
  position: relative; flex: none; width: 434px; height: 906px; aspect-ratio: auto; max-height: none;
  margin: 0; padding: 0; border-radius: 78px; background: #050506;
  transform: scale(var(--z)); transform-origin: center;
  box-shadow: inset 0 0 0 1px var(--metal-hi), inset 0 0 0 4.5px var(--metal), inset 0 0 0 5.5px rgba(0, 0, 0, .7), 0 34px 80px rgba(0, 0, 0, .55);
}
html.framed .frame[data-finish="naturel"] { --metal: #b9b5ad; --metal-hi: rgba(255, 255, 255, .6); }
html.framed .frame[data-finish="blanc"] { --metal: #e6e5e1; --metal-hi: rgba(255, 255, 255, .9); }
html.framed .frame[data-finish="desert"] { --metal: #c4a47e; --metal-hi: rgba(255, 240, 220, .6); }
html.framed .frame::before, html.framed .hw { display: none; }
html.framed .device { position: absolute; inset: 16px; width: 402px; height: 874px; border-radius: 62px; transform: translateZ(0); }
html.framed .island { display: block; position: absolute; z-index: 420; top: 11px; left: 50%; width: 125px; height: 37px; transform: translateX(-50%); border-radius: 19px; background: #000; pointer-events: none; }
html.framed .island::after { content: ""; position: absolute; right: 20px; top: 50%; width: 11px; height: 11px; margin-top: -5.5px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2b3448, #0b0d14 60%); }
html.mock, html.mock body, html.mock #app { background: transparent; }
html.mock { color-scheme: normal; }
html.mock .stage-foot { display: none; }

/* barre d'état : l'heure et les icônes centrées de part et d'autre de l'île */
html.framed .sb { height: 54px; padding: 18px 0 0; font-size: 17px; font-weight: 600; letter-spacing: -.4px; }
html.framed .sb-time { width: calc((100% - 125px) / 2); text-align: center; }
html.framed .sb-right { width: calc((100% - 125px) / 2); display: flex; justify-content: center; align-items: center; gap: 6px; }

/* écran verrouillé : le cadenas passe sous l'île */
html.framed .lock-pad { margin-top: 56px; }
html.framed .lock-date { margin-top: 8px; }
html.framed .notif:not(.lock-n) { top: 54px; }

/* accueil : icônes 60 pt, libellés 12 pt, dock 60 pt */
.home-inner { padding: max(70px, calc(env(safe-area-inset-top, 0px) + 16px)) 26px calc(env(safe-area-inset-bottom, 0px) + 124px); }
.grid { grid-template-columns: repeat(4, 1fr); gap: 26px 0; justify-items: center; }
.icon { gap: 6px; }
.tile, .dock .tile { width: 60px; height: 60px; }
.icon-label { font-size: 12px; line-height: 14px; max-width: 84px; }
.dock { left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); padding: 14px 18px; border-radius: 36px; }
.home-bar-btn { padding-bottom: 8px; }

/* ---------- finitions iOS, élément par élément ---------- */
/* batterie : tout est dans le SVG */
.batt { display: block; width: 28px; height: 13px; }
.batt svg { display: block; width: 28px; height: 13px; }
.batt-num { display: none; }
.device[data-tone="dark"] .sb.on-wall { --batt-knock: #fff; }
html.framed .sb-right { gap: 5px; }
.sb .sb-cell { height: 11px; }
.sb .sb-wifi { height: 11.5px; }
/* écran verrouillé : date 20 pt semi-gras au-dessus de l'heure */
.lock-date { font-size: 20px; font-weight: 600; letter-spacing: .1px; line-height: 24px; opacity: .92; }
.lock-time { font-size: 88px; letter-spacing: -1.5px; margin-top: 0; }
@media (min-width: 560px) and (min-height: 640px) { .lock-time { font-size: 88px; } }
/* lampe et appareil photo : disques 50 pt sombres et translucides, sans contour */
.lock-q { width: 50px; height: 50px; background: rgba(0, 0, 0, .3); box-shadow: none; }
.lock-q svg { width: 22px; height: 22px; }
.device[data-tone="dark"] .lock-q { background: rgba(255, 255, 255, .45); }
.lock-bottom { padding: 0 46px; }
/* une seule barre d'accueil sur l'écran verrouillé */
.device:has(.lock) .home-bar-btn { display: none; }
.home-bar { box-shadow: none; }
/* dock : icônes centrées avec l'écart de la grille, comme iOS quand il y en a moins de 4 */
.dock { justify-content: center; gap: 27px; }
/* pastille Rechercher, plus discrète */
.spot { font-size: 13px; font-weight: 600; padding: 5px 12px; gap: 4px; }
.spot svg { width: 12px; height: 12px; }
.spot { font-weight: 500; }
.widget { box-shadow: inset 0 .6px 0 rgba(255, 255, 255, .22), 0 8px 26px rgba(0, 0, 0, .2); }
.lock-hint { font-size: 14px; white-space: nowrap; }

/* intégré (landing, éditeur) : pas d'ombre portée, elle serait coupée par l'iframe */
html.mock .frame { box-shadow: inset 0 0 0 1px var(--metal-hi), inset 0 0 0 4.5px var(--metal), inset 0 0 0 5.5px rgba(0, 0, 0, .7); }
/* l'arrondi de l'écran coupe aussi les calques animés (Chrome ignore sinon overflow + border-radius) */
html.framed .device { clip-path: inset(0 round 62px); }

/* =====================================================================
   Règles Apple (HIG) et apple-design : texte, cibles, retours, accessibilité
   ===================================================================== */
/* texte : rien sous 11 pt, interlettrage SF Pro officiel par taille */
.cal-ev { font-size: 11px; letter-spacing: .06px; }
.tabs button { font-size: 11px; letter-spacing: .06px; }
.key small { font-size: 11px; letter-spacing: 1px; }
.sb { letter-spacing: -.43px; }
.icon-label { letter-spacing: 0; }
.lock-date { letter-spacing: -.45px; }
.n-top strong, .n-msg { letter-spacing: -.23px; }
.n-top time { letter-spacing: -.08px; }
.call-from { letter-spacing: .4px; }
.call-sub { letter-spacing: -.43px; }
.call-small button { letter-spacing: -.08px; }
.lock-hint { letter-spacing: -.15px; }
.spot { letter-spacing: -.08px; }

/* cibles tactiles : 44 × 44 pt par défaut */
.home-bar-btn { height: 44px; }
.lock-links { position: relative; }
.lock-links::before { content: ""; position: absolute; left: -8px; right: -8px; top: 50%; height: 44px; transform: translateY(-50%); }
.call-small button { min-height: 44px; justify-content: center; }

/* retour visuel dès l'appui, pas au relâchement */
.icon .tile { transition: transform 100ms ease-out; }
.icon:active .tile { transform: scale(.97); }
.btn, .cbtn, .call-small button, .notif, .row, .lock-links { transition: transform 100ms ease-out; }
.btn:active, .cbtn:active, .call-small button:active, .lock-links:active { transform: scale(.97); }
.notif:not(.dragging):active { --press: .97; }

/* la sortie de l'app vers son icône */
.screen.ghost { z-index: 40; pointer-events: none; will-change: transform, opacity; }

/* Réduire les animations : fondus à la place des déplacements, zooms et flous */
@media (prefers-reduced-motion: reduce) {
  .screen.t-open, .screen.t-close, .screen.t-push, .screen.t-pop { animation: rm-fade .2s ease both; }
  .notif, .notif.gone { transition: opacity .2s ease !important; transform: none !important; }
  .call { transition: opacity .2s ease !important; transform: none !important; }
  .lock-hint, .cs-text, .alert, .alert-bg, .installing .tile::after { animation: none !important; }
  .icon:active .tile, .btn:active, .cbtn:active { transform: none; }
}
@keyframes rm-fade { from { opacity: 0; } }

/* Réduire la transparence : surfaces pleines, sans flou */
@media (prefers-reduced-transparency: reduce) {
  .notif, .dock, .widget, .lock-q, .spot, .call-slider, .alert, .lock-n, .home-bar-btn .home-bar { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .notif, .lock-n, .widget { background: #2c2c2e !important; }
  .dock { background: rgba(44, 44, 46, .96) !important; }
  .lock-q, .spot, .call-slider { background: #3a3a3c !important; }
  .alert { background: #2c2c2e !important; }
}

/* Augmenter le contraste : fonds quasi pleins et bord net */
@media (prefers-contrast: more) {
  .notif, .lock-n, .widget, .dock, .alert { background: #1c1c1e !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55) !important; }
  .lock-caption, .lock-hint, .n-top time, .icon-label { opacity: 1 !important; }
}
.notif.show { transform: translateY(var(--dy, 0)) scale(var(--press, 1)); }
.notif.dragging { transition: none; }

/* ---------- mouvements iOS ---------- */
.screen.under, .screen.side { pointer-events: none; will-change: transform; }
.screen.side { background: #000; }
.screen .iframe-ph { width: 100%; height: 100%; background: #111; }
.screen[style*="clip-path"] { will-change: transform, clip-path; }
.launch-face { position: absolute; inset: 0; z-index: 50; pointer-events: none; }
.launch-face .tile-face { position: absolute; inset: 0; border-radius: 0; box-shadow: none; -webkit-mask: none; mask: none; filter: none; background: transparent; }
.launch-face .tile-face img { object-fit: contain; }
/* iOS assombrit l'icône sous le doigt, sans la rétrécir */
.icon:active .tile { transform: none; }
.icon:active .tile-face { filter: brightness(.62); }
.viewer { background: rgba(0, 0, 0, var(--vbg, 1)); touch-action: none; }
.viewer.dragging .viewer-top, .viewer.dragging .viewer-caption, .viewer.dragging .v-arrow { opacity: var(--vbg, 1); }
.home-bar-btn { touch-action: none; cursor: grab; }
.grabbing { cursor: grabbing; }
html.framed .device .scroll, html.framed .home-inner { cursor: default; }

/* téléphone intégré vu depuis un téléphone : juste l'écran (402 × 874 pt réduit d'un bloc), sans boîtier ni île */
html.bare body, html.bare #app { overflow: hidden; }
html.bare .frame { position: absolute; left: 0; top: 0; width: 402px; height: 874px; transform: scale(var(--z, 1)); transform-origin: 0 0; padding: 0; background: none; box-shadow: none; }
html.bare .device { position: absolute; inset: 0; width: 402px; height: 874px; border-radius: 58px; clip-path: inset(0 round 58px); }
html.bare .island, html.bare .hw, html.bare .frame::before { display: none; }

/* ---------- aperçu de l'éditeur ---------- */
.lock.quiet .notif.lock-n, .lock.quiet .lock-hint { animation: none !important; }
.ghost-lock { z-index: 301 !important; }
html.editing .home .icon { cursor: grab; touch-action: none; }
html.editing .home .icon .tile { animation: jiggle .26s ease-in-out infinite alternate; }
html.editing .home .icon:nth-child(2n) .tile { animation-delay: -.13s; animation-duration: .3s; }
html.editing .home .icon:nth-child(3n) .tile { animation-delay: -.07s; animation-duration: .24s; }
@keyframes jiggle { from { transform: rotate(-1.6deg); } to { transform: rotate(1.6deg); } }
.icon.placeholder { opacity: 0; }
.icon.lifted .tile { animation: none !important; filter: drop-shadow(0 16px 20px rgba(0,0,0,.35)); }
.icon.lifted .icon-label { opacity: 0; }
html.editing .home .widget { pointer-events: none; }
@media (prefers-reduced-motion: reduce) { html.editing .home .icon .tile { animation: none; } }
/* intégré (éditeur, landing) : le boîtier est toujours centré, même quand la fenêtre est plus petite que lui */
html.mock.framed .frame { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(var(--z)); }

/* icônes en fichier (coffre-fort, lien) */
.ico-file { display: block; width: 100%; height: 100%; object-fit: cover; }
.ico-file.tinted { background: linear-gradient(#262330, #121117); position: relative; }
.ico-file.tinted::after { content: ""; position: absolute; inset: 0; background: var(--c); -webkit-mask: var(--m) center / cover no-repeat; mask: var(--m) center / cover no-repeat; }
