/* Prototypes jouables dans la frame iPhone.
   Chaque prototype est dessiné à l'échelle logique d'un iPhone (390 × 844) puis mis à l'échelle de la frame. */
.proto-device { --w: 320px; }
.proto-device .screen { background: #f2f2f7; }
.proto {
  --b: #00a63e; --b-ink: #ffffff; --b-soft: #e5f6eb; --b-deep: #0b5c2a; --accent: #f5b400;
  --pg: #f2f2f7; --card: #ffffff; --tx: #111114; --tx2: #3c3c43; --tx3: #8a8a8e; --sep: rgba(60, 60, 67, 0.14);
  --ok: #1f9d55; --warn: #c27a00; --err: #d93025;
  position: absolute; left: 0; top: 0; width: 390px; height: 845px; transform-origin: 0 0; overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Geist", system-ui, sans-serif; font-size: 17px; line-height: 22px; color: var(--tx);
  -webkit-font-smoothing: antialiased; user-select: none; -webkit-user-select: none;
}
.proto[data-brand="yakeey"] { --b: #0f766e; --b-soft: #e1f1ef; --b-deep: #0b3d3a; --accent: #d6336c; }
.proto[data-brand="yakeey-pro"] { --b: #12263a; --b-soft: #e7edf3; --b-deep: #0b1724; --accent: #0f766e; }
.proto[data-brand="carrefour"] { --b: #0b4ea2; --b-soft: #e6eefa; --b-deep: #072f63; --accent: #e2231a; }
.proto * { box-sizing: border-box; }
:where(.proto button) { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
.proto svg { display: inline-block; flex: none; }

.p-status { position: absolute; z-index: 20; top: 0; left: 0; right: 0; height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 14px 34px 0 46px; font-size: 17px; font-weight: 600; pointer-events: none; }
.p-status .isl { position: absolute; left: 50%; top: 11px; width: 124px; height: 36px; transform: translateX(-50%); border-radius: 20px; background: #000; }
.p-status .ic { display: flex; gap: 6px; align-items: center; }
.p-status.light { color: #fff; }
.p-homebar { position: absolute; z-index: 20; bottom: 8px; left: 50%; width: 140px; height: 5px; border-radius: 3px; transform: translateX(-50%); background: #000; pointer-events: none; }

.p-stack { position: absolute; inset: 0; }
.p-screen { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--pg); transform: translateX(100%); visibility: hidden; transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s 420ms; will-change: transform; }
.p-screen.on { transform: none; visibility: visible; transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1); z-index: 2; }
.p-screen.left { transform: translateX(-28%); visibility: visible; z-index: 1; }
.p-screen.left::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.08); }
.p-screen.modal { transform: translateY(100%); }
.p-screen.modal.on { transform: none; }
.p-screen.white { background: #fff; }
.p-screen.brand { background: var(--b); color: var(--b-ink); }

.p-nav { flex: none; display: flex; align-items: center; gap: 8px; height: 44px; margin-top: 54px; padding: 0 16px; }
.p-nav .t { flex: 1; text-align: center; font-weight: 600; font-size: 17px; }
.p-nav .side { width: 64px; display: flex; }
.p-nav .side.r { justify-content: flex-end; }
.p-back { display: flex; align-items: center; gap: 2px; color: var(--b); font-size: 17px; }
.p-iconbtn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--tx); }
.p-top { flex: none; margin-top: 54px; padding: 8px 20px 0; }
.p-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 20px 28px; scrollbar-width: none; }
.p-body::-webkit-scrollbar { display: none; }
.p-foot { flex: none; padding: 12px 20px 34px; background: rgba(242, 242, 247, 0.92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-top: 0.5px solid var(--sep); display: grid; gap: 10px; }
.white .p-foot { background: rgba(255, 255, 255, 0.94); }

.p-progress { display: flex; gap: 6px; padding: 4px 20px 0; flex: none; }
.p-progress i { flex: 1; height: 4px; border-radius: 2px; background: rgba(60, 60, 67, 0.16); }
.p-progress i.on { background: var(--b); }
.p-step { font-size: 13px; color: var(--tx3); font-weight: 500; margin: 14px 0 4px; }

.p-h1 { font-size: 30px; line-height: 36px; font-weight: 700; letter-spacing: -0.02em; margin: 4px 0 6px; }
.p-h2 { font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.p-h3 { font-size: 13px; line-height: 18px; font-weight: 600; text-transform: none; color: var(--tx3); margin: 22px 4px 8px; }
.p-sub { font-size: 15px; line-height: 21px; color: var(--tx2); margin: 0 0 16px; }
.p-small { font-size: 13px; line-height: 18px; color: var(--tx3); }

.p-btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px; border-radius: 14px; background: var(--b); color: var(--b-ink) !important; font-weight: 600; font-size: 17px; text-align: center !important; transition: transform 150ms, opacity 200ms, background-color 200ms; }
.p-btn:active { transform: scale(0.98); }
.p-btn[disabled] { background: rgba(60, 60, 67, 0.12); color: rgba(60, 60, 67, 0.4) !important; cursor: default; }
.p-btn.ghost { background: transparent; color: var(--b) !important; }
.p-btn.soft { background: var(--b-soft); color: var(--b) !important; }
.p-btn.accent { background: var(--accent); color: #fff !important; }
.p-btn.dark { background: #000; color: #fff !important; }
.p-link { color: var(--b); font-weight: 500; font-size: 15px; }

.p-card { background: var(--card); border-radius: 16px; padding: 16px; }
.p-group { background: var(--card); border-radius: 14px; overflow: hidden; }
.p-row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 16px; position: relative; width: 100%; }
.p-row + .p-row::before { content: ""; position: absolute; top: 0; left: 56px; right: 0; height: 0.5px; background: var(--sep); }
.p-row .grow { flex: 1; min-width: 0; }
.p-row .lbl { font-size: 17px; line-height: 22px; }
.p-row .hint { font-size: 13px; line-height: 18px; color: var(--tx3); }
.p-chev { color: rgba(60, 60, 67, 0.3); }
.p-ico { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--b-soft); color: var(--b); flex: none; }
.p-ico.big { width: 44px; height: 44px; border-radius: 12px; }

.p-choice { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow 200ms, background-color 200ms; margin-bottom: 10px; }
.p-choice .grow { flex: 1; }
.p-choice .radio { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(60, 60, 67, 0.3); flex: none; position: relative; transition: box-shadow 200ms; }
.p-choice.sel { box-shadow: inset 0 0 0 2px var(--b); background: var(--b-soft); }
.p-choice.sel .radio { box-shadow: inset 0 0 0 7px var(--b); }

.p-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.p-chip { height: 36px; padding: 0 14px; border-radius: 18px; background: var(--card); font-size: 15px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; box-shadow: inset 0 0 0 1px var(--sep); transition: background-color 200ms, color 200ms; }
.p-chip.sel { background: var(--b); color: var(--b-ink); box-shadow: none; }
.p-chip.off { opacity: 0.35; text-decoration: line-through; pointer-events: none; }

.p-seg { display: flex; padding: 2px; border-radius: 10px; background: rgba(118, 118, 128, 0.12); }
.p-seg button { flex: 1; height: 32px; border-radius: 8px; font-size: 14px; font-weight: 500; text-align: center; transition: background-color 200ms, box-shadow 200ms; }
.p-seg button.sel { background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12), 0 0 1px rgba(0, 0, 0, 0.2); font-weight: 600; }

.p-field { background: var(--card); border-radius: 12px; padding: 8px 16px 10px; margin-bottom: 10px; box-shadow: inset 0 0 0 1px transparent; }
.p-field label { display: block; font-size: 12px; line-height: 16px; color: var(--tx3); font-weight: 500; }
.p-field .v { font-size: 17px; line-height: 24px; min-height: 24px; display: flex; align-items: center; gap: 6px; }
.p-field .v.ph { color: rgba(60, 60, 67, 0.3); }
.p-field.focus { box-shadow: inset 0 0 0 2px var(--b); }
.p-caret { width: 2px; height: 20px; background: var(--b); animation: pblink 1s steps(1) infinite; }
@keyframes pblink { 50% { opacity: 0; } }

.p-banner { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--b-soft); font-size: 14px; line-height: 19px; color: var(--tx2); }
.p-banner.warn { background: #fff4e0; }
.p-banner.err { background: #fde8e7; }
.p-banner b { color: var(--tx); }

.p-badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 12px; font-weight: 600; background: var(--b-soft); color: var(--b); }
.p-badge.ok { background: #e3f5ea; color: var(--ok); }
.p-badge.warn { background: #fff1d6; color: var(--warn); }
.p-badge.err { background: #fde8e7; color: var(--err); }
.p-badge.grey { background: rgba(118, 118, 128, 0.12); color: var(--tx2); }

.p-tabbar { flex: none; display: flex; justify-content: space-around; padding: 6px 8px 30px; background: rgba(249, 249, 249, 0.94); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-top: 0.5px solid var(--sep); }
.p-tabbar button { display: grid; justify-items: center; gap: 2px; font-size: 10px; font-weight: 500; color: #8e8e93; width: 70px; text-align: center; }
.p-tabbar button.sel { color: var(--b); }

.p-toast { position: absolute; z-index: 30; left: 10px; right: 10px; top: 52px; padding: 12px 14px; border-radius: 22px; background: rgba(250, 250, 250, 0.96); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); display: flex; gap: 10px; align-items: center; transform: translateY(-220%); visibility: hidden; transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s 500ms; cursor: pointer; }
.p-toast.show { transform: none; visibility: visible; transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1); }
.p-toast .app { width: 38px; height: 38px; border-radius: 9px; background: var(--b); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; flex: none; }
.p-toast .t { font-size: 14px; line-height: 18px; }
.p-toast .t b { display: block; font-size: 15px; }

.p-spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(0, 0, 0, 0.12); border-top-color: var(--b); animation: pspin 0.8s linear infinite; }
@keyframes pspin { to { transform: rotate(360deg); } }
.p-check { width: 22px; height: 22px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; flex: none; }

.p-timeline { list-style: none; margin: 0; padding: 0; }
.p-timeline li { position: relative; display: flex; gap: 14px; padding-bottom: 22px; }
.p-timeline li::before { content: ""; position: absolute; left: 11px; top: 26px; bottom: 2px; width: 2px; background: var(--sep); }
.p-timeline li:last-child::before { display: none; }
.p-timeline li.done::before { background: var(--ok); }
.p-timeline .dot { width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 2px var(--sep); }
.p-timeline .done .dot { background: var(--ok); box-shadow: none; color: #fff; }
.p-timeline .now .dot { box-shadow: inset 0 0 0 2px var(--b); }
.p-timeline .now .dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--b); animation: ppulse 1.6s ease-in-out infinite; }
@keyframes ppulse { 50% { transform: scale(0.6); opacity: 0.5; } }
.p-timeline .tt { font-weight: 600; font-size: 16px; }
.p-timeline .ts { font-size: 14px; color: var(--tx3); margin-top: 2px; }

.p-photo { border-radius: 14px; overflow: hidden; background: #ddd; }
.p-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.p-gal { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.p-gal::-webkit-scrollbar { display: none; }
.p-gal > * { flex: 0 0 100%; scroll-snap-align: start; }

.p-codes { display: flex; gap: 10px; justify-content: center; margin: 24px 0 12px; }
.p-codes i { width: 52px; height: 62px; border-radius: 12px; background: #fff; display: grid; place-items: center; font-style: normal; font-size: 28px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--sep); transition: box-shadow 200ms; }
.p-codes i.on { box-shadow: inset 0 0 0 2px var(--b); }

.p-success { width: 84px; height: 84px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; margin: 28px auto 18px; animation: ppop 600ms cubic-bezier(0.22, 1.4, 0.36, 1) both; }
@keyframes ppop { from { transform: scale(0.9); opacity: 0; } }
.p-center { text-align: center; }

.p-hint { display: none; position: absolute; z-index: 25; pointer-events: none; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: rgba(0, 113, 227, 0.22); box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.6); animation: phint 1.6s ease-out infinite; opacity: 0; transition: opacity 300ms; }
.p-hint.show { display: block; opacity: 1; }
@keyframes phint { 0% { transform: scale(0.6); } 70% { transform: scale(1.15); opacity: 0.2; } 100% { transform: scale(1.15); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .p-screen, .p-screen.on, .p-toast { transition: none; }
  .p-hint, .p-caret, .p-timeline .now .dot::after, .p-spin { animation: none; }
}

/* ---------- section concept sur la page ---------- */
.concept { padding-block: var(--s-900); }
.concept-head { display: grid; gap: var(--s-200); max-width: 760px; margin-bottom: var(--s-700); }
.concept-tag { justify-self: start; display: inline-flex; align-items: center; gap: var(--s-75); padding: var(--s-50) var(--s-100); border-radius: var(--r-full); background: var(--ink); color: var(--on-dark); }
.concept-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: var(--s-600); align-items: start; }
.concept-grid.duo { grid-template-columns: minmax(0, 1fr) auto auto; }
.fixes { display: grid; gap: var(--s-200); list-style: none; padding: 0; margin: 0; }
.fix { display: grid; gap: var(--s-75); padding: var(--s-300); border-radius: var(--r-2xl); background: var(--tile); }
.fix .was { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(110, 110, 115, 0.5); }
.fix .now { color: var(--ink); }
.fix-k { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--muted); }
.proto-col { display: grid; justify-items: center; gap: var(--s-200); position: sticky; top: 96px; }
.proto-col .caption-1 { color: var(--ink-2); }
.proto-steps { display: grid; gap: var(--s-50); list-style: none; padding: 0; margin: 0; counter-reset: ps; }
.proto-steps button { width: 100%; display: flex; align-items: center; gap: var(--s-100); padding: var(--s-100) var(--s-200); border: 0; border-radius: var(--r-xl); background: transparent; text-align: left; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-2); cursor: pointer; transition: background-color 300ms var(--ease), color 300ms var(--ease); }
.proto-steps button::before { counter-increment: ps; content: counter(ps); width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--tile-2); font-size: 12px; font-weight: 600; transition: background-color 300ms var(--ease), color 300ms var(--ease); }

.proto-steps button[aria-current] { background: var(--tile); color: var(--ink); }
.proto-steps button[aria-current]::before { background: var(--ink); color: var(--on-dark); }
.proto-steps button.seen::before { background: var(--good); color: #fff; }
.proto-tools { display: flex; gap: var(--s-75); justify-content: center; }
.proto-tools .btn { min-height: 36px; padding: var(--s-75) var(--s-200); font-size: 14px; line-height: 20px; background: var(--tile); color: var(--ink); }

.concept-note { margin-top: var(--s-500); color: var(--muted); max-width: 760px; }
.duo-label { text-align: center; }
@media (max-width: 1100px) {
  .concept-grid, .concept-grid.duo { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .proto-col { position: static; order: -1; }
  .fixes, .proto-steps { width: 100%; max-width: 560px; }
  .concept-grid > .steps-col { order: 3; width: 100%; max-width: 560px; }
}
@media (max-width: 760px) { .proto-device { --w: 290px; } }

/* ---------- v2 : registre iOS, verre, photos ---------- */
.proto .p-btn { border-radius: 26px; height: 54px; font-size: 17px; letter-spacing: -0.01em; }
.proto .p-btn.small { height: 36px; border-radius: 18px; padding: 0 14px; font-size: 15px; }
.p-large { font-size: 34px; line-height: 41px; font-weight: 700; letter-spacing: -0.025em; margin: 2px 0 4px; }
.glass { background: rgba(255, 255, 255, 0.58); -webkit-backdrop-filter: blur(22px) saturate(1.9); backdrop-filter: blur(22px) saturate(1.9); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), inset 0 0 0 0.5px rgba(255, 255, 255, 0.5), 0 10px 30px rgba(0, 0, 0, 0.14); }
.glass.dark { background: rgba(28, 28, 30, 0.42); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 10px 30px rgba(0, 0, 0, 0.25); }
.proto .p-tabbar { position: absolute; z-index: 6; left: 18px; right: 18px; bottom: 26px; height: 64px; padding: 0 6px; border-radius: 32px; border: 0; align-items: center; background: rgba(255, 255, 255, 0.6); -webkit-backdrop-filter: blur(22px) saturate(1.9); backdrop-filter: blur(22px) saturate(1.9); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 12px 30px rgba(0, 0, 0, 0.16); }
.proto .p-tabbar button { height: 52px; width: 76px; border-radius: 26px; align-content: center; font-size: 10.5px; }
.proto .p-tabbar button.sel { background: rgba(118, 118, 128, 0.14); }
.has-tabs .p-body { padding-bottom: 120px; }
.p-photo-card { position: relative; border-radius: 22px; overflow: hidden; color: #fff; isolation: isolate; }
.p-photo-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.p-photo-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.62)); }
.p-photo-card.top::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.55)); }
.p-thumb { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; flex: none; background: #ddd; }
.p-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.p-hero-photo { position: relative; height: 330px; flex: none; overflow: hidden; }
.p-hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.p-hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.12) 30%, rgba(0, 0, 0, 0.42) 62%, var(--pg) 100%); }
.p-floating { position: absolute; z-index: 3; }
.p-section-title { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 2px 10px; }
.p-section-title b { font-size: 20px; letter-spacing: -0.01em; }
.p-hscroll { display: flex; gap: 12px; overflow-x: auto; margin: 0 -20px; padding: 0 20px 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.p-hscroll::-webkit-scrollbar { display: none; }
.p-hscroll > * { scroll-snap-align: start; flex: none; }
.p-choice { border-radius: 18px; }
.p-choice .p-ico.big { border-radius: 50%; }
.p-card { border-radius: 20px; }
.p-group { border-radius: 18px; }
.doc.is-ok { box-shadow: inset 0 0 0 2px var(--ok); }
.doc.is-err { box-shadow: inset 0 0 0 2px var(--err); }

/* coach marks */
.p-coach { position: absolute; z-index: 26; max-width: 230px; padding: 10px 14px; border-radius: 16px; background: #0a84ff; color: #fff; font-size: 14px; line-height: 19px; font-weight: 600; box-shadow: 0 10px 24px rgba(10, 132, 255, 0.35); pointer-events: none; opacity: 0; transform: translateY(6px); transition: opacity 300ms, transform 300ms; }
.p-coach.show { opacity: 1; transform: none; }
.p-coach::after { content: ""; position: absolute; left: var(--ax, 50%); width: 12px; height: 12px; background: inherit; transform: translateX(-50%) rotate(45deg); }
.p-coach.below::after { top: -5px; } .p-coach.above::after { bottom: -5px; }
.p-hint { background: rgba(10, 132, 255, 0.22); box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.7); }

/* guide strip on the page */
.guide { display: flex; flex-wrap: wrap; gap: var(--s-75); justify-content: center; list-style: none; padding: 0; margin: 0; }
.guide li { display: inline-flex; align-items: center; gap: var(--s-75); padding: var(--s-50) var(--s-100) var(--s-50) var(--s-50); border-radius: var(--r-full); background: var(--tile); font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink-2); }
.guide li i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); font-style: normal; }
.guide kbd { font: inherit; font-size: 12px; padding: 0 5px; border-radius: 4px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- v3 : feuilles, transitions, thème sombre, arabe ---------- */
.p-screen.instant, .p-screen.instant.on { transition: none !important; }
.p-screen.sheet { top: 64px; border-radius: 28px 28px 0 0; transform: translateY(105%); box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.18); }
.p-screen.sheet.on { transform: none; }
.p-screen.under { transform: scale(0.93) translateY(8px); visibility: visible; z-index: 1; border-radius: 28px; overflow: hidden; filter: brightness(0.82); transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), filter 420ms; }
.p-grabber { width: 38px; height: 5px; border-radius: 3px; background: rgba(60, 60, 67, 0.3); margin: 8px auto 2px; flex: none; }
.proto .p-card:active, .proto .p-choice:active, .proto .p-chip:active, .proto .p-row:active { transform: scale(0.98); transition: transform 120ms; }
.p-fade-in { animation: pfade 500ms 200ms both; }
@keyframes pfade { from { opacity: 0; transform: translateY(12px); } }
.p-flight { position: absolute; z-index: 40; object-fit: cover; pointer-events: none; will-change: transform; transition: transform 460ms cubic-bezier(0.22, 1, 0.36, 1), clip-path 460ms cubic-bezier(0.22, 1, 0.36, 1); }

