/* Le clip remplit le téléphone. La barre système reste accessible sous le pouce. */
.ios-device .lo-panel {
  position:absolute;
  inset:0;
  z-index:85;
  overflow:hidden;
  isolation:isolate;
  background:#25312e;
  color:#fff;
  font:500 15px/1.35 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  text-align:left;
}
.ios-device.lo-visible > .os-home-indicator {
  position:relative;
  z-index:86;
  background:transparent;
  color:white;
}
.lo-film,.lo-poster,.lo-shade {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  pointer-events:none;
}
.lo-poster { z-index:0; }
.lo-film { z-index:1; opacity:0; }
.lo-playing .lo-film { opacity:1; }
.lo-shade {
  z-index:2;
  background:linear-gradient(180deg,#101714ac 0%,transparent 25%,transparent 66%,#101714d9 100%);
}
.lo-header,.lo-bottom {
  position:absolute;
  z-index:3;
  left:max(18px,env(safe-area-inset-left));
  right:max(18px,env(safe-area-inset-right));
}
.lo-header {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  top:max(19px,calc(env(safe-area-inset-top) + 7px));
  color:#fff;
  font-size:.85rem;
  text-shadow:0 1px 6px #000;
}
.lo-header b { font-size:1rem; }
.lo-panel button {
  min-height:44px;
  padding:8px 16px;
  border:1px solid #ffffff80;
  border-radius:24px;
  background:#162320de;
  color:#fff;
  font:600 .86rem/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  cursor:pointer;
  touch-action:manipulation;
}
.lo-panel button:focus-visible { outline:3px solid white; outline-offset:2px; }
.lo-panel [hidden] { display:none; }
.lo-bottom {
  bottom:max(42px,calc(env(safe-area-inset-bottom) + 27px));
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:9px;
}
.lo-bottom p {
  margin:0;
  width:fit-content;
  max-width:30ch;
  padding:5px 9px;
  border-radius:6px;
  background:#101410c9;
  color:#fff;
  font:500 clamp(.88rem,3.7vw,1.04rem)/1.36 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  text-wrap:pretty;
}

/* Impact dans le verre, indépendant du contenu qui défile sous lui. */
.ios-device > .os-glass-chip {
  position: absolute; right: 0; bottom: 0;
  width: clamp(62px, 19%, 84px); aspect-ratio: 92 / 124;
  z-index: 999; pointer-events: none; user-select: none;
  background: url("media/verre-fissure.svg") right bottom / contain no-repeat;
}
.ios-device.lo-visible > .os-glass-chip,
.ios-device[data-route="apres"] > .os-glass-chip { visibility: hidden; }
.lo-actions { display:flex; align-items:center; gap:6px; }
.lo-panel [data-lo-sound] { display:grid; place-items:center; width:44px; padding:8px; }
.lo-panel [data-lo-sound] svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.lo-panel [data-lo-sound][aria-pressed="false"] .lo-audible,
.lo-panel [data-lo-sound][aria-pressed="true"] .lo-muted { display:none; }
.lo-about { color:#fff; background:#13201dd9; border-radius:10px; max-width:32ch; font-size:.8rem; }
.lo-about summary { padding:8px 12px; cursor:pointer; }
.lo-about summary:focus-visible, .lo-about a:focus-visible { outline:2px solid white; }
.lo-about div { padding:0 12px 12px; }
.lo-about p { background:transparent; padding:0; margin-bottom:.6em; }
.lo-about a { color:inherit; }
