/* Animations de démonstration (nov. 2026) : recherche « restaurants aux alentours » façon carte,
   et SMS qui s'écrit sur un téléphone. Charte v4 : encre 2,5 px, ombres dures. */

/* ---------- Fenêtre « carte » ---------- */
.mx{width:100%;max-width:470px;margin:0 auto;background:#fff;border:2.5px solid #1A1A1A;border-radius:20px;box-shadow:6px 8px 0 #1A1A1A;overflow:hidden;position:relative;font-family:system-ui,-apple-system,'Segoe UI',sans-serif;color:#1A1A1A}
.mx-bar{display:flex;align-items:center;gap:6px;padding:9px 12px;border-bottom:2px solid #1A1A1A;background:#F7F5FC}
.mx-bar i{width:10px;height:10px;border-radius:50%;background:#E8477F;border:1.5px solid #1A1A1A}
.mx-bar i:nth-child(2){background:#F5C93E}.mx-bar i:nth-child(3){background:#4FC96E}
.mx-url{flex:1;margin-left:8px;background:#fff;border:1.5px solid #E4E0F2;border-radius:8px;padding:4px 10px;font-size:12px;color:#6E6A5E;white-space:nowrap;overflow:hidden}
.mx-search{position:absolute;left:14px;right:14px;top:52px;z-index:3;background:#fff;border:2px solid #1A1A1A;border-radius:999px;padding:8px 14px;font-size:14px;font-weight:600;display:flex;align-items:center;gap:8px;box-shadow:3px 3px 0 #1A1A1A}
.mx-search span{flex:1}
.mx-map{position:relative;height:132px;background:#EAF1E6;overflow:hidden}
.mx-map .rd{position:absolute;background:#fff}
.mx-map .rd.h{left:0;right:0;height:12px}.mx-map .rd.v{top:0;bottom:0;width:12px}
.mx-map .wt{position:absolute;right:-20px;bottom:-30px;width:190px;height:110px;border-radius:50%;background:#BFDDF5}
.mx-pin{position:absolute;width:24px;height:24px;border-radius:50% 50% 50% 0;transform:rotate(-45deg);background:#E8477F;border:2px solid #1A1A1A;display:grid;place-items:center;transition:background .4s,transform .4s}
.mx-pin b{transform:rotate(45deg);color:#fff;font-size:11px}
.mx-pin.you{background:#7C3AED}
.mx-pin.you.top{transform:rotate(-45deg) scale(1.3)}
.mx-list{position:relative;height:300px}
.mx-row{position:absolute;left:0;right:0;height:75px;display:flex;align-items:center;gap:12px;padding:0 14px;border-top:1.5px solid #EEEAF6;background:#fff;transition:top .7s cubic-bezier(.3,.9,.3,1),background .4s}
.mx-row .rk{width:22px;font-weight:800;color:#6E6A5E}
.mx-row .in{flex:1;min-width:0}
.mx-row .nm{font-weight:800;font-size:15px;display:flex;align-items:center;gap:6px;white-space:nowrap}
.mx-row .rt{font-size:13px;color:#43403A;margin-top:2px}
.mx-row .rt .st{color:#F5B400;letter-spacing:1px}
.mx-row .ty{font-size:12px;color:#6E6A5E}
.mx-row .ph{width:52px;height:52px;border-radius:12px;border:2px solid #1A1A1A;display:grid;place-items:center;font-size:26px;flex:none}
.mx-row.you{background:#F3EDFE}
.mx-you{font-size:10px;font-weight:900;background:#7C3AED;color:#fff;border-radius:6px;padding:2px 6px}
.mx-n1{font-size:10px;font-weight:900;background:#F5C93E;color:#1A1A1A;border:1.5px solid #1A1A1A;border-radius:6px;padding:2px 6px;opacity:0;transform:scale(.6);transition:all .35s}
.mx-row.you.first .mx-n1{opacity:1;transform:scale(1)}
.mx-row.you .rt b{transition:color .3s}
.mx-row.you.bump .rt b{color:#1B7A3A}
.mx-notifs{position:absolute;right:12px;top:96px;z-index:4;width:230px;pointer-events:none}
.mx-notif{background:#fff;border:2px solid #1A1A1A;border-radius:14px;box-shadow:3px 4px 0 #1A1A1A;padding:8px 10px;font-size:12px;display:flex;gap:8px;align-items:center;margin-bottom:8px;animation:mxIn .45s cubic-bezier(.3,1.4,.5,1) both}
.mx-notif.out{animation:mxOut .4s ease both}
.mx-notif .g{width:26px;height:26px;border-radius:50%;border:1.5px solid #1A1A1A;display:grid;place-items:center;font-weight:900;color:#4285F4;flex:none}
.mx-notif b{display:block;font-size:12px}.mx-notif span{color:#F5B400;letter-spacing:1px}
@keyframes mxIn{from{opacity:0;transform:translateY(-30px) scale(.9)}to{opacity:1;transform:none}}
@keyframes mxOut{to{opacity:0;transform:translateX(40px)}}
.mx-cap{text-align:center;margin-top:16px;font-weight:800}
.mx-cap span{display:inline-block;background:#fff;border:2.5px solid #1A1A1A;border-radius:999px;padding:8px 16px;box-shadow:3px 4px 0 #1A1A1A}

/* ---------- Téléphone : SMS qui s'écrit ---------- */
.smsph{width:290px;max-width:100%;margin:0 auto;height:560px;background:#fff;border:3px solid #1A1A1A;border-radius:44px;box-shadow:8px 10px 0 #1A1A1A;position:relative;overflow:hidden;font-family:-apple-system,system-ui,sans-serif}
.smsph .nt{position:absolute;top:10px;left:50%;transform:translateX(-50%);width:92px;height:24px;border-radius:14px;background:#1A1A1A}
.smsph .sb{display:flex;justify-content:space-between;padding:12px 26px 0;font-size:13px;font-weight:700}
.smsph .hd{text-align:center;padding:18px 0 10px;border-bottom:1px solid #EEE;background:#F9F9F9}
.smsph .av{width:46px;height:46px;border-radius:50%;margin:0 auto 4px;background:linear-gradient(135deg,#7C3AED,#E8477F);color:#fff;display:grid;place-items:center;font-weight:900;font-size:18px}
.smsph .nm{font-size:13px;font-weight:600}.smsph .nm small{display:block;color:#8E8E93;font-weight:400;font-size:11px}
.smsph .th{padding:14px 12px;display:flex;flex-direction:column;gap:6px}
.smsph .when{align-self:center;font-size:11px;color:#8E8E93;margin-bottom:4px}
.smsph .bb{align-self:flex-start;max-width:82%;background:#E9E9EB;color:#000;border-radius:18px 18px 18px 6px;padding:9px 13px;font-size:15px;line-height:1.35;min-height:20px}
.smsph .bb.typing{display:flex;gap:4px;padding:13px 14px}
.smsph .bb.typing i{width:7px;height:7px;border-radius:50%;background:#8E8E93;animation:smsDot 1s infinite}
.smsph .bb.typing i:nth-child(2){animation-delay:.15s}.smsph .bb.typing i:nth-child(3){animation-delay:.3s}
@keyframes smsDot{0%,60%,100%{opacity:.3;transform:none}30%{opacity:1;transform:translateY(-3px)}}
.smsph .cur{display:inline-block;width:2px;height:16px;background:#007AFF;vertical-align:-2px;margin-left:1px;animation:smsCur .8s steps(1) infinite}
@keyframes smsCur{50%{opacity:0}}
.smsph .ip{position:absolute;left:10px;right:10px;bottom:18px;border:1px solid #D1D1D6;border-radius:18px;padding:7px 12px;font-size:13px;color:#C7C7CC}
@media (max-width:520px){
  .mx-notifs{width:190px}
  .mx-row .ph{width:44px;height:44px;font-size:22px}
  .mx-row .nm{font-size:14px}
}