/* Dynamic Island and Live Activity */
.p-status .isl { transition: width 520ms cubic-bezier(0.3, 1.3, 0.5, 1), height 520ms cubic-bezier(0.3, 1.3, 0.5, 1), border-radius 520ms, top 520ms; overflow: hidden; color: #fff; display: flex; align-items: center; z-index: 30; pointer-events: auto; }
.p-status .isl .isl-in { width: 100%; display: flex; align-items: center; gap: 10px; padding: 0 12px; opacity: 0; transition: opacity 250ms; white-space: nowrap; font-weight: 500; }
.p-status .isl.compact { width: 200px; }
.p-status .isl.compact .isl-c { opacity: 1; }
.p-status .isl.expanded { width: 368px; height: 112px; border-radius: 44px; top: 8px; }
.p-status .isl.expanded .isl-x { opacity: 1; transition-delay: 220ms; }
.p-status .isl .isl-c, .p-status .isl .isl-x { position: absolute; inset: 0; }
.isl-x { flex-direction: column; align-items: stretch !important; justify-content: center; gap: 8px !important; padding: 0 22px !important; }
.isl-logo { width: 26px; height: 26px; border-radius: 7px; background: #fff; display: grid; place-items: center; flex: none; overflow: hidden; }
.isl-logo img { height: 26px; width: auto; max-width: none; display: block; }
.isl-bar { display: flex; gap: 4px; }
.isl-bar i { flex: 1; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.22); }
.isl-bar i.on { background: #30d158; }
.isl-bar i.now { background: #ffd60a; }
.p-lock { background: #000; color: #fff; }
.p-lock .wall { position: absolute; inset: 0; }
.p-lock .wall img { width: 100%; height: 100%; object-fit: cover; filter: blur(2px) brightness(0.7) saturate(1.2); transform: scale(1.05); }
.p-lock .clock { position: relative; text-align: center; margin-top: 96px; }
.p-lock .clock b { display: block; font-size: 92px; line-height: 96px; font-weight: 600; letter-spacing: -0.03em; }
.p-lock .clock span { font-size: 19px; font-weight: 600; opacity: 0.9; }
.p-live { position: relative; margin: 0 14px; border-radius: 26px; padding: 16px; color: #fff; }

/* Wallet */
.p-pass { border-radius: 16px; padding: 16px; color: #fff; background: linear-gradient(160deg, #1561c0, #0b4ea2 55%, #083b7b); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }
.p-pass .pl { background: #fff; border-radius: 8px; padding: 4px 8px; display: inline-flex; }
.p-pass .pl img { height: 18px; width: auto; display: block; }
.p-stackcard { height: 74px; border-radius: 16px 16px 0 0; margin-bottom: -26px; box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.25); }
.p-drop { animation: pdrop 900ms cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes pdrop { from { transform: translateY(-420px) scale(1.08); } 70% { transform: translateY(8px); } }

/* dark appearance */
.proto[data-theme="dark"] { --pg: #000; --card: #1c1c1e; --tx: #fff; --tx2: rgba(235, 235, 245, 0.75); --tx3: rgba(235, 235, 245, 0.5); --sep: rgba(84, 84, 88, 0.6); --b-soft: rgba(48, 209, 88, 0.16); color: #fff; }
.proto[data-theme="dark"] .p-screen.white, .proto[data-theme="dark"] .white .p-foot { background: #000; }
.proto[data-theme="dark"] .p-foot { background: rgba(10, 10, 10, 0.86); }
.proto[data-theme="dark"] .p-tabbar, .proto[data-theme="dark"] .glass:not(.dark) { background: rgba(40, 40, 42, 0.6); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 30px rgba(0, 0, 0, 0.4); }
.proto[data-theme="dark"] .p-status:not(.light) { color: #fff; }
.proto[data-theme="dark"] .p-homebar { background: #fff; }
.proto[data-theme="dark"] .p-btn[style*="#111"] { background: #fff !important; color: #000 !important; }
.proto[data-theme="dark"] .p-seg button.sel { background: #636366; }
.proto[data-theme="dark"] .p-chip { box-shadow: inset 0 0 0 1px var(--sep); }
.proto[data-theme="dark"] .p-iconbtn { background: #2c2c2e; color: #fff; }
.proto[data-theme="dark"] .p-toast { background: rgba(44, 44, 46, 0.96); color: #fff; }
.proto[data-theme="dark"] .p-codes i { background: #1c1c1e; }

/* right to left */
.proto[dir="rtl"] { font-family: -apple-system, "SF Arabic", "Geeza Pro", "Noto Sans Arabic", system-ui, sans-serif; }
.proto[dir="rtl"] .p-back svg, .proto[dir="rtl"] .p-chev svg, .proto[dir="rtl"] [data-back] svg { transform: scaleX(-1); }
.proto[dir="rtl"] .p-row + .p-row::before { left: 0; right: 56px; }
.proto[dir="rtl"] .p-timeline li::before { left: auto; right: 11px; }
.proto[dir="rtl"] .p-status { direction: ltr; }

/* desktop prototype */
.laptop { width: 100%; max-width: 900px; justify-self: center; }
.laptop-lid { position: relative; padding: 2.2% 2.2% 3%; border-radius: 22px 22px 10px 10px; background: #1d1d1f; box-shadow: inset 0 0 0 2px #3a3a3c, 0 30px 60px -24px rgba(0, 0, 0, 0.45); }
.laptop-lid::before { content: ""; position: absolute; top: 1%; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #2c2c2e; }
.laptop .screen { position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; background: #f5f5f7; }
.laptop-base { height: 16px; margin: 0 -6%; border-radius: 0 0 18px 18px; background: linear-gradient(#d2d2d7, #a1a1a6); position: relative; }
.laptop-base::before { content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 6px; transform: translateX(-50%); border-radius: 0 0 8px 8px; background: #86868b; }
.d-app { display: grid; grid-template-columns: 220px 1fr; height: 100%; }
.d-side { background: rgba(236, 236, 240, 0.9); padding: 18px 12px; display: grid; align-content: start; gap: 4px; border-right: 0.5px solid var(--sep); }
.d-side .d-brand { display: flex; align-items: center; gap: 8px; padding: 4px 10px 16px; font-weight: 700; }
.d-nav { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 14px; color: var(--tx2); }
.d-nav.sel { background: rgba(0, 0, 0, 0.07); color: var(--tx); font-weight: 600; }
.d-main { padding: 26px 30px; overflow: auto; display: grid; align-content: start; gap: 18px; }
.d-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.d-week { display: grid; grid-template-columns: 70px repeat(3, 1fr); gap: 6px; font-size: 13px; }
.d-week .h { font-weight: 600; text-align: center; padding: 6px 0; }
.d-week .t { color: var(--tx3); padding-top: 9px; }
.d-slot { height: 38px; border-radius: 10px; border: 1.5px dashed rgba(60, 60, 67, 0.25); font-size: 13px; font-weight: 600; color: var(--tx3); transition: background-color 200ms, color 200ms, border-color 200ms; }
.d-slot.sel { background: var(--accent); border: 1.5px solid var(--accent); color: #fff; }
.d-slot.busy { background: repeating-linear-gradient(135deg, rgba(60, 60, 67, 0.08) 0 6px, transparent 6px 12px); border-style: solid; border-color: transparent; pointer-events: none; }
.linked { display: grid; grid-template-columns: auto 1fr; gap: var(--s-700); align-items: center; }
@media (max-width: 1100px) { .linked { grid-template-columns: minmax(0, 1fr); justify-items: center; } }
.proto[data-w="1280"] { font-size: 15px; }
.proto[data-w="1280"] .p-toast { left: auto; right: 18px; top: 18px; width: 380px; }
.proto[data-w="1280"] .p-screen { transform: none; visibility: visible; }
.proto-tools { flex-wrap: wrap; }
.proto-tools .btn[aria-pressed="true"]:not([data-tool="helps"]) { background: var(--ink); color: var(--on-dark); }

/* ---------- récit au défilement ---------- */
.fixes-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-200); margin-bottom: var(--s-800); }
.story { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-800); align-items: start; }
.story .proto-col { position: sticky; top: max(88px, calc(50vh - 360px)); }
.story-steps { gap: 0; }
.story-steps .chapter { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; gap: var(--s-100); padding-left: var(--s-50); }
.story-steps .chapter:first-child { min-height: 40vh; justify-content: flex-start; padding-top: var(--s-500); }
.story-steps .chapter:last-child { min-height: 70vh; }
.story-steps button { font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -0.015em; padding: var(--s-75) 0; color: var(--muted); background: transparent !important; transition: color 500ms var(--ease); }
.story-steps button::before { width: 32px; height: 32px; font-size: 14px; }
.story-steps .chapter p { max-width: 460px; color: var(--muted); opacity: 0.45; transition: opacity 500ms var(--ease), color 500ms var(--ease); padding-left: 44px; }
.story-steps .chapter.active button { color: var(--ink); }
.story-steps .chapter.active p { opacity: 1; color: var(--ink-2); }
@media (max-width: 1100px) {
  .fixes-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .story .proto-col { position: static; order: -1; }
  .story .steps-col { width: 100%; max-width: 600px; }
  .story-steps .chapter, .story-steps .chapter:first-child, .story-steps .chapter:last-child { min-height: 0; padding: var(--s-200) 0; }
  .story-steps button { font-size: 20px; line-height: 28px; }
  .story-steps .chapter p { opacity: 1; padding-left: 44px; }
}
@media (max-width: 760px) { .fixes-row { grid-template-columns: minmax(0, 1fr); } }
.mobile-only { display: none; }
@media (max-width: 760px) { .mobile-only { display: block; } }

/* accueil My Wafa v2 */
.w-mini { width: 170px; height: 186px; border-radius: 22px; padding: 16px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; flex: none; }
.w-dots { display: flex; gap: 6px; justify-content: center; margin-top: 10px; }
.w-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(60, 60, 67, 0.22); }
.w-dots i.on { width: 18px; background: var(--tx); }
.w-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.w-actions span { display: grid; justify-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--tx2); }
.w-actions .p-ico { width: 54px; height: 54px; border-radius: 50%; background: var(--card); color: var(--b); font-style: normal; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }
.proto[data-theme="dark"] .w-dots i.on { background: #fff; }
.proto[data-theme="dark"] img[src*="logos/wafa"] { background: #fff; border-radius: 8px; padding: 3px 6px; box-sizing: content-box; }


/* survol réservé aux pointeurs précis : pas d’état collé après un tap */
@media (hover: hover) and (pointer: fine) {
  .proto-steps button:hover { background: var(--tile); color: var(--ink); }
  .proto-tools .btn:hover { background: var(--tile-2); }
}

/* ---------- My Wafa : illustrations, rayons sobres, CTA de marque ---------- */
.ill { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; }
.p-photo-card.ill-card::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 40, 18, 0.35)); }
.p-photo-card.ill-card.light { color: #2b1d00; }
.p-photo-card.ill-card.light::after { display: none; }
.p-hero-photo.ill-hero::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 62%, var(--pg) 100%); }
.p-lock .wall .ill { filter: none; transform: none; }
.proto[data-brand="wafa"] .p-card, .proto[data-brand="wafa"] .p-photo-card, .proto[data-brand="wafa"] .w-mini { border-radius: 12px; }
.proto[data-brand="wafa"] .p-group, .proto[data-brand="wafa"] .p-choice, .proto[data-brand="wafa"] .p-banner { border-radius: 10px; }
.proto[data-brand="wafa"] .p-thumb { border-radius: 8px; }
.proto[data-brand="wafa"] .p-field { border-radius: 8px; }
.proto[data-brand="wafa"] .p-live { border-radius: 18px; }
.proto[data-brand="wafa"] .p-ico.big, .proto[data-brand="wafa"] .p-ico { border-radius: 8px; }
.proto[data-brand="wafa"] .w-actions .p-ico { border-radius: 12px; }
.w-cta { background: var(--b); color: #fff !important; box-shadow: 0 8px 20px -8px rgba(0, 166, 62, 0.6); }
.w-cta svg { color: #fff; }
.proto[data-theme="dark"] .w-cta { background: var(--b); color: #fff !important; }

/* ---------- My Wafa v3 : illustrations au trait, fonds clairs ---------- */
.ill-line * { vector-effect: non-scaling-stroke; }
.ill-thumb { display: block; width: 100%; height: 100%; }
.p-photo-card.ill-card.light { color: var(--tx); box-shadow: inset 0 0 0 1px rgba(0, 120, 50, 0.08); }
.p-photo-card.ill-card.light::after { display: none; }
.proto[data-brand="wafa"] .w-mini { background: #fff; color: var(--tx); box-shadow: inset 0 0 0 1px var(--sep); }
.proto[data-brand="wafa"] .w-mini span[style*="opacity"] { color: var(--tx3); opacity: 1 !important; }
.proto[data-brand="wafa"] .w-mini div[style*="opacity"] { color: var(--tx2); opacity: 1 !important; }
.p-hero-photo.ill-hero::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, var(--pg) 100%); }
.p-lock.light-lock { background: #f3faf5; color: var(--tx); }
.p-lock.light-lock .clock { color: #17301f; }
.p-lock.light-lock .p-center { color: var(--tx2); }
.proto[data-theme="dark"] .p-photo-card.ill-card.light, .proto[data-theme="dark"][data-brand="wafa"] .w-mini { background: #1c1c1e; }
.proto[data-theme="dark"] .ill-line { stroke: #e8f3ec; }
.proto[data-theme="dark"] .ill-line > rect:first-child { fill: #14251a; }
