/* PRAYZ - maquettes de l'app (js/onboarding-art.js) : téléphones 3D qui montrent les vrais
   écrans réduits, cartes flottantes. Partagées par le parcours d'onboarding (index.html) et la
   page d'accueil publique (accueil.html). Couleurs : jetons.css. */

/* ===================== Accueil : trois téléphones ===================== */
.onb-phones { position: relative; height: 336px; overflow-x: clip; overflow-clip-margin: 24px; perspective: 1400px; perspective-origin: 50% 50%; }

/* Téléphone 3D (onboarding-art.js) : tranches .edge, face .front, écran réduit .zoom */
.ph3d { position: absolute; transform-style: preserve-3d; }
.ph3d .edge { position: absolute; inset: 0; border-radius: var(--r); background: #332B3F; }
.ph3d .edge:nth-child(1) { transform: translateZ(-12px); box-shadow: var(--ph-shadow); }
.ph3d .edge:nth-child(2) { transform: translateZ(-9px); }
.ph3d .edge:nth-child(3) { transform: translateZ(-6px); }
.ph3d .edge:nth-child(4) { transform: translateZ(-3px); }
.ph3d .front { position: absolute; inset: 0; padding: 6px; border-radius: var(--r); background: #1D1726; }
.ph3d .glass { position: relative; width: 100%; height: 100%; border-radius: calc(var(--r) - 6px); overflow: hidden; background: var(--paper); }
.ph3d .zoom { width: 390px; transform-origin: 0 0; transform: scale(var(--s)); }
.ph3d .m-app { height: var(--sh); }
.ph3d .notch { position: absolute; left: 50%; top: 5px; width: var(--nw); height: var(--nh); transform: translateX(-50%); border-radius: 999px; background: #1D1726; }

.ph-side-left, .ph-side-right { top: 25px; width: 132px; height: 286px; --r: 26px; --s: .3077; --sh: 890px; --nw: 36px; --nh: 9px; }
.ph-side-left { left: 4px; transform: translateZ(-40px) rotateY(34deg); --ph-shadow: -24px 30px 44px -22px rgba(39, 20, 74, .5); }
.ph-side-right { right: 4px; transform: translateZ(-40px) rotateY(-34deg); --ph-shadow: 24px 30px 44px -22px rgba(39, 20, 74, .5); }
.ph-center { left: calc(50% - 77px); top: 0; width: 154px; height: 334px; transform: translateZ(30px); --r: 31px; --s: .3641; --sh: 884px; --nw: 43px; --nh: 11px; --ph-shadow: 0 34px 54px -20px rgba(39, 20, 74, .55); }
.ph-slide { left: 0; top: 0; width: 176px; height: 380px; --r: 35px; --s: .4205; --sh: 875px; --nw: 49px; --nh: 12px; --ph-shadow: 30px 36px 50px -22px rgba(39, 20, 74, .55); }

/* ===================== Écrans de l'app réduits (espace de 390 px) ===================== */
.m-app { position: relative; width: 390px; overflow: hidden; background: var(--paper); color: var(--ink); font-family: var(--font-ui); font-size: 15px; line-height: normal; text-align: left; }
.m-app .i { width: 20px; height: 20px; }
.m-top { display: flex; align-items: center; gap: 8px; padding: 44px 16px 12px; }
.m-brand { margin-right: auto; display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 22px; letter-spacing: -.02em; color: var(--violet); }
.m-brand .brand-mark { color: var(--violet); }
.m-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); }
.m-btn b { font-size: 15px; }
.m-btn.m-me { background: var(--hl-lilas); border-color: transparent; font-weight: 700; font-size: 15px; }
.m-pillrow { padding: 0 16px 12px; }
.m-pill { height: 44px; padding: 0 14px 0 16px; border-radius: 14px; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 16px; }
.m-pill .m-ver { font-weight: 500; font-size: 13px; color: var(--muted); }
.m-pill .i { margin-left: auto; width: 18px; height: 18px; color: var(--muted); }
.m-read { padding: 12px 16px 0; }
.m-eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.m-chapter { margin: 8px 0 26px; font-size: 46px; font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.m-verses { font-family: var(--font-text); font-size: 20px; line-height: 1.62; }
.m-verses p { margin: 0 0 .55em; }
.m-vn { font-family: var(--font-ui); font-size: .58em; font-weight: 700; color: var(--violet); vertical-align: .55em; margin-right: .3em; }
.m-hl { padding: .06em .12em; border-radius: .25em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.m-hl.hl-jaune, .f-verse .hl-jaune { background: var(--hl-jaune); }
.m-hl.hl-lilas { background: var(--hl-lilas); }
.m-hl.hl-ciel, .f-verse .hl-ciel { background: var(--hl-ciel); }
.m-note { display: flex; gap: 8px; align-items: flex-start; width: fit-content; margin: -.2em 0 .9em; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 70%, transparent); font-family: var(--font-ui); font-size: 14px; line-height: 1.45; color: var(--muted); }
.m-note .i { width: 16px; height: 16px; margin-top: 2px; color: var(--violet); }
.m-stack { display: grid; gap: 14px; padding: 8px 16px 0; }
.m-hero { min-height: 170px; display: flex; align-items: flex-end; padding: 22px 20px; border-radius: 24px; background-color: #3B1D6E; background-image: radial-gradient(circle at 85% 18%, rgba(248, 231, 163, .55), transparent 32%); color: #FFFFFF; }
.m-hero p { margin: 0; max-width: 18ch; font-size: 28px; font-weight: 800; line-height: 1.12; letter-spacing: -.02em; }
.m-card { padding: 16px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.m-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.m-h2 { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.m-sec { margin-top: 4px; }
.m-tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 999px; background: var(--violet-soft); color: var(--violet); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.m-tag .i { width: 12px; height: 12px; stroke-width: 2.2; }
.m-text { margin: 0; font-size: 15px; line-height: 1.5; }
.m-text.m-gap { margin-top: 10px; }
.m-post { padding: 14px; display: grid; gap: 10px; }
.m-who { display: flex; align-items: center; gap: 10px; }
.m-who > div { min-width: 0; display: grid; }
.m-name { display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px; font-weight: 600; font-size: 15px; }
.m-action { font-weight: 400; }
.m-meta { font-size: 12px; color: var(--muted); }
.m-av { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); font-weight: 700; font-size: 14px; }
.m-av.xs { width: 22px; height: 22px; font-size: 10px; }
.m-av.av-violet { color: var(--violet-ink); }
.m-minis { display: flex; gap: 10px; margin-top: 12px; overflow: hidden; }
.m-mini { flex: none; width: 160px; min-height: 104px; padding: 10px; border-radius: 14px; background: var(--violet-soft); display: grid; align-content: start; gap: 6px; }
.m-mini-who { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.m-mini p { margin: 0; font-size: 13px; line-height: 1.35; }
.m-composer { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: var(--muted); }
.m-composer span:nth-child(2) { flex: 1; }
.m-composer .i { color: var(--violet); }
.m-quote { font-family: var(--font-text); font-size: 17px; line-height: 1.55; }
.m-quote .m-hl { padding: .05em .15em; }
.m-tabbar { position: absolute; left: 0; right: 0; bottom: 0; height: 84px; display: flex; gap: 8px; padding: 8px 12px 24px; background: color-mix(in srgb, var(--paper) 94%, transparent); border-top: 1px solid var(--line); }
.m-tabbar div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 18px; font-size: 11px; font-weight: 600; }
.m-tabbar div.on { background: var(--violet); color: var(--violet-ink); }
.m-tabbar .i { width: 24px; height: 24px; }

/* ===================== Diapositives ===================== */
.onb-art { position: relative; height: 300px; border-radius: 28px; background: var(--violet-soft); overflow: hidden; perspective: 1400px; perspective-origin: 52% 64%; }
.art3d { position: absolute; left: calc(50% - 75px); top: 26px; width: 176px; height: 380px; transform: rotateX(12deg) rotateY(-24deg); transform-style: preserve-3d; }
.fcard { position: absolute; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: 22px 26px 36px -16px rgba(39, 20, 74, .45); padding: 12px; color: var(--ink); text-align: left; }
.fc-b1 { left: -58px; top: 62px; width: 186px; transform: translateZ(60px); }
/* Libellé et 5 pastilles de 16 px : 180 px de large, rapproché moins que les autres pour rester dans le cadre. */
.fc-b2 { left: 40px; top: 192px; width: 180px; padding: 10px 12px; transform: translateZ(70px); }
.fc-c1 { left: -62px; top: 8px; width: 178px; transform: translateZ(60px); }
.fc-c2 { left: 90px; top: 148px; width: 174px; transform: translateZ(120px); }
.fc-g1 { left: -58px; top: 62px; width: 192px; transform: translateZ(60px); }
.fc-g2 { left: 76px; top: 158px; width: 170px; transform: translateZ(120px); }
.fc-g3 { left: 66px; top: 22px; border-radius: 999px; padding: 6px 12px; display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; white-space: nowrap; transform: translateZ(90px); }
.fc-g3 .i { width: 13px; height: 13px; }
.f-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.f-verse { margin-top: 6px; font-family: var(--font-text); font-size: 14px; line-height: 1.5; }
.f-verse.small { margin-top: 8px; font-size: 12px; }
.f-verse .m-hl { padding: .05em .15em; }
.f-note { display: flex; gap: 6px; margin-top: 8px; font-size: 11px; line-height: 1.4; color: var(--muted); }
.f-note .i { width: 14px; height: 14px; color: var(--violet); }
.f-swatches { display: flex; align-items: center; gap: 5px; }
.f-swatches span { margin-right: auto; font-size: 11px; font-weight: 600; color: var(--muted); }
.f-swatches i { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); }
.f-btn { margin-top: 8px; height: 30px; border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 6px; background: var(--violet-soft); border: 1px solid var(--violet-line); font-size: 11px; font-weight: 600; }
.f-btn .i { width: 13px; height: 13px; }
.f-who { display: flex; align-items: center; gap: 8px; }
.f-who > div { display: grid; }
.m-av.f { width: 26px; height: 26px; font-size: 11px; }
.f-name { font-size: 12px; font-weight: 600; }
.f-action { font-weight: 400; }
.f-meta { font-size: 10px; color: var(--muted); }
.f-org { gap: 2px; }
.f-tag { width: fit-content; display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; border-radius: 999px; background: var(--violet-soft); color: var(--violet); font-size: 8px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.f-tag .i { width: 9px; height: 9px; stroke-width: 2.4; }
.f-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.f-head > span:first-child { font-size: 13px; font-weight: 800; white-space: nowrap; }
.f-head .f-tag { padding: 2px 7px; }
.f-text { margin: 8px 0 0; font-size: 12px; line-height: 1.45; }
