/* Page publique des bons d'achat : fond rouge sombre Sudoptic, cartes claires, textes très lisibles. */
:root{color-scheme:dark}
*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;background:radial-gradient(900px 600px at 70% 0%,rgba(225,9,20,.45),transparent 70%),linear-gradient(160deg,#5C0308 0%,#2A0204 60%,#151514 100%);background-attachment:fixed;color:#fff;min-height:100vh}
.ba{max-width:1080px;margin:0 auto;padding:18px 16px 60px}
.ba-top{display:flex;justify-content:space-between;align-items:center;gap:12px}
.ba-days{background:#fff;color:#A30810;font-weight:800;padding:8px 14px;border-radius:999px;font-size:14px;animation:ba-pulse 2.4s ease-in-out infinite}
.ba-hero{padding:26px 0 10px;animation:ba-in .5s ease both}
.ba-kicker{display:inline-block;margin:0 0 10px;padding:6px 12px;border-radius:999px;background:rgba(255,255,255,.14);color:#FFE3E5;font-weight:800;font-size:13px;letter-spacing:.04em;text-transform:uppercase}
.ba-hero h1{margin:0 0 12px;font-size:clamp(30px,6vw,52px);line-height:1.05;color:#fff}
.ba-hero h1 em{font-style:normal;color:#FFE3E5}
.ba-hero p{max-width:640px;font-size:17px;line-height:1.5;color:rgba(255,255,255,.92)}
.ba-closed{margin:18px 0;padding:16px;border-radius:14px;background:#fff;color:#7A0A10;font-weight:700}
.ba-closed a{color:#C8101A}
.ba-choose{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:16px;margin:20px 0}
.ba-tier{display:flex;flex-direction:column;padding:0;border:3px solid transparent;border-radius:18px;overflow:hidden;background:#fff;cursor:pointer;text-align:left;box-shadow:0 14px 34px rgba(0,0,0,.35);transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;animation:ba-in .5s ease both}
.ba-tier:nth-child(2){animation-delay:.07s}.ba-tier:nth-child(3){animation-delay:.14s}.ba-tier:nth-child(4){animation-delay:.21s}
.ba-tier:hover{transform:translateY(-4px)}
.ba-tier[aria-pressed=true]{border-color:#FFD400;box-shadow:0 0 0 4px rgba(255,212,0,.35),0 18px 40px rgba(0,0,0,.45)}
.ba-tier img{width:100%;height:auto;display:block}
.ba-tier span{padding:12px 14px;color:#2B2B2A;font-size:15px}
.ba-tier strong{color:#C8101A}
.ba-tier:focus-visible{outline:3px solid #FFD400;outline-offset:3px}
.ba-card{margin:10px auto 24px;max-width:560px;padding:22px;border-radius:20px;background:#fff;color:#2B2B2A;box-shadow:0 24px 60px rgba(0,0,0,.45);display:flex;flex-direction:column;gap:8px;animation:ba-in .4s ease both}
.ba-card h2{margin:0 0 6px;font-size:22px;color:#2B2B2A}.ba-card h2 span{color:#C8101A}
.ba-card label{font-weight:700;font-size:14px;color:#2B2B2A}
.ba-card input:not([type=checkbox]),.ba-card select,.ba-find input{width:100%;min-height:48px;padding:10px 14px;border-radius:12px;border:1.5px solid #CFC6C1;font-size:16px;background:#fff;color:#2B2B2A}
.ba-card input:focus,.ba-card select:focus,.ba-find input:focus{outline:none;border-color:#C8101A;box-shadow:0 0 0 4px rgba(200,16,26,.18)}
.ba-check{display:flex;gap:10px;align-items:flex-start;font-weight:500!important;line-height:1.4;margin-top:4px}
.ba-check input{width:20px;height:20px;flex:0 0 auto;accent-color:#C8101A;margin-top:1px}
.ba-btn{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:12px 22px;border-radius:999px;border:0;background:#C8101A;color:#fff;font-weight:800;font-size:16px;cursor:pointer;text-decoration:none;box-shadow:0 10px 24px rgba(0,0,0,.3);transition:transform .15s ease,background .15s ease}
.ba-btn:hover{background:#A30810}.ba-btn:active{transform:scale(.97)}.ba-btn:disabled{opacity:.6;cursor:wait}
.ba-btn-light{background:#fff;color:#A30810}.ba-btn-light:hover{background:#FFE3E5}
.ba-error{color:#B00A12;font-weight:700;min-height:1em;margin:4px 0 0}
.ba-find .ba-error{color:#FFE3E5}
.ba-result{margin:16px 0 24px;animation:ba-in .45s ease both}
.ba-note{font-size:18px;font-weight:800;color:#fff}
.ba-voucher{border-radius:20px;overflow:hidden;background:#fff;color:#2B2B2A;box-shadow:0 24px 60px rgba(0,0,0,.45);max-width:720px}
.ba-voucher img{width:100%;height:auto;display:block}
.ba-voucher-body{padding:16px 20px}.ba-voucher-body p{margin:6px 0;line-height:1.45}
.ba-number{font-size:26px;letter-spacing:.06em;color:#C8101A}
.ba-state{display:inline-block;padding:4px 12px;border-radius:999px;font-weight:800;font-size:13px;background:#E5F6EC;color:#0E5A2E}
.ba-state.ba-Utilisé,.ba-state.ba-Expiré,.ba-state.ba-Annulé{background:#F3EEEB;color:#5E5E5A}
.ba-next{color:rgba(255,255,255,.92);font-weight:600}
.ba-find{margin:10px 0 26px;padding:14px 18px;border-radius:16px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.2)}
.ba-find summary{cursor:pointer;font-weight:800;color:#fff}
.ba-find form{display:flex;flex-direction:column;gap:8px;margin-top:12px;max-width:420px}
.ba-find label{font-weight:700;font-size:14px;color:#fff}
.ba-terms{padding:16px 20px;border-radius:16px;background:rgba(0,0,0,.25)}
.ba-terms h2{margin:0 0 8px;font-size:18px;color:#fff}.ba-terms li{margin:6px 0;color:rgba(255,255,255,.92);line-height:1.45}
.ba-foot{margin-top:30px;text-align:center;color:rgba(255,255,255,.8);font-size:14px}
@keyframes ba-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes ba-pulse{0%,100%{box-shadow:0 0 0 0 rgba(255,255,255,.5)}50%{box-shadow:0 0 0 10px rgba(255,255,255,0)}}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
