/* LES STORIES DU JOUR (js/stories.js) : bulle, rangée, visionneuse plein écran, publication.
   Fichier à part : chargé par la carte (index.html) et par le compte (compte/index.html, stories d'un profil). */
.st-ring{--st:conic-gradient(from 210deg,#feda75,#fa7e1e,#d62976,#962fbf,#4f5bd5,#feda75);display:grid;place-items:center;width:58px;height:58px;padding:3px;border-radius:50%;background:rgba(255,255,255,.55)}
.st-ring.on{background:var(--st)}
.st-ring.vu{background:#B9B3AA}
.st-av{display:grid;place-items:center;width:100%;height:100%;border-radius:50%;overflow:hidden;background:#EDE6DA;border:2.5px solid #fff;color:#1E1A16;font:600 1.1rem var(--text)}
.st-av img{width:100%;height:100%;object-fit:cover;display:block}
.st-av svg{width:22px;height:22px;fill:none;stroke:#1E1A16;stroke-width:2.4;stroke-linecap:round}
.st-ring.petit{width:38px;height:38px;padding:2px}
.st-ring.petit .st-av{border-width:2px}
.st-ring.grand{width:70px;height:70px}
.st-bulle{position:absolute;z-index:6;top:8px;left:62px;padding:0;border:0;background:none;cursor:pointer;-webkit-tap-highlight-color:transparent;filter:drop-shadow(0 4px 10px rgba(0,0,0,.35))}
.st-bulle .st-nb{position:absolute;right:-2px;bottom:-2px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#d62976;color:#fff;border:2px solid #fff;font:700 .7rem/16px var(--text)}
.st-plus .st-ring{width:44px;height:44px;background:rgba(255,255,255,.6);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.st-plus .st-av{background:rgba(255,255,255,.85)}
@keyframes st-tourne{to{transform:rotate(360deg)}}
.st-tray{margin:12px 0 4px}
.st-tray[hidden]{display:none}
.st-tray-h{display:flex;align-items:baseline;gap:8px;margin:0 2px 8px}
.st-tray-h b{font:400 1.15rem var(--display);color:#1E1A16}
.st-tray-h small{font-size:.78rem;color:#6E6458}
.st-tray-l{display:flex;gap:14px;overflow-x:auto;padding:2px 2px 6px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.st-tray-l::-webkit-scrollbar{display:none}
.st-tray-i{flex:none;display:flex;flex-direction:column;align-items:center;gap:5px;width:76px;padding:0;border:0;background:none;cursor:pointer;color:#1E1A16}
.st-tray-i>span:last-child{max-width:76px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:500 .74rem var(--text)}
html.st-ouvert,html.st-ouvert body{overflow:hidden}
.st-v{position:fixed;inset:0;z-index:400;display:flex;align-items:center;justify-content:center;background:#000;color:#fff;touch-action:none;-webkit-user-select:none;user-select:none;animation:st-entre .22s ease-out}
@keyframes st-entre{from{opacity:0;transform:scale(.96)}}
.st-scene{position:relative;width:min(100vw,calc(100dvh * 9 / 16));height:100dvh;max-height:100dvh;overflow:hidden;background:#111;transition:transform .2s}
@media (min-width:700px){.st-scene{height:min(92dvh,900px);border-radius:14px}}
.st-img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.st-img.plein{object-fit:cover}
.st-fond{position:absolute;inset:-60px;width:calc(100% + 120px);height:calc(100% + 120px);object-fit:cover;filter:blur(30px) brightness(.62);pointer-events:none}
.st-bars{position:absolute;z-index:3;top:calc(8px + env(safe-area-inset-top,0px));left:8px;right:8px;display:flex;gap:4px}
.st-bars span{flex:1;height:2.5px;border-radius:2px;background:rgba(255,255,255,.35);overflow:hidden}
.st-bars i{display:block;height:100%;background:#fff}
.st-top{position:absolute;z-index:3;top:calc(18px + env(safe-area-inset-top,0px));left:8px;right:4px;display:flex;align-items:center;gap:4px;padding-top:4px}
.st-top::before{content:"";position:absolute;inset:-30px -10px -40px;background:linear-gradient(rgba(0,0,0,.45),transparent);z-index:-1;pointer-events:none}
.st-lieu{flex:1;min-width:0;display:flex;align-items:center;gap:9px;padding:0;border:0;background:none;color:#fff;text-align:left;cursor:pointer}
.st-lieu b{display:block;font:600 .9rem var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.st-lieu small{display:block;font:400 .76rem var(--text);opacity:.85;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.st-b{flex:none;display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;background:none;color:#fff;cursor:pointer}
.st-b svg{width:24px;height:24px;fill:currentColor;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.st-txt{position:absolute;z-index:3;left:16px;right:16px;top:calc(84px + env(safe-area-inset-top,0px));margin:0;text-align:center;font:600 1.05rem/1.35 var(--text);text-shadow:0 1px 8px rgba(0,0,0,.7)}
.st-bas{position:absolute;z-index:3;left:0;right:0;bottom:0;display:flex;flex-direction:column;gap:10px;padding:30px 12px calc(14px + env(safe-area-inset-bottom,0px));background:linear-gradient(transparent,rgba(0,0,0,.55))}
.st-cta{flex:1;height:44px;border:1px solid rgba(255,255,255,.7);border-radius:999px;background:rgba(0,0,0,.25);color:#fff;font:600 .9rem var(--text);cursor:pointer}
.st-cta2{flex:none;padding:0 16px}
.st-menu{position:absolute;z-index:5;left:10px;right:10px;bottom:calc(14px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;overflow:hidden;border-radius:16px;background:#262626}
.st-menu[hidden]{display:none}
.st-menu button{height:52px;border:0;border-top:1px solid #363636;background:none;color:#fff;font:500 .95rem var(--text);cursor:pointer}
.st-menu button:first-child{border-top:0}
.st-menu [data-st-signaler],.st-menu [data-st-retirer]{color:#ED4956;font-weight:600}
.st-bas-c{flex-direction:column;gap:8px;padding-top:60px}
.st-in{height:46px;padding:0 16px;border:1px solid rgba(255,255,255,.6);border-radius:999px;background:rgba(0,0,0,.35);color:#fff;font:400 1rem var(--text)}
.st-in::placeholder{color:rgba(255,255,255,.75)}
.st-regle{margin:0 4px;font-size:.72rem;line-height:1.35;opacity:.8;text-align:center}
.st-publier{height:48px;border:0;border-radius:999px;background:#fff;color:#000;font:700 .98rem var(--text);cursor:pointer}
.st-publier:disabled{opacity:.6}
.st-feuille{position:fixed;inset:0;z-index:410;display:flex;align-items:flex-end;justify-content:center;background:rgba(0,0,0,.4);animation:st-entre .2s ease-out}
.st-f-in{width:min(100%,480px);padding:22px 20px calc(18px + env(safe-area-inset-bottom,0px));border-radius:22px 22px 0 0;background:var(--paper);color:var(--ink);text-align:center}
.st-f-in h3{margin:8px 0 6px;font:400 1.35rem var(--display)}
.st-f-in p{margin:0 0 16px;color:var(--ink-2);font-size:.93rem;line-height:1.45}
.st-f-av{display:inline-block}
.st-go{display:flex;align-items:center;justify-content:center;width:100%;height:48px;border:0;border-radius:999px;background:linear-gradient(90deg,#f58529,#dd2a7b,#8134af);color:#fff;font:700 .98rem var(--text);text-decoration:none;cursor:pointer}
.st-f-x{width:100%;height:44px;margin-top:6px;border:0;background:none;color:var(--ink-2);font:500 .92rem var(--text);cursor:pointer}
@media (prefers-reduced-motion:reduce){.st-v,.st-feuille{animation:none}}
.st-bulle{display:flex;flex-direction:column;align-items:center;gap:3px}
.st-bulle .st-ring{position:relative}
.st-plus .st-ring{width:58px;height:58px;padding:2px;background:rgba(255,255,255,.9);-webkit-backdrop-filter:none;backdrop-filter:none}
.st-plus .st-av{background:#EDE6DA}
.st-pl{position:absolute;left:40px;top:38px;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#0095F6;border:2.5px solid #fff}
.st-pl svg{width:13px;height:13px;fill:none;stroke:#fff;stroke-width:3.4;stroke-linecap:round}
.st-lbl{max-width:84px;padding:1px 7px 2px;border-radius:999px;background:rgba(0,0,0,.42);color:#fff;font:600 .68rem/1.3 var(--text);white-space:nowrap;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.st-bulle .st-nb{right:-2px;bottom:auto;top:40px}
.st-bas-l{display:flex;gap:8px}
.st-reac{display:flex;justify-content:space-between;align-items:center;gap:4px}
.st-reac button{flex:1;max-width:52px;height:46px;padding:0;border:0;border-radius:50%;background:none;font-size:1.75rem;line-height:1;cursor:pointer;transition:transform .15s}
.st-reac button:active{transform:scale(1.35)}
.st-reac button.on{filter:drop-shadow(0 0 6px rgba(255,255,255,.55))}
.st-reac .st-reac-plus{display:grid;place-items:center;color:#fff}
.st-reac .st-reac-plus svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.st-reac-n{display:flex;flex-wrap:wrap;gap:6px;min-width:0;pointer-events:none}
.st-reac-n span{display:inline-flex;align-items:center;gap:3px;height:28px;padding:0 9px;border-radius:999px;background:rgba(0,0,0,.45);font-size:1rem;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.st-reac-n b{font:700 .78rem var(--text);color:#fff}
.st-envol{position:absolute;z-index:6;bottom:150px;pointer-events:none;animation:st-envol 1.5s ease-out forwards}
@keyframes st-envol{0%{transform:translateY(0) scale(.5);opacity:0}15%{opacity:1;transform:translateY(-40px) scale(1.1)}100%{transform:translateY(-62vh) scale(1);opacity:0}}
.st-emoji{position:absolute;z-index:7;left:12px;right:12px;bottom:calc(14px + env(safe-area-inset-bottom,0px));padding:16px;border-radius:18px;background:#262626;text-align:center}
.st-emoji p{margin:0 0 10px;font:500 .92rem var(--text)}
.st-emoji input{width:100%;height:56px;border:1px solid #444;border-radius:14px;background:#111;color:#fff;font-size:2rem;text-align:center}
.st-emoji button{margin-top:8px;height:40px;padding:0 18px;border:0;background:none;color:#ccc;font:500 .9rem var(--text);cursor:pointer}
@media (prefers-reduced-motion:reduce){.st-envol{animation-duration:.01s}}
.st-bas{gap:8px;padding-top:70px;background:linear-gradient(transparent,rgba(0,0,0,.25) 30%,rgba(0,0,0,.65))}
.st-coms{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-height:0;max-width:86%;pointer-events:none}
.st-com{max-width:100%;padding:6px 12px 7px;border:0;border-radius:16px;background:rgba(0,0,0,.5);color:#fff;font:400 .88rem/1.3 var(--text);text-align:left;text-shadow:0 1px 3px rgba(0,0,0,.4);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);opacity:0;transform:translateY(14px);transition:opacity .4s,transform .4s;overflow-wrap:anywhere}
.st-com b{font-weight:700;margin-right:3px}
.st-com.on{opacity:1;transform:none}
.st-com.part{opacity:0;transform:translateY(-12px)}
.st-com.moi{background:rgba(0,149,246,.55)}
button.st-com{pointer-events:auto;cursor:pointer}
.st-info{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:28px}
.st-voir{flex:none;height:30px;padding:0 13px;border:1px solid rgba(255,255,255,.55);border-radius:999px;background:rgba(0,0,0,.3);color:#fff;font:600 .8rem var(--text);cursor:pointer}
.st-msg{display:flex;align-items:center;gap:6px;margin:0}
.st-msg-in{flex:1;min-width:0;height:46px;padding:0 18px;border:1.5px solid rgba(255,255,255,.75);border-radius:999px;background:transparent;color:#fff;font:400 .95rem var(--text);outline:none}
.st-msg-in::placeholder{color:rgba(255,255,255,.85)}
.st-msg-in:focus{background:rgba(0,0,0,.35)}
.st-msg-ok{flex:none;height:46px;padding:0 6px 0 4px;border:0;background:none;color:#fff;font:700 .95rem var(--text);cursor:pointer}
.st-msg-ok[hidden],.st-partager[hidden]{display:none}
.st-partager svg{width:27px;height:27px;fill:none;stroke:#fff;stroke-width:1.9}
.st-b-ajout svg{width:26px;height:26px;fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round}
.st-v.ecrit .st-reac,.st-v.ecrit .st-info{display:none}
.st-envol.st-doux{opacity:0;animation:st-flotte 2.6s ease-out forwards}
@keyframes st-flotte{0%{transform:translate(0,0) scale(.4);opacity:0}15%{opacity:.95;transform:translate(0,-30px) scale(1)}100%{transform:translate(var(--x,0),-55vh) scale(.9);opacity:0}}
@media (prefers-reduced-motion:reduce){.st-envol.st-doux{animation:none;display:none}}
.st-reac .st-reac-plus svg{width:30px;height:30px;stroke-width:1.7}
.st-picker{position:absolute;z-index:8;left:0;right:0;bottom:0;max-height:58%;display:flex;flex-direction:column;border-radius:20px 20px 0 0;background:#262626;color:#fff;animation:st-pk .22s ease-out}
.st-picker.part{transform:translateY(100%);transition:transform .2s}
@keyframes st-pk{from{transform:translateY(100%)}}
.st-pk-h{display:flex;align-items:center;justify-content:space-between;padding:12px 10px 6px 18px}
.st-pk-h b{font:600 .95rem var(--text)}
.st-pk-h button{display:grid;place-items:center;width:40px;height:40px;border:0;background:none;color:#fff;cursor:pointer}
.st-pk-h svg{width:22px;height:22px;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.st-pk-l{overflow-y:auto;padding:0 12px calc(16px + env(safe-area-inset-bottom,0px));-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
.st-pk-l p{margin:10px 6px 4px;font:600 .72rem var(--text);letter-spacing:.06em;text-transform:uppercase;color:#A8A8A8}
.st-pk-g{display:grid;grid-template-columns:repeat(8,1fr);gap:2px}
.st-pk-g button{aspect-ratio:1;border:0;border-radius:10px;background:none;font-size:1.7rem;line-height:1;cursor:pointer}
.st-pk-g button:active{background:rgba(255,255,255,.12);transform:scale(1.2)}
.st-pk-clavier{width:100%;height:46px;margin-top:12px;border:1px solid #444;border-radius:999px;background:none;color:#fff;font:500 .9rem var(--text);cursor:pointer}
.st-pk-in{position:absolute;opacity:0;width:1px;height:1px;left:50%;bottom:20px;border:0;font-size:16px}
.st-pk-in.on{position:static;opacity:1;width:100%;height:50px;margin-top:8px;border:1px solid #444;border-radius:14px;background:#111;color:#fff;font-size:1.8rem;text-align:center}
.st-v,.st-v *{-webkit-touch-callout:none}
.st-v img{pointer-events:none;-webkit-user-drag:none}
.st-v input{-webkit-touch-callout:default;-webkit-user-select:text;user-select:text}
.st-onglets{position:absolute;z-index:4;left:0;right:0;top:calc(66px + env(safe-area-inset-top,0px));display:flex;justify-content:center;gap:8px;pointer-events:none}
.st-onglets button{pointer-events:auto;height:30px;padding:0 13px;border:1px solid rgba(255,255,255,.45);border-radius:999px;background:rgba(0,0,0,.3);color:rgba(255,255,255,.85);font:600 .78rem var(--text);cursor:pointer;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.st-onglets button.on{background:#fff;color:#000;border-color:#fff}
.st-txt{top:calc(108px + env(safe-area-inset-top,0px))}
.st-son svg{width:25px;height:25px;fill:#fff;stroke:#fff;stroke-width:1.9;stroke-linecap:round}
.st-vid{background:transparent}
.st-tray-h{display:block}
.st-tray-h b,.st-tray-h small{display:block}
.st-tray-h small{margin-top:2px}
.st-profil{font-weight:700;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px;cursor:pointer;pointer-events:auto}
/* « Mon Pass », première bulle de la rangée du menu */
.st-tray-pass{text-decoration:none}
.st-pass-ring{position:relative;background:linear-gradient(135deg,#C0282D,#E8A15A)}
.st-moi-av{display:grid;place-items:center;background:#FBF8F2;color:#C2413A;font:400 1.9rem/1 "Marcellus",serif}
.st-moi-av img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}
.st-pass-av{background:#FDF5E3 url(../images/pass-premium.jpg) 16% 62%/260% auto no-repeat}

/* la bulle « Mon planning » du menu, à côté de « Mon Pass » */
.st-plan-ring{position:relative;background:linear-gradient(135deg,#7FB7C9,#14598A)}
.st-bt-ring{background:linear-gradient(135deg,#E8806A,#7E2A25)}
.st-valise-ring{background:linear-gradient(135deg,#F2C46D,#C2413A)}
.st-plan-av{display:grid;place-items:center;background:#FBF8F2;font-size:1.7rem}
.st-plan-n{position:absolute;right:-2px;top:-2px;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#C2413A;color:#fff;font:700 .74rem/22px var(--text,system-ui);font-style:normal;text-align:center;box-shadow:0 0 0 2px #F3EADC}

/* v512 : les bulles du sommaire — mêmes marges des deux côtés, icônes dessinées dans la DA, plus de fond blanc */
.st-tray-l{justify-content:space-around}
.st-pass-ring{background:linear-gradient(135deg,#C2413A,#E9B44C)}
.st-plan-ring{background:linear-gradient(135deg,#7E9A77,#3F4E3A)}
.st-valise-ring{background:linear-gradient(135deg,#E9B44C,#A9792C)}
.st-bt-ring{background:linear-gradient(135deg,#C2413A,#7E2A35)}
.st-tray-l .st-av{border-color:#F3EADC}
.st-plan-av,.st-moi-av{background:#F3EADC}
.st-plan-av svg{width:38px;height:38px;fill:none;stroke:#2B2118;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.st-plan-av svg .r{stroke:#C2413A}
.st-plan-av svg .c{fill:#C2413A;stroke:none}
.st-plan-av svg text{fill:#C2413A;stroke:none;font:400 11px "Marcellus",serif}

/* v528 : « ou la partager dans la story du jour », en second */
.st-f-2{display:block;margin:10px auto 0;border:0;background:none;color:inherit;opacity:.7;font:400 .88rem var(--text,inherit);text-decoration:underline;cursor:pointer}
/* v591 : les bulles du sommaire en petites illustrations sur tuile de papier beige (plus d'anneau façon Instagram) */
.st-ill{position:relative;display:grid;place-items:center;width:68px;height:68px;border-radius:22px;background:#FBF7F0;box-shadow:0 0 0 1px rgba(43,33,24,.07),0 10px 20px -14px rgba(43,33,24,.55)}
.st-ill svg{width:56px;height:56px;overflow:visible}
.st-ill .st-plan-n{position:absolute;top:-5px;right:-5px}
.st-tray-i>span:last-child{font:400 .78rem "Marcellus",serif;letter-spacing:.02em;color:#2B2118}
.st-tray-i:active .st-ill{transform:scale(.94)}
.st-tray-l .st-tray-i{width:96px}.st-tray-l .st-tray-i>span:last-child{max-width:100px;overflow:visible;font-size:.8rem}.st-ill svg{width:60px;height:60px}
