/* ==========================================================================
   Taysir Voyages — appli pèlerin (français / arabe)
   Plein écran sous 640 px, téléphone encadré au-delà, texte de démo à gauche dès 1100 px.
   ========================================================================== */

html, body { height: 100%; }
body.pe { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; overflow: clip; background: var(--sand); }
.pe .demo-bar { flex: none; }

.stage {
  flex: 1 1 auto; min-height: 0; position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 430px) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr);
  align-items: center; padding: 22px 24px;
  background: radial-gradient(900px 560px at 50% 112%, rgba(184, 145, 58, .22), transparent 62%), var(--sand);
}
.stage::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--khatam) 0 0 / 88px 88px; opacity: .22; mask-image: radial-gradient(closest-side at 50% 50%, transparent 30%, #000 100%); -webkit-mask-image: radial-gradient(closest-side at 50% 50%, transparent 30%, #000 100%); }

/* ---------- Le téléphone ------------------------------------------------------- */
.app {
  --app-sans: var(--sans); --app-serif: var(--serif);
  grid-column: 2; grid-row: 1; position: relative; isolation: isolate;
  display: flex; flex-direction: column; width: 100%; height: min(100%, 880px);
  background: var(--sand); color: var(--ink); font-family: var(--app-sans); font-size: 15px; line-height: 1.45;
  border: 10px solid #0b1918; border-radius: 54px; overflow: hidden; overflow: clip;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .3), 0 0 0 5px rgba(251, 248, 242, .55), 0 50px 90px -40px rgba(14, 42, 43, .6), 0 22px 40px -24px rgba(14, 42, 43, .4);
}
.app[lang="ar"] { --app-sans: var(--ar-sans); --app-serif: var(--ar-serif); }
.app[lang="ar"] .eyebrow, .app[lang="ar"] .k { letter-spacing: 0; text-transform: none; font-family: var(--ar-sans); font-size: 12px; }
.app[lang="ar"] em { font-style: normal; }
[dir="rtl"] .flip { transform: scaleX(-1); }
.app[lang="ar"] :is(.pass__k, .k, .hello__k, .side__k, .day__n, .chip-city) { letter-spacing: 0 !important; text-transform: none; font-family: var(--ar-sans); }
.app[lang="ar"] .pass__k { font-size: 11.5px; }
.app[lang="ar"] .stamp:not(.stamp--big) { font: 700 14px/1.2 var(--ar-sans); letter-spacing: 0; padding: 4px 12px 5px; }
.amt { unicode-bidi: plaintext; white-space: nowrap; }

.sb { flex: none; position: relative; display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 30px 0 34px; background: var(--night); color: var(--paper); font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; direction: ltr; font-family: var(--sans); }
.sb__island { position: absolute; left: 50%; top: 9px; width: 104px; height: 29px; margin-left: -52px; border-radius: 999px; background: #050c0c; }
.sb__icons { display: flex; align-items: center; gap: 6px; }
.sb__icons svg { height: 11px; width: auto; fill: currentColor; color: currentColor; }

/* En-tête */
.ah { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px 12px; background: var(--night); color: var(--paper); }
.ah__brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.ah__mark { width: 36px; height: 36px; flex: none; box-shadow: 0 0 0 1px rgba(212, 180, 106, .3); border-radius: 11px; }
.ah__brand b { display: block; font-family: var(--app-serif); font-weight: 400; font-size: 22px; line-height: 1; }
.app[lang="ar"] .ah__brand b { font-weight: 700; font-size: 21px; }
.ah__brand small { display: block; margin-top: 3px; font: 500 9.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); white-space: nowrap; }
.app[lang="ar"] .ah__brand small { font: 500 12px/1.1 var(--ar-sans); letter-spacing: 0; }
.lang { display: flex; padding: 3px; border-radius: 999px; background: rgba(251, 248, 242, .08); box-shadow: inset 0 0 0 1px rgba(251, 248, 242, .14); direction: ltr; }
.lang button { min-width: 50px; height: 38px; padding: 0 12px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: rgba(251, 248, 242, .7); text-align: center; transition: background-color .25s, color .25s; }
.lang button[lang="ar"] { font-family: var(--ar-sans); font-size: 15px; }
.lang button[aria-pressed="true"] { background: var(--paper); color: var(--night); }

/* Écran */
.screen { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; outline: none; }
.view { --vpad: 16px; padding: 0 var(--vpad) 28px; animation: view-in .45s var(--ease); }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } }
.h2 { margin: 22px 2px 12px; font-family: var(--app-serif); font-weight: 400; font-size: 27px; line-height: 1.05; }
.app[lang="ar"] .h2 { font-weight: 700; font-size: 24px; line-height: 1.3; }
.k { font: 500 10.5px/1.25 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.lead { color: var(--ink-2); font-size: 14px; margin: -4px 2px 14px; }

/* ---------- Voyage ------------------------------------------------------------------ */
.hello { margin: 0 calc(-1 * var(--vpad)); padding: 4px 18px 64px; background: var(--night); color: var(--paper); position: relative; isolation: isolate; overflow: hidden; }
.hello::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--khatam-light) 0 0 / 56px 56px; opacity: .1; mask-image: linear-gradient(180deg, transparent, #000 40%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%, transparent); }
.hello__k { font: 500 10.5px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2); }
.app[lang="ar"] .hello__k { font: 500 12.5px/1.4 var(--ar-sans); letter-spacing: 0; }
.hello__t { margin-top: 6px; font-family: var(--app-serif); font-weight: 400; font-size: 34px; line-height: 1.05; }
.app[lang="ar"] .hello__t { font-weight: 700; font-size: 30px; line-height: 1.3; }
.count { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.count__n { padding: 6px 12px 5px; border-radius: 12px; background: var(--gold); color: var(--ink); font: 400 26px/1 var(--mono); letter-spacing: -.02em; direction: ltr; }
.count__t { font-size: 14px; color: rgba(251, 248, 242, .8); line-height: 1.3; }
.count__t b { display: block; color: var(--paper); }

.pass { --notch: var(--sand); margin-top: -46px; background: linear-gradient(180deg, #164243, var(--night) 70%); box-shadow: inset 0 0 0 1px rgba(212, 180, 106, .28), var(--shadow-lg); }
.pass__v small .i { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; }
.pass__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.pass__head .k { color: var(--gold-2); }
.pass__dep { font-size: 12.5px; font-weight: 700; color: rgba(251, 248, 242, .75); text-align: end; }
.pass__route { direction: ltr; }
.pass__cities { display: flex; justify-content: space-between; margin-top: 4px; font-size: 12.5px; color: rgba(251, 248, 242, .65); direction: ltr; }
.app[lang="ar"] .pass__cities { direction: rtl; flex-direction: row-reverse; }
.pass__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; margin-top: 16px; }
.pass__grid .full { grid-column: 1 / -1; }
.pass__name { font-size: 16px; font-weight: 800; letter-spacing: .01em; }
.pass__name small { display: block; margin-top: 1px; font-family: var(--ar-sans); font-weight: 500; font-size: 14px; color: var(--gold-2); }
.app[lang="ar"] .pass__name small { font-family: var(--sans); }
.pass .pass__v.mono { font-weight: 400; font-size: 16px; }
.pass__bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 12px; align-items: center; }
.pass__hotel .pass__v small { display: block; font-weight: 500; font-size: 12.5px; color: rgba(251, 248, 242, .6); }
.pass__room { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; grid-column: 1 / -1; padding: 12px; border-radius: 16px; background: rgba(251, 248, 242, .06); box-shadow: inset 0 0 0 1px rgba(251, 248, 242, .1); }
.pass__room.is-new { animation: room-glow 2.6s ease; }
@keyframes room-glow { 0%, 30% { background: rgba(212, 180, 106, .24); box-shadow: inset 0 0 0 1.5px var(--gold-2); } }
.pass__wait { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 10px; border: 1.5px dashed rgba(251, 248, 242, .3); color: rgba(251, 248, 242, .75); font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.pass__wait .i { width: 16px; height: 16px; }
.pass__mates { font-size: 13px; color: rgba(251, 248, 242, .8); line-height: 1.35; min-width: 0; }
.pass__mates b { display: block; color: var(--paper); font-size: 14px; }
.pass__visa { display: flex; align-items: center; justify-content: space-between; gap: 10px; grid-column: 1 / -1; }
.pass__visa-wait { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14px; color: rgba(251, 248, 242, .85); }
.pass__visa-wait::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.stamp--visa { color: #8fd1b4; border-color: #8fd1b4; }

.quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.qcard { display: flex; flex-direction: column; gap: 4px; min-height: 92px; padding: 14px; border-radius: 18px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); text-align: start; transition: transform .25s var(--ease), box-shadow .2s; }
.qcard:active { transform: scale(.98); }
.qcard--wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 12px; min-height: 0; }
.qcard__v { font-weight: 800; font-size: 16.5px; line-height: 1.2; }
.qcard__v.num { font-weight: 400; font-size: 18px; }
.qcard__s { font-size: 12.5px; color: var(--ink-3); }
.qcard__s.warn { color: var(--amber-ink); font-weight: 700; }
.qcard__s.bad { color: var(--red); font-weight: 700; }
.qcard__s.ok { color: var(--palm); font-weight: 700; }
.av { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--night); color: var(--gold-2); font: 700 14px/1 var(--sans); }
.qcard--wide > div { flex: 1; min-width: 0; }
.qcard--wide .i { color: var(--ink-3); }

