/* Mon ticket · charte Ninety (vert club, corail, crème). */
.nt-bar{position:fixed;z-index:45;right:24px;bottom:calc(20px + env(safe-area-inset-bottom));width:min(360px,calc(100vw - 48px))}
.nt-bar[hidden]{display:none}
.nt-bar-btn{width:100%;display:flex;align-items:center;gap:12px;padding:10px 14px 10px 10px;border:0;border-radius:14px;background:var(--deep,#032d25);color:var(--cream,#f3ecdf);box-shadow:0 10px 28px #001e1838;text-align:left;position:relative;font:inherit}
/* Bord perforé : rappel du ticket papier. */
.nt-bar-btn:before{content:'';position:absolute;left:58px;top:8px;bottom:8px;border-left:2px dashed #ffffff26}
.nt-bar-count{flex:none;width:38px;height:38px;border-radius:10px;display:grid;place-items:center;background:var(--coral,#f15a24);color:#fff;font:800 22px/1 var(--display,'Barlow Condensed',sans-serif)}
.nt-bar-copy{flex:1;min-width:0;padding-left:12px;display:grid;gap:2px}
.nt-bar-copy b{font:800 19px/1 var(--display,'Barlow Condensed',sans-serif);text-transform:uppercase;letter-spacing:.01em}
.nt-bar-copy small{font-size:12px;color:#c4d6cf;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nt-bar-btn i{font-style:normal;font-size:12px;font-weight:700;color:var(--coral,#f15a24);text-transform:uppercase;letter-spacing:.08em}
.nt-bar-btn:focus-visible{outline:3px solid var(--coral,#f15a24);outline-offset:3px}
@media (max-width:820px){
  .nt-bar{left:10px;right:10px;width:auto;bottom:calc(var(--member-nav-offset,max(10px,env(safe-area-inset-bottom))) + 64px + 8px)}
  body.nt-has-bar .view{padding-bottom:calc(var(--member-nav-reserve,110px) + 70px)}
}
.public-mode .nt-bar{bottom:calc(16px + env(safe-area-inset-bottom))}

/* Choix rapides */
.nt-choice{flex:1;min-width:0;padding:7px;background:#fffdf5;color:#0b362a;border:1px solid #d7c7b5;border-radius:9px;display:grid;align-content:center;justify-items:center;gap:3px;min-height:50px;font:550 13px/1.15 var(--sans);text-align:center;transition:background .15s,border-color .15s,transform .15s}
.nt-choice span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nt-choice strong{color:#a43c15;font-size:15px}
.nt-choice:active{transform:scale(.97)}
.nt-choice.nt-on,.nt-choice[aria-pressed=true]{background:var(--green,#073f32);border-color:var(--green,#073f32);color:var(--cream,#f3ecdf)}
.nt-choice.nt-on strong,.nt-choice[aria-pressed=true] strong{color:var(--coral,#f15a24)}
.nt-choice:focus-visible{outline:3px solid #db6229;outline-offset:2px}
.nt-quick{display:flex;gap:7px;margin:8px 0}
.np-tile .nt-quick{padding:0 8px}
.nt-options{flex-wrap:wrap}
.nt-more{margin-top:18px;display:grid;gap:10px}
.nt-more-title{font:800 22px/1 var(--display);text-transform:uppercase}
.nt-more legend small{color:#a43c15;font-weight:700;margin-left:6px}
.nt-closed,.nt-source,.nt-live{font-size:13px;line-height:1.5;color:#5d736b}
.nt-source{padding:10px 12px;border-left:3px solid var(--coral,#f15a24);background:#fff8ee;border-radius:0 8px 8px 0}
.nt-live{font-weight:700;color:var(--green,#073f32)}
.nt-receipt-lines{display:grid;gap:8px}

/* Feuille du ticket */
.nt-sheet,.nt-done{border:0;padding:0;background:var(--cream,#f3ecdf);color:var(--deep,#032d25);border-radius:20px;width:min(520px,calc(100vw - 20px));max-height:min(86dvh,760px);box-shadow:0 24px 70px #001e1860}
.nt-sheet[open]{display:flex;flex-direction:column}
.nt-sheet::backdrop,.nt-done::backdrop{background:#021e19a8}
@media (max-width:820px){
  .nt-sheet{margin:auto 0 0;width:100vw;max-width:100vw;border-radius:20px 20px 0 0;padding-bottom:env(safe-area-inset-bottom)}
}
.nt-sheet-head{display:flex;justify-content:space-between;align-items:center;padding:18px 20px 12px;border-bottom:2px dashed #0a403324}
.nt-sheet-head h2{font:900 30px/1 var(--display);text-transform:uppercase}
.nt-x{width:40px;height:40px;border-radius:50%;border:1px solid #0a40332c;background:transparent;display:grid;place-items:center}
.nt-x svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.nt-sheet-body{overflow:auto;padding:8px 20px;flex:1}
.nt-match{padding:12px 0;border-bottom:1px solid #0a403318}
.nt-match h3{font-size:14px;font-weight:700;display:flex;justify-content:space-between;gap:10px}
.nt-match h3 small{font-weight:500;color:#71867f;font-size:11px}
.nt-match ul{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:8px}
.nt-line{display:grid;grid-template-columns:1fr auto;gap:6px 10px;padding:10px 12px;background:#fffdf7;border:1px solid #0a403318;border-radius:12px}
.nt-line small{display:block;font-size:11px;color:#71867f;text-transform:uppercase;letter-spacing:.06em}
.nt-line strong{font-size:15px}
.nt-pts{font:800 22px/1 var(--display);color:#a43c15;align-self:center}
.nt-pts em{font:600 11px var(--sans);font-style:normal}
.nt-line-actions{grid-column:1/-1;display:flex;gap:16px;font-size:12px}
.nt-line-actions a,.nt-line-actions button{border:0;background:none;padding:6px 0;text-decoration:underline;color:var(--green,#073f32);font-weight:600}
.nt-line-actions [aria-disabled=true],.nt-line-actions button:disabled{opacity:.4;pointer-events:none}
.nt-invalid{border-color:#c8341a;background:#fff0ea}
.nt-why{font-size:12px;color:#a3260f;margin-top:4px;font-weight:600}
.nt-uncertain{margin:10px 0;padding:12px;border-radius:12px;background:#073f32;color:var(--cream,#f3ecdf);font-size:13px;line-height:1.5}
.nt-uncertain b{color:var(--coral,#f15a24)}
.nt-empty{padding:26px 0;display:grid;gap:8px;text-align:center}
.nt-empty a{text-decoration:underline;font-weight:700}
.nt-sheet-foot{padding:14px 20px 18px;border-top:2px dashed #0a403324;display:grid;gap:8px;background:#efe6d6;border-radius:0 0 20px 20px}
.nt-total{display:flex;justify-content:space-between;align-items:baseline}
.nt-total span{font-size:12px;text-transform:uppercase;letter-spacing:.1em}
.nt-total b{font:900 36px/1 var(--display);color:var(--green,#073f32)}
.nt-total em{font:600 13px var(--sans);font-style:normal}
.nt-sheet-foot small{font-size:12px;color:#5d736b}
.nt-link{border:0;background:none;text-decoration:underline;color:#a3260f;font-weight:700;justify-self:start;padding:4px 0}
.nt-validate{display:flex;justify-content:center;align-items:center;min-height:52px;border:0;border-radius:12px;background:var(--coral,#f15a24);color:#fff;font-weight:700;font-size:15px;width:100%}
.nt-validate:disabled{opacity:.6}
.nt-validate:focus-visible,.nt-quiet:focus-visible{outline:3px solid var(--green,#073f32);outline-offset:3px}

/* Confirmation : une seule animation, après enregistrement */
.nt-done{padding:30px 22px 22px;text-align:center}
.nt-done[open]{display:grid;gap:12px;justify-items:center}
.nt-done h2{font:900 44px/.9 var(--display);text-transform:uppercase}
.nt-done p{font-size:14px;color:#46605a}
.nt-stamp svg{width:84px;height:84px;fill:none;stroke-linecap:round;stroke-linejoin:round}
.nt-stamp circle{stroke:var(--coral,#f15a24);stroke-width:4}
.nt-stamp path{stroke:var(--green,#073f32);stroke-width:6;stroke-dasharray:48;stroke-dashoffset:0}
.nt-play .nt-stamp{animation:nt-stamp .55s cubic-bezier(.2,1.4,.4,1) both}
.nt-play .nt-stamp path{animation:nt-tick .45s .3s ease-out both}
.nt-play h2{animation:nt-rise .4s .2s ease-out both}
@keyframes nt-stamp{from{transform:scale(1.8) rotate(-12deg);opacity:0}to{transform:none;opacity:1}}
@keyframes nt-tick{from{stroke-dashoffset:48}to{stroke-dashoffset:0}}
@keyframes nt-rise{from{transform:translateY(10px);opacity:0}to{transform:none;opacity:1}}
.nt-done-actions{display:grid;gap:8px;width:100%;margin-top:6px}
.nt-quiet{min-height:48px;border:1px solid #0a40333a;background:transparent;border-radius:12px;font-weight:700;color:var(--green,#073f32)}
.nt-choose{display:grid;gap:8px;width:100%;text-align:left}
.nt-choose a{display:grid;padding:12px 14px;border-radius:12px;background:#fffdf7;border:1px solid #0a403320}
.nt-choose a small{color:#71867f;font-size:12px}

/* Historique groupé */
.nt-history{list-style:none;background:#fffdf7;border:1px solid #0a403318;border-radius:14px;padding:12px;margin-bottom:10px}
.nt-history header{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-bottom:8px;border-bottom:2px dashed #0a403320}
.nt-history header span{display:grid}
.nt-history header small{font-size:11px;color:#71867f}
.nt-history header strong{font:800 20px/1 var(--display);color:#a43c15}
.nt-history ul{list-style:none;padding:0;margin:6px 0 0;display:grid}
.nt-history li a{display:flex;justify-content:space-between;gap:10px;padding:8px 0;font-size:13px}
.nt-history li a>span:first-child{display:grid}
.nt-history li small{color:#71867f}
.nt-history li[data-verdict=replaced]{opacity:.55}
.nt-history li[data-verdict=replaced] b{text-decoration:line-through}
@media (prefers-reduced-motion:reduce){.nt-play .nt-stamp,.nt-play .nt-stamp path,.nt-play h2{animation:none}.nt-choice{transition:none}}
