/* « Sur le quai, à l'atelier ou au bureau. »: a MacBook and an iPhone in 3D (devices.min.js), each showing
   Certisia in the app's dark theme. The flat drawing stays underneath for a browser without WebGL. */
.devices.dv-on > .laptop,
.devices.dv-on > .mini-phone { visibility: hidden; }
.devices .dv-layer {
  /* A canvas is not stretched by left/right like a div: its size is given outright. */
  position: absolute; z-index: 1; top: -16%; left: -34%; width: 162%; height: 134%;
  pointer-events: none; opacity: 0;
}
/* With the 3D devices the picture takes the larger column and a taller box, so the screens can be read. */
@media (min-width: 861px) {
  .home .everywhere:has(.devices.dv-on) { grid-template-columns: minmax(0, 0.68fr) minmax(0, 1.32fr); gap: clamp(24px, 3vw, 48px); }
  .devices.dv-on { min-height: 0; height: clamp(480px, 46vw, 760px); }
  /* The narrower text column keeps the two store buttons side by side: they share its width. */
  .home .everywhere:has(.devices.dv-on) .stores { flex-wrap: nowrap; gap: 12px; }
  .home .everywhere:has(.devices.dv-on) .store { flex: 1 1 0; min-width: 0; gap: 10px; padding: 10px 12px; }
}
.devices .dv-layer.dv-gl-mac { z-index: 1; }
.devices .dv-layer.dv-css-mac { z-index: 2; }
.devices .dv-layer.dv-gl-phone { z-index: 3; }
.devices .dv-layer.dv-css-phone { z-index: 4; }
/* The phone comes in from beyond the page's right edge: the section clips it, without a sideways scroll. */
.home #appli { overflow-x: clip; }
.devices .dv-src { position: absolute; left: -20000px; top: 0; }

/* The app's dark theme on both screens, whatever the page's. */
.dv-dark {
  --app-bg: #0f1822; --app-card: #16212e; --app-card-2: #131d28; --app-ink: #e8eef4; --app-muted: #93a3b3;
  --app-line: #26333f; --app-in: #212d3a; --app-in-line: #2c3b4b; --app-out: #4a76a8; --app-accent: #4f9ee3;
  --app-brand: #16406a; --app-brand-ink: #7db8e8; --app-ghost: #2d3945; --app-ok: #4dbd6c; --app-ok-soft: #173424;
  --app-warn-bg: #3a2f12; --app-warn-ink: #e5c579; --app-day: rgba(255, 255, 255, 0.07);
  color: var(--app-ink);
}
.dv-glare {
  position: absolute; inset: 0; z-index: 20; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, rgba(255,255,255,.075) 0%, rgba(255,255,255,.02) 38%, rgba(255,255,255,0) 52%);
}


/* --- the iPhone's screen: the demo's phone, without its drawn frame (the 3D one is around it) --- */
.dv-phone-screen { position: relative; width: 338px; height: 738px; border-radius: 50px; overflow: hidden; }
.dv-phone-screen .dv-stage { font-size: 20px; height: 100%; }
.dv-phone-screen .phone {
  width: 100%; height: 100%; padding: 0; border-radius: 50px; background: none; box-shadow: none;
}
.dv-phone-screen .phone-screen { border-radius: 50px; }
.dv-phone-screen .phone-island { top: 0.55em; }

/* --- the MacBook's screen: the same conversation, as the app shows it in a browser --------------- */
.dv-mac-screen {
  position: relative; width: 760px; height: 493px; overflow: hidden; display: flex; flex-direction: column;
  background: var(--app-bg); font-family: var(--sans, "Manrope", ui-sans-serif, system-ui, sans-serif);
  border-radius: 9px 9px 0 0;
}
.mac-menubar {
  position: relative; flex: none; height: 20px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px; background: #0a0f15; color: rgba(255,255,255,.88); font: 600 9.5px/1 system-ui, -apple-system, sans-serif;
}
.mac-menubar .mm-l, .mac-menubar .mm-r { display: flex; align-items: center; gap: 13px; }
.mac-menubar .mm-l span, .mac-menubar .mm-r span { font-weight: 500; color: rgba(255,255,255,.78); }
.mac-menubar .mm-batt { width: 17px; height: 8px; border: 1px solid rgba(255,255,255,.75); border-radius: 2.5px;
  background: linear-gradient(90deg, rgba(255,255,255,.85) 0 70%, transparent 70%) 1px 1px / calc(100% - 2px) calc(100% - 2px) no-repeat; }