.trip { margin-top: 14px; padding: 16px; border-radius: 18px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.trip ol { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 12px; position: relative; }
.trip ol::before { content: ""; position: absolute; left: 10%; right: 10%; top: 6px; height: 1.5px; background: repeating-linear-gradient(90deg, var(--gold) 0 3px, transparent 3px 7px); }
.trip li { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; font-size: 11.5px; line-height: 1.2; color: var(--ink-2); }
.trip li i { width: 13px; height: 13px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 2px var(--gold); }
.trip li.is-past i { background: var(--gold); }
.trip li b { display: block; font: 400 11px var(--mono); color: var(--ink-3); }

/* ---------- Programme ------------------------------------------------------------- */
.banner { display: flex; align-items: center; gap: 10px; margin: 16px 0 6px; padding: 12px 14px; border-radius: 14px; background: var(--gold-soft); color: var(--gold-ink); font-weight: 700; font-size: 14px; }
.banner .i { width: 20px; height: 20px; }
.days { display: grid; gap: 8px; }
.day { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 12px; border-radius: 16px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.day__n { display: grid; place-items: center; align-content: center; height: 52px; border-radius: 12px; background: var(--sand); font: 400 11px/1.1 var(--mono); color: var(--ink-3); text-align: center; direction: ltr; }
.day__n b { font-size: 20px; font-weight: 400; color: var(--ink); }
.day[data-city="route"] .day__n { background: var(--night); color: rgba(251, 248, 242, .6); }
.day[data-city="route"] .day__n b { color: var(--paper); }
.day[data-city="madinah"] .day__n { background: var(--palm-soft); }
.day__t { font-weight: 800; font-size: 15px; line-height: 1.3; }
.day__d { margin-top: 2px; font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.day__date { display: inline-flex; gap: 6px; align-items: center; margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.chip-city { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; background: var(--sand); font-size: 11px; font-weight: 700; color: var(--ink-2); }
.day.is-today { background: var(--night); color: var(--paper); box-shadow: 0 0 0 2px var(--gold); }
.day.is-today .day__d, .day.is-today .day__date { color: rgba(251, 248, 242, .75); }
.day.is-today .day__n { background: var(--gold); color: var(--ink); }
.day.is-today .day__n b { color: var(--white); }
.day.is-past { opacity: .55; }

/* ---------- Documents --------------------------------------------------------------- */
.docs { display: grid; gap: 8px; }
.doc { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 12px; border-radius: 16px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.doc.is-new { animation: room-glow-l 2.4s ease; }
@keyframes room-glow-l { 0%, 30% { box-shadow: inset 0 0 0 2px var(--palm); background: var(--palm-soft); } }
.doc__i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; }
.doc__i .i { width: 21px; height: 21px; }
.doc--ok .doc__i { background: var(--palm-soft); color: var(--palm); }
.doc--warn .doc__i { background: var(--amber-soft); color: var(--amber-ink); }
.doc--bad .doc__i { background: var(--red-soft); color: var(--red); }
.doc--na .doc__i { background: var(--mist); color: var(--ink-3); }
.doc__t { font-weight: 800; font-size: 14.5px; line-height: 1.3; }
.doc__n { margin-top: 2px; font-size: 12.5px; color: var(--ink-2); line-height: 1.35; }
.doc--bad .doc__n { color: var(--red); font-weight: 600; }
.keep { display: flex; gap: 10px; margin-top: 14px; padding: 14px; border-radius: 16px; background: var(--mist); font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.keep .i { width: 20px; height: 20px; color: var(--palm); flex: none; }

/* ---------- Paiements ---------------------------------------------------------------- */
.paysum { display: grid; grid-template-columns: 116px minmax(0, 1fr); align-items: center; gap: 16px; margin-top: 16px; padding: 16px; border-radius: 20px; background: var(--night); color: var(--paper); }
.ring { position: relative; width: 116px; height: 116px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
[dir="rtl"] .ring svg { transform: rotate(-90deg) scaleY(-1); }
.ring circle { fill: none; stroke-width: 9; }
.ring .bg { stroke: rgba(251, 248, 242, .12); }
.ring .fg { stroke: var(--gold-2); stroke-linecap: round; transition: stroke-dashoffset 1.1s var(--ease); }
.ring__c { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; text-align: center; }
.ring__c b { font: 400 24px/1 var(--mono); }
.ring__c small { margin-top: 3px; font-size: 11.5px; color: rgba(251, 248, 242, .6); }
.paysum dl { display: grid; gap: 8px; }
.paysum dt { font-size: 12px; color: rgba(251, 248, 242, .6); }
.paysum dd { font: 400 16px/1.2 var(--mono); white-space: nowrap; unicode-bidi: plaintext; text-align: start; }
.paysum .rest dd { font-size: 21px; color: var(--gold-2); }
.free { display: flex; align-items: center; gap: 9px; margin-top: 10px; padding: 11px 13px; border-radius: 14px; background: var(--gold-soft); color: var(--gold-ink); font-size: 13px; font-weight: 700; line-height: 1.35; }
.free .i { width: 20px; height: 20px; }
.inst { display: grid; gap: 8px; }
.inst li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; padding: 13px 14px; border-radius: 16px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.inst li.is-new { animation: room-glow-l 2.4s ease; }
.inst__t { font-weight: 800; font-size: 14.5px; }
.inst__d { font-size: 12.5px; color: var(--ink-3); }
.inst__a { font: 400 15.5px var(--mono); white-space: nowrap; text-align: end; unicode-bidi: plaintext; }
.inst .tag { justify-self: end; height: 24px; font-size: 11.5px; }
.receipts { display: grid; gap: 6px; }
.receipts li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(251, 248, 242, .6); font-size: 13px; color: var(--ink-2); }
.receipts .i { width: 18px; height: 18px; color: var(--palm); }
.receipts span { flex: 1; min-width: 0; }
.receipts b { font: 400 13.5px var(--mono); color: var(--ink); white-space: nowrap; unicode-bidi: plaintext; }
.modes { margin: 10px 2px 0; font-size: 12.5px; color: var(--ink-3); }

/* ---------- Messages ---------------------------------------------------------------- */
.thread-head { display: flex; align-items: center; gap: 12px; margin: 16px 0 12px; padding: 12px; border-radius: 16px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.thread-head b { display: block; font-size: 15px; }
.thread-head small { font-size: 12.5px; color: var(--ink-3); }
.msgs { display: grid; gap: 10px; }
.bubble { position: relative; max-width: 88%; padding: 12px 14px 10px; border-radius: 18px 18px 18px 6px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
[dir="rtl"] .bubble { border-radius: 18px 18px 6px 18px; }
.bubble p { font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; }
.bubble__meta { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 6px; font-size: 11.5px; color: var(--ink-3); }
.bubble__meta .i { width: 15px; height: 15px; color: var(--palm); }
.bubble.is-unread { box-shadow: inset 0 0 0 1.5px var(--gold); background: var(--white); }
.bubble.is-unread::after { content: ""; position: absolute; top: 12px; inset-inline-end: -14px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.bubble.is-new { animation: bubble-in .6s var(--spring); }
@keyframes bubble-in { from { opacity: 0; transform: translateY(12px) scale(.96); } }
.date-sep { justify-self: center; padding: 3px 10px; border-radius: 999px; background: var(--sand-2); font-size: 11.5px; font-weight: 700; color: var(--ink-3); }
.empty { padding: 40px 10px; text-align: center; color: var(--ink-3); }

/* ---------- Barre d'onglets ----------------------------------------------------------- */
.tabs { flex: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(251, 248, 242, .96); border-top: 1px solid var(--line); }
.tabs button { position: relative; display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 54px; padding: 4px 2px; border-radius: 14px; color: var(--ink-3); font-size: 11px; font-weight: 700; text-align: center; transition: color .2s, background-color .2s; }
.app[lang="ar"] .tabs button { font-size: 12px; }
.tabs .i { width: 23px; height: 23px; }
.tabs button[aria-current="page"] { color: var(--night); background: var(--sand); }
.tabs button[aria-current="page"] .i { color: var(--gold); }
.tabs span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { position: absolute; top: 3px; left: calc(50% + 6px); display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font: 700 10.5px/1 var(--sans); box-shadow: 0 0 0 2px var(--paper); }
.badge.is-dot { min-width: 10px; width: 10px; height: 10px; padding: 0; top: 6px; background: var(--gold); }
.badge.is-bump { animation: bump 1s var(--spring); }
@keyframes bump { 0% { transform: scale(.2); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }

/* ---------- Notifications « push » -------------------------------------------------------- */
.pushes { position: absolute; top: 8px; left: 10px; right: 10px; z-index: 80; display: grid; gap: 8px; pointer-events: none; }
.push { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; align-items: center; padding: 11px 12px; border-radius: 20px; background: rgba(251, 248, 242, .94); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6); box-shadow: 0 0 0 1px rgba(19, 32, 31, .08), 0 22px 44px -16px rgba(14, 42, 43, .55); pointer-events: auto; cursor: pointer; text-align: start; animation: push-in .65s var(--spring); transition: transform .4s var(--ease), opacity .4s; }
.push.is-out { transform: translateY(-130%); opacity: 0; }
@keyframes push-in { from { transform: translateY(-130%); opacity: 0; } }
.push__ic { width: 38px; height: 38px; border-radius: 10px; }
.push__top { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--ink-3); text-transform: uppercase; }
.app[lang="ar"] .push, .app[lang="ar"] .push * { font-family: var(--ar-sans); }
.app[lang="ar"] .push__b { line-height: 1.7; } /* overflow: hidden coupait les points sous le ي final */
.app[lang="ar"] .push__top { letter-spacing: 0; font-size: 12px; text-transform: none; }
.push__t { display: block; font-weight: 800; font-size: 15px; line-height: 1.25; color: var(--ink); }
.push__b { display: block; font-size: 13px; color: var(--ink-2); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.push--gold { box-shadow: 0 0 0 1.5px var(--gold), 0 0 0 5px rgba(184, 145, 58, .18), 0 22px 44px -16px rgba(14, 42, 43, .55); }

/* ---------- Côté gauche (grand écran) -------------------------------------------------------- */
.side { display: none; }
.side__k { font: 500 11px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.side__title { margin-top: 14px; font-family: var(--serif); font-weight: 400; font-size: 46px; line-height: .98; letter-spacing: -.02em; }
.side__title em { color: #9a7628; }
.side__lead { margin-top: 14px; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.side__label { margin: 24px 0 10px; font: 500 10.5px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.personas { display: grid; gap: 8px; }
.persona { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 9px 12px; border-radius: 16px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); text-align: start; transition: box-shadow .2s, transform .2s var(--ease); }
.persona:hover { box-shadow: inset 0 0 0 1.5px var(--night); }
.persona[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--gold); background: var(--white); }
.persona b { display: block; font-size: 14px; }
.persona small { display: block; font-size: 12.5px; color: var(--ink-3); }
.persona .av { width: 38px; height: 38px; font-size: 13px; }
.perks { display: grid; gap: 10px; margin-top: 24px; }
.perks li { position: relative; padding-left: 18px; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.perks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }
.perks b { color: var(--ink); }
.side__links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 22px; font-size: 14px; font-weight: 700; }
.side__links a { color: var(--night); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); min-height: 32px; display: inline-flex; align-items: center; }

@media (min-width: 1100px) {
  .stage { column-gap: 64px; }
  .side { display: block; grid-column: 1; grid-row: 1; justify-self: end; align-self: center; width: 100%; max-width: 360px; max-height: 100%; overflow-y: auto; scrollbar-width: none; }
}
@media (min-width: 1100px) and (max-height: 780px) {
  .side__lead, .perks { display: none; }
  .side__title { font-size: 36px; }
}
@media (min-width: 640px) and (max-height: 720px) {
  .stage { padding-top: 14px; padding-bottom: 14px; }
  .sb { height: 36px; }
  .sb__island { top: 5px; height: 25px; }
}
@media (min-width: 640px) {
  .pushes { top: 50px; }
}

/* Téléphone réel (ou cadre étroit) : plein écran */
@media (max-width: 639px) {
  .stage { display: block; padding: 0; }
  .stage::before { display: none; }
  .app { height: 100%; border: 0; border-radius: 0; box-shadow: none; }
  .sb { display: none; }
  .ah { padding-top: calc(10px + env(safe-area-inset-top)); }
  .pe .demo-bar { padding: 6px 14px; font-size: 11.5px; }
}

/* Intégré dans la page « en direct » : l'appli occupe tout le cadre */
.is-embed .stage { display: block; padding: 0; }
.is-embed .stage::before, .is-embed .side { display: none; }
.is-embed .app { height: 100%; border: 0; border-radius: 0; box-shadow: none; }
.is-embed .sb { display: none; }
.is-embed .pushes { top: 8px; }
.is-embed .ah { padding-top: 12px; }

@media (max-width: 360px) {
  .view { --vpad: 12px; }
  .pass__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pass__grid > div:last-child { grid-column: 1 / -1; }
  .paysum { grid-template-columns: 96px minmax(0, 1fr); }
  .ring { width: 96px; height: 96px; }
}
