:root{--primary:#0b6e4f;--primary-dark:#08543c;--text:#1b1b1b;--muted:#6b6b6b;--border:#dcdcd6;--bg:#f5f5f2;--card:#fff;--danger:#c62828;--ok:#1b8a3a;--warn:#ef6c00;color:var(--text);background:var(--bg);font-family:system-ui,Segoe UI,Roboto,sans-serif;font-size:15px}*{box-sizing:border-box}body{margin:0}h1{margin:0 0 20px;font-size:24px}h2{margin:0 0 12px;font-size:18px}a{color:var(--primary)}.muted{color:var(--muted)}button,.btn{font:inherit;cursor:pointer;border:1px solid var(--primary);background:var(--primary);color:#fff;border-radius:8px;padding:9px 16px;font-weight:600}button:hover:not(:disabled){background:var(--primary-dark)}button:disabled{opacity:.5;cursor:default}button.ghost{color:var(--primary);background:0 0}button.ghost:hover:not(:disabled){background:#e8f2ee}button.danger{background:var(--danger);border-color:var(--danger)}button.small{padding:5px 10px;font-size:13px}input,select,textarea{font:inherit;border:1px solid var(--border);color:var(--text);background:#fff;border-radius:8px;width:100%;padding:9px 11px}textarea{min-height:140px;font-family:ui-monospace,Consolas,monospace;font-size:13px}label{color:var(--muted);margin-bottom:12px;font-size:13px;display:block}label>input,label>select,label>textarea{margin-top:4px}.check{color:var(--text);align-items:center;gap:8px;font-size:15px;display:flex}.check input{width:auto}.img-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;display:grid}.img-pick{border:1px solid var(--border);text-align:center;border-radius:10px;flex-direction:column;align-items:center;gap:6px;padding:10px;display:flex}.img-pick-label{color:var(--text);font-size:13px;font-weight:600}.img-pick img{object-fit:contain;background:#f3f4f2;border-radius:6px;width:110px;height:74px}.btn.ghost{border:1px solid var(--primary)}.layout{min-height:100vh;display:flex}.side{color:#fff;background:#10261e;flex-direction:column;flex-shrink:0;width:220px;padding:20px 12px;display:flex}.side .brand{padding:0 10px 18px;font-size:20px;font-weight:800}.side a{color:#cfe3da;border-radius:8px;margin-bottom:2px;padding:9px 12px;text-decoration:none;display:block}.side a:hover{background:#1c3a2f}.side a.active{background:var(--primary);color:#fff}.side .me{color:#cfe3da;margin-top:auto;padding:10px;font-size:13px}.main{flex:1;min-width:0;padding:24px 28px}.topbar{flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:20px;display:flex}.topbar select{width:auto;min-width:260px}.card{background:var(--card);border:1px solid var(--border);border-radius:12px;margin-bottom:18px;padding:18px}.row{flex-wrap:wrap;align-items:flex-end;gap:12px;display:flex}.row>*{flex:1;min-width:160px}.row>button,.row>.shrink{flex:none;min-width:0}.grid-kpi{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px;margin-bottom:18px;display:grid}.kpi{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:16px}.kpi .v{font-size:28px;font-weight:800}.kpi .l{color:var(--muted);font-size:13px}.two{grid-template-columns:1fr 1fr;gap:18px;display:grid}@media (width<=900px){.two{grid-template-columns:1fr}.side{width:170px}}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%}th,td{text-align:left;border-bottom:1px solid var(--border);white-space:nowrap;padding:9px 10px}th{text-transform:uppercase;color:var(--muted);font-size:12px;font-weight:600}tr.click{cursor:pointer}tr.click:hover td{background:#f0f5f2}.num{text-align:right;font-variant-numeric:tabular-nums}.pill{border-radius:20px;padding:2px 10px;font-size:12px;font-weight:700;display:inline-block}.pill-valid{color:var(--ok);background:#e3f4e8}.pill-used{color:#3949ab;background:#e8eaf6}.pill-cancelled{color:var(--danger);background:#fdecea}.res-VALIDE{color:var(--ok);font-weight:700}.res-DEJA_UTILISE,.res-INVALIDE,.res-ANNULE,.res-AUTRE_MATCH{color:var(--danger);font-weight:700}.bar{background:#e8ebe9;border-radius:6px;height:10px;overflow:hidden}.bar>div{background:var(--primary);height:100%}.pager{justify-content:flex-end;align-items:center;gap:12px;margin-top:12px;display:flex}.pager .muted{margin-right:auto}.error{color:var(--danger);background:#fdecea;border-radius:8px;margin-bottom:12px;padding:10px 14px}.success{color:var(--ok);background:#e3f4e8;border-radius:8px;margin-bottom:12px;padding:10px 14px}.modal-bg{z-index:10;background:#0006;justify-content:center;align-items:flex-start;padding:40px 16px;display:flex;position:fixed;inset:0;overflow-y:auto}.modal{background:#fff;border-radius:14px;width:100%;max-width:720px;padding:22px}.modal-head{justify-content:space-between;align-items:center;margin-bottom:14px;display:flex}.modal-head h2{margin:0}.detail{flex-wrap:wrap;gap:20px;margin-bottom:16px;display:flex}.detail dl{flex:1;grid-template-columns:auto 1fr;gap:6px 14px;min-width:240px;margin:0;display:grid}.detail dt{color:var(--muted)}.detail dd{margin:0;font-weight:600}.qr svg{width:100%;height:100%;display:block}.login{max-width:380px;margin:12vh auto}.login h1{color:var(--primary);text-align:center;margin-bottom:4px}.bc{color:#111;break-inside:avoid;-webkit-print-color-adjust:exact;print-color-adjust:exact;background:radial-gradient(120% 40% at 50% 68%,#ffffff8c,#0000 70%),linear-gradient(#fff 0%,#f1f6f0 30%,#dbeadb 55%,#7fbf7f 72%,#2f8f3a 84%,#1f6b2a 100%);flex-direction:column;align-items:center;width:105mm;height:148mm;font-family:Arial Black,Segoe UI Black,Segoe UI,Arial,sans-serif;display:flex;position:relative;overflow:hidden}.bc img{display:block}.bc-top{justify-content:space-between;align-items:flex-start;width:100%;padding:0 5mm;display:flex}.bc-logo{object-fit:contain;width:11mm;height:12mm;margin-top:2.5mm}.bc-comp{color:#fff;text-align:center;letter-spacing:.15mm;background:#d93a33;border-radius:0 0 5mm 5mm;flex:1;justify-content:center;align-items:center;min-height:12mm;margin:0 3mm;padding:2.5mm 3mm;font-size:3mm;line-height:1.25;display:flex}.bc-info{align-items:center;gap:3mm;margin-top:2.5mm;display:flex}.bc-orange{object-fit:contain;width:12mm;height:12mm}.bc-sep{background:#9aa89a;align-self:stretch;width:.3mm}.bc-date{border:.6mm solid #d93a33;border-radius:2.5mm;min-width:38mm;overflow:hidden}.bc-date1{color:#d93a33;background:#fff;padding:1mm 2.5mm;font-size:3mm}.bc-date2{color:#fff;background:#d93a33;padding:1.2mm 2.5mm;font-size:2.7mm}.bc-cat{color:#fff;text-align:center;letter-spacing:-.1mm;overflow-wrap:normal;-webkit-hyphens:none;hyphens:none;border-radius:6mm;justify-content:center;align-items:center;width:80mm;min-height:24mm;margin-top:3mm;padding:3mm 4mm;line-height:1.05;display:flex}.bc-holder{flex-direction:column;justify-content:center;align-items:center;min-height:5mm;margin-top:1mm;font-family:Segoe UI,Arial,sans-serif;font-size:3.4mm;line-height:1.2;display:flex}.bc-holder strong{font-size:4mm;font-weight:800}.bc-flags{gap:4mm;margin-top:1mm;display:flex}.bc-flag{background:#fff;border:1.2mm solid #fff;border-radius:50%;width:22mm;height:22mm;overflow:hidden;box-shadow:0 .5mm 1.5mm #00000040}.bc-flag img{object-fit:cover;width:100%;height:100%}.bc-teams{align-items:center;width:88mm;margin-top:-2mm;display:flex;position:relative}.bc-team{background:#fff;flex:1;align-items:center;gap:2mm;height:11mm;padding:0 2.5mm;font-family:Segoe UI,Arial,sans-serif;font-size:4.2mm;font-weight:800;display:flex}.bc-team img{object-fit:contain;width:8mm;height:9.5mm}.bc-home{border-radius:2mm 0 0 2mm;justify-content:flex-start}.bc-away{border-radius:0 2mm 2mm 0;justify-content:flex-end}.bc-vs{color:#fff;z-index:1;background:#d93a33;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:17mm;height:17mm;margin:0 -1mm;font-size:7mm;display:flex}.bc-bottom{justify-content:space-between;align-items:center;width:92mm;margin-top:auto;margin-bottom:2mm;display:flex}.bc-zone{color:#d93a33;white-space:nowrap;background:#fff;border-radius:3mm;padding:1.5mm 4mm;font-size:7.5mm}.bc-qr{text-align:center;background:#fff;border-radius:3mm;padding:1.5mm}.bc-qr .qr{width:21mm!important;height:21mm!important}.bc-num{font-family:ui-monospace,Consolas,monospace;font-size:2.3mm;font-weight:700}.bc-sponsors{background:#fff;border-radius:3mm 3mm 0 0;flex-shrink:0;justify-content:space-evenly;align-items:center;width:96mm;height:12mm;padding:0 3mm;display:flex}.bc-sponsors img{object-fit:contain;max-width:24mm;height:7.5mm}.bc-sponsors .bc-sep{align-self:center;height:7mm}.badge-sheet{grid-template-columns:repeat(2,105mm);justify-content:center;gap:4mm;display:grid}.badge-sheet.a4{gap:0}.badge-sheet.a4 .bc,.badge-sheet.a6 .bc{outline:.2mm dashed #999}@media print{.badge-sheet.a6{display:block}.badge-sheet.a6 .bc{break-after:page;outline:none}}.sheet{background:#fff;grid-template-columns:repeat(4,1fr);gap:0;display:grid}.sheet.badges{grid-template-columns:repeat(2,1fr)}.ticket{text-align:center;break-inside:avoid;border:1px dashed #999;padding:10px}.ticket .qr{margin:6px auto}.ticket .t-match{color:#444;font-size:11px}.ticket .t-cat{font-size:15px;font-weight:800}.ticket .t-num{font-family:ui-monospace,Consolas,monospace;font-weight:700}.badge-card{text-align:center;break-inside:avoid;border:1px dashed #999;min-height:380px;padding:16px}.badge-card .b-cat{background:var(--primary);color:#fff;text-transform:uppercase;margin:-16px -16px 12px;padding:8px;font-size:20px;font-weight:800}.badge-card .b-name{font-size:22px;font-weight:800}@media print{.side,.no-print{display:none!important}.main{padding:0}body,:root{background:#fff}@page{margin:8mm}}.tc{break-inside:avoid;color:#111;-webkit-print-color-adjust:exact;print-color-adjust:exact;background:#fff;width:200mm;height:78mm;font-family:Arial Black,Segoe UI Black,Segoe UI,Arial,sans-serif;display:flex;position:relative;overflow:hidden}.tc img{display:block}.tc-stub{border-right:.45mm dashed #333;flex-shrink:0;width:33.5mm;position:relative}.tc-stub-text{writing-mode:vertical-rl;text-align:left;height:56mm;font-family:Segoe UI,Arial,sans-serif;font-size:2.6mm;font-weight:800;line-height:1.35;position:absolute;top:4mm;left:3mm;transform:rotate(180deg)}.tc-stub-match{margin-right:2mm}.tc-stub-num{font-family:Segoe UI,Arial,sans-serif;font-size:2.6mm;font-weight:700;position:absolute;bottom:4mm;left:2mm;right:1.5mm}.tc-stub-num strong{font-size:3.1mm;font-weight:900;display:block}.tc-main{background:radial-gradient(45% 55% at 18% 105%,#3e8e3e73,#0000 70%),radial-gradient(60% 40% at 40% 0,#a0b4c859,#0000 70%),linear-gradient(#eef2f4 0%,#fff 45%,#fbfdfb 100%);flex:1;position:relative}.tc-main>*{position:absolute}.tc-tab{border-radius:0 6mm 0 0;justify-content:center;align-items:center;width:21mm;display:flex;top:3mm;bottom:0;left:0}.tc-tab span{writing-mode:vertical-rl;white-space:nowrap;letter-spacing:.2mm;font-size:9.5mm;transform:rotate(180deg)}.tc-femafoot{object-fit:contain;width:16mm;height:20mm;top:3mm;left:26mm}.tc-head{color:#fff;text-align:center;background:#d93a33;border-radius:0 0 5mm 5mm;justify-content:center;align-items:center;width:86mm;height:14.7mm;padding:0 4mm;font-size:3.6mm;line-height:1.3;display:flex;top:0;left:50mm}.tc-caf{object-fit:contain;width:20mm;height:17mm;top:2.5mm;right:5mm}.tc-flags{filter:drop-shadow(0 .6mm .8mm #00000040);width:27mm;height:17mm;top:27mm;left:23mm}.tc-qr{background:#fff;border-radius:2.5mm;padding:1.3mm;top:18mm;left:51.5mm;box-shadow:0 .4mm 1.2mm #0003}.tc-qr .qr{width:23mm!important;height:23mm!important}.tc-teams{align-items:center;width:60mm;height:9mm;display:flex;top:62mm;left:23mm}.tc-zoned .tc-teams{width:56mm;height:7mm;top:50mm}.tc-team{background:#fff;border-radius:1.5mm;flex:1;justify-content:space-between;align-items:center;gap:1mm;min-width:0;height:100%;padding:0 1.5mm;font-family:Segoe UI,Arial,sans-serif;font-size:2.8mm;font-weight:800;display:flex;box-shadow:0 .3mm .8mm #00000026}.tc-team span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.tc-team img{object-fit:contain;flex-shrink:0;width:5mm;height:6.5mm}.tc-zoned .tc-team img{width:5mm;height:5.5mm}.tc-vs{color:#fff;background:#d93a33;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:8mm;height:8mm;margin:0 1mm;font-size:3.2mm;display:flex}.tc-zone{letter-spacing:.2mm;border-radius:3mm;justify-content:center;align-items:center;gap:2.5mm;width:56mm;height:12mm;font-size:7mm;display:flex;top:62.5mm;left:23mm;box-shadow:0 .4mm 1mm #0003}.tc-num{white-space:nowrap;font-family:Segoe UI,Arial,sans-serif;font-size:5.6mm;font-weight:900;top:25mm;left:80mm}.tc-num span{font-family:ui-monospace,Consolas,monospace;font-weight:800}.tc-info{color:#fff;text-align:center;background:#3e8e3e;border-radius:3mm;align-items:center;width:75mm;height:23mm;font-size:3.1mm;line-height:1.25;display:flex;top:35mm;left:80mm}.tc-info-col{flex-direction:column;flex:1;justify-content:center;align-items:center;display:flex}.tc-info-sep{background:#ffffffb3;width:.35mm;height:15mm}.tc-icon{width:5mm;height:5mm;margin-bottom:1mm}.tc-yellow{color:#fcd83a}.tc-orange{object-fit:contain;width:11mm;height:11mm;top:62mm;left:90mm}.tc-sponsors{justify-content:space-between;align-items:center;gap:1.5mm;width:50mm;height:9mm;display:flex;top:63mm;left:108mm}.tc-sponsors img{object-fit:contain;max-width:14mm;height:6.5mm}.tc-sep{background:#bbb;width:.3mm;height:7mm}.ticket-sheet{flex-direction:column;align-items:center;gap:4mm;display:flex}.ticket-sheet .tc{outline:.2mm dashed #999}@media print{.ticket-sheet{gap:6mm;padding-top:8mm}.ticket-sheet .tc:nth-child(3n){break-after:page}}