.mac-menubar .mm-wifi { width: 13px; height: 13px; color: rgba(255,255,255,.88); }
.mac-notch { position: absolute; left: 50%; top: 0; width: 96px; height: 20px; transform: translateX(-50%); background: #000; border-radius: 0 0 8px 8px; }
.mac-browser {
  flex: none; height: 34px; display: flex; align-items: center; gap: 14px; padding: 0 12px;
  background: #1b232c; border-bottom: 1px solid #0b1015;
}
.mac-browser .lights { display: flex; gap: 6px; }
.mac-browser .lights i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.mac-browser .lights i:nth-child(2) { background: #febc2e; }
.mac-browser .lights i:nth-child(3) { background: #28c840; }
.mac-browser .nav { color: rgba(255,255,255,.4); font: 600 15px/1 system-ui, sans-serif; letter-spacing: 6px; }
.mac-browser .url {
  flex: 1; max-width: 420px; margin: 0 auto; height: 22px; display: flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 7px; background: #283340; color: rgba(255,255,255,.82); font: 500 11px/1 system-ui, sans-serif;
}
.mac-browser .url svg { width: 9px; height: 9px; opacity: .7; }
.mac-browser .tabs-space { width: 64px; }

.dv-app { flex: 1; min-height: 0; display: flex; }
.dv-side {
  flex: none; width: 212px; display: flex; flex-direction: column; gap: 6px; padding: 14px 10px 12px;
  background: linear-gradient(180deg, #17406a 0%, #113150 100%); color: #fff; font-size: 11.5px;
}
.dv-side .ds-head { display: flex; align-items: center; gap: 9px; padding: 0 4px 8px; }
.dv-side .ds-head .app-mark { width: 28px; height: 28px; border-radius: 8px; background-color: rgba(255,255,255,.12); flex: none; }
.dv-side .ds-head b { font-size: 15px; }
.dv-side .ds-head svg { width: 15px; height: 15px; margin-left: auto; opacity: .6; }
.dv-side .ds-new {
  display: flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid rgba(255,255,255,.16);
  border-radius: 9px; background: rgba(255,255,255,.06); font-weight: 700;
}
.dv-side .ds-new b { font-size: 15px; line-height: 0; font-weight: 500; }
.dv-side .ds-label { margin: 12px 0 2px; padding: 0 6px; font-size: 8.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.dv-side .ds-item { display: flex; align-items: center; gap: 6px; padding: 8px 8px; border-radius: 8px; color: rgba(255,255,255,.82); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dv-side .ds-item span { overflow: hidden; text-overflow: ellipsis; }
.dv-side .ds-item.on { background: rgba(255,255,255,.12); color: #fff; font-weight: 700; }
.dv-side .ds-item em { margin-left: auto; flex: none; padding: 2px 6px; border-radius: 5px; background: rgba(255,255,255,.14); font: 700 8px/1.2 var(--sans, sans-serif); font-style: normal; }
.dv-side .ds-foot {
  margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 10px 6px 0; border-top: 1px solid rgba(255,255,255,.12); font-weight: 600;
}
.dv-side .ds-foot i { width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; font: 700 8px/1 var(--sans, sans-serif); font-style: normal; }
.dv-side .ds-foot svg { width: 11px; height: 11px; margin-left: auto; opacity: .7; }

.dv-mac-screen .dv-stage { flex: 1; min-width: 0; display: flex; font-size: 15px; }
.dv-mac-screen .dv-thread {
  flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center;
  font-size: 0.8em; line-height: 1.38; color: var(--app-ink); text-align: left;
}
.dv-mac-screen .dv-thread .scenes { width: 100%; max-width: 520px; padding: 0.8em 1em; }
.dv-mac-screen .dv-thread .app-composer { width: calc(100% - 64px); max-width: 600px; margin: 0 0 16px; }
.dv-mac-screen .dv-thread .msg.photo .snap { max-height: 17em; }

/* The screens are still pictures of the finished draft: nothing on them moves. */
.dv-mac-screen *, .dv-phone-screen * { animation: none !important; transition: none !important; }
