*{box-sizing:border-box}body{margin:0;background:#0e0e0f;color:#f7f7f7;font-family:Arial,sans-serif}header{max-width:980px;margin:auto;padding:22px 18px;display:flex;align-items:center;gap:18px;border-bottom:3px solid #e83d2e}header img{width:110px;height:110px;object-fit:cover;border-radius:18px}h1{margin:0;font-size:30px}header p,.muted{color:#aaa}main{max-width:980px;margin:auto;padding:20px 18px 60px}section{background:#171719;border:1px solid #29292d;border-radius:18px;padding:20px;margin:18px 0}h2{margin-top:0}.games{display:grid;gap:14px}.day{background:#202023;border-radius:14px;padding:16px}.dayhead{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:12px}.date{font-weight:800;font-size:18px}.offer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-top:1px solid #343438}.offer strong{display:block}.offer small{color:#aaa}.qty{display:flex;align-items:center;gap:10px}.qty button{width:38px;height:38px;border:0;border-radius:10px;font-size:22px;cursor:pointer}.qty span{min-width:22px;text-align:center;font-weight:bold}.cartline{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid #303034}.total{display:flex;justify-content:space-between;font-size:22px;font-weight:900;padding-top:15px;color:#ffd84a}.grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}label{font-weight:700}input[type=text],input[type=email],input[type=tel],label input:not([type=radio]){width:100%;margin-top:6px;background:#0f0f10;border:1px solid #3b3b40;color:white;border-radius:10px;padding:13px;font-size:16px}.pay{display:flex;gap:20px;margin:14px 0 20px}.primary{width:100%;border:0;border-radius:12px;padding:16px;background:#e83d2e;color:white;font-weight:900;font-size:17px;cursor:pointer}.confirmation{margin-top:18px;background:#102317;border:1px solid #2c7040;padding:18px;border-radius:12px}.hidden{display:none}@media(max-width:650px){header img{width:82px;height:82px}h1{font-size:24px}.grid{grid-template-columns:1fr}.offer{align-items:flex-end}.dayhead{align-items:flex-start;flex-direction:column}.pay{flex-direction:column}}
.adminlink{text-align:center;margin-top:25px}.adminlink a{color:#888;font-size:13px}.bank{background:#0d0d0e;border:1px dashed #666;border-radius:10px;padding:14px;margin:12px 0}.admin-actions{display:flex;gap:8px;flex-wrap:wrap}.secondary,.danger,.ok{border:0;border-radius:9px;padding:10px 13px;font-weight:800;cursor:pointer}.ok{background:#2f8f4e;color:#fff}.danger{background:#8b2d2d;color:#fff}.secondary{background:#ddd;color:#111}.ordercard{background:#202023;border-radius:12px;padding:15px;margin:12px 0}.badge{font-weight:900}.admininput{width:100%;background:#0f0f10;color:#fff;border:1px solid #3b3b40;border-radius:9px;padding:12px;margin:6px 0 12px}textarea.admininput{min-height:90px}.date-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px;border-bottom:1px solid #333}
.notice{padding:18px;border:1px solid #ddd;border-radius:14px;text-align:center;line-height:1.6}

/* V10 - téléchargement sécurisé des fiches */
.attrib-row{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin:8px 0;padding:8px 0;border-top:1px solid #343438}.attrib-row .ok{width:auto;min-width:210px}

/* V12 - catégories */
.game-category{margin-bottom:26px}.game-category>h2{margin-bottom:4px}.category-info{margin-top:0;margin-bottom:14px;font-weight:700}.required-note{font-weight:700}.game-category .muted{padding:12px 0}
/* V13 - catégories visuelles */
.game-category{border-width:2px}.game-category h2{margin-bottom:5px}.category-info{margin-top:0;font-weight:700}.cat-4days{border-color:#79c84a;background:linear-gradient(180deg,#182218,#171719)}.cat-4days h2,.cat-4days .category-info{color:#a8e66f}.cat-tiktok{border-color:#45aee8;background:linear-gradient(180deg,#15202a,#171719)}.cat-tiktok h2,.cat-tiktok .category-info{color:#79cfff}.cat-special{border-color:#e5b73b;background:linear-gradient(180deg,#292313,#171719)}.cat-special h2,.cat-special .category-info{color:#ffd85a}.required-note{font-weight:700;color:#ddd}.find-files{border-color:#57575f}.find-files .primary{margin-top:16px}.find-result{margin-top:15px}.found-file{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-top:1px solid #343438}.download-link{background:#2f8f4e;color:#fff;text-decoration:none;font-weight:800;padding:10px 13px;border-radius:9px}

.auto-badge{font-size:.8rem;font-weight:800;padding:8px 10px;border-radius:999px;background:#253326;color:#a8e66f;white-space:nowrap}
.fb-warning{padding:12px;border-radius:10px;background:#261f10;border:1px solid #806824;line-height:1.5}.payment-info{margin:18px 0}.payment-card,.other-bank{background:#0d0d0e;border:1px solid #3b3b40;border-radius:12px;padding:14px;margin:10px 0;line-height:1.65;overflow-wrap:anywhere}.other-bank{border-color:#6d5a24}.warning-box{margin:20px 0;background:#2a1715;border:2px solid #a8493e;border-radius:14px;padding:16px;line-height:1.55}.warning-box h3{margin-top:0}.accept{display:flex;align-items:flex-start;gap:10px;background:#151516;padding:13px;border-radius:10px}.accept input{margin-top:3px;transform:scale(1.25)}

/* V17.5 - journées de pause T4 */
.pause-day{opacity:.92}.pause-day .dayhead span{font-weight:900}.pause-message{padding:18px;text-align:center;border-top:1px solid rgba(255,255,255,.12)}.pause-message strong{display:block;font-size:1.05rem}.pause-message small{display:block;margin-top:6px;opacity:.8}

/* V17.9 - aperçu des feuilles */
.day-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.preview-btn{border:1px solid #666;background:#111;color:#fff;border-radius:9px;padding:8px 10px;font-weight:800;cursor:pointer}.preview-btn:hover{background:#29292d}.preview-modal{position:fixed;inset:0;background:rgba(0,0,0,.82);z-index:9999;display:flex;align-items:center;justify-content:center;padding:14px}.preview-modal.hidden{display:none}.preview-card{width:min(920px,100%);height:min(92vh,900px);background:#171719;border:1px solid #555;border-radius:16px;padding:14px;display:flex;flex-direction:column}.preview-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.preview-head h3{margin:0}.preview-head button{border:0;background:#333;color:#fff;border-radius:9px;width:40px;height:40px;font-size:28px;cursor:pointer}.preview-card #previewBody{flex:1;min-height:0;margin-top:12px}.preview-frame-wrap{position:relative;height:calc(100% - 55px);min-height:420px;overflow:hidden;border-radius:10px;background:#fff}.preview-frame{width:100%;height:100%;border:0}.preview-watermark{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none;font-size:clamp(54px,12vw,130px);font-weight:900;color:rgba(180,0,0,.23);transform:rotate(-28deg);letter-spacing:.08em}.preview-note{text-align:center;font-size:13px;color:#bbb;margin:10px 0 0}.preview-unavailable{text-align:center;padding:35px 15px;font-weight:800}.modal-open{overflow:hidden}@media(max-width:650px){.day-tools{width:100%;justify-content:space-between}.preview-btn span{display:none}.preview-btn{font-size:20px;padding:6px 10px}.preview-card{height:94vh}.preview-frame-wrap{min-height:360px}}
