.tg-wrap{--tg-ink:#26384c;--tg-muted:#586576;--tg-accent:#98451f;--tg-line:#dedfdc;--tg-panel:#ffffff;--tg-soft:#f5f6f3;max-width:1180px;margin:0 auto;padding:32px 24px 64px;color:var(--tg-ink)}.tg-wrap *{box-sizing:border-box}.tg-hero{max-width:780px;margin:0 auto 30px;text-align:center}.tg-hero h1{margin:10px 0 14px;font-size:clamp(1.9rem, 4vw, 2.8rem);line-height:1.12;color:var(--tg-ink)}.tg-hero p{color:var(--tg-muted);line-height:1.65;margin:0}.tg-hero .tg-kicker,.tg-kicker{color:var(--tg-accent);font-size:.75rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase}.tg-block{background:var(--tg-panel);border:1px solid var(--tg-line);border-radius:20px;padding:24px;margin-bottom:24px}.tg-block h2{color:var(--tg-ink);font-size:1.2rem;margin:0 0 18px}.tg-preparation{display:grid;grid-template-columns:minmax(230px,0.8fr) minmax(0,1.5fr);gap:0 28px}.tg-preparation h2{grid-column:1}.tg-row{grid-column:1;display:flex;flex-direction:column;align-items:stretch;gap:14px}.tg-field label{display:block;margin-bottom:6px;color:var(--tg-muted);font-weight:700;font-size:.85rem}.tg-field select{width:100%;min-height:44px;border:1px solid #acb5be;border-radius:10px;padding:10px;font:inherit;color:var(--tg-ink);background:var(--tg-panel)}.tg-label-option{display:flex;gap:10px;align-items:center;min-height:44px;font-size:.9rem;color:var(--tg-ink)}.tg-label-option input{width:20px;height:20px;flex:0 0 auto;margin:0;accent-color:var(--tg-accent)}.tg-btn{border:1px solid transparent;border-radius:11px;padding:11px 16px;min-height:44px;font:inherit;font-size:.92rem;font-weight:750;color:#fff;background:var(--tg-accent);cursor:pointer}.tg-btn.secondary{background:#f9ede4;color:#783711;border-color:#ebd4c3}.tg-btn.ghost{background:var(--tg-soft);color:var(--tg-ink);border-color:var(--tg-line)}.tg-btn:disabled{opacity:.45;cursor:not-allowed}.tg-wrap button:not(:disabled):hover{filter:brightness(.96)}.tg-wrap :is(button,select,input):focus-visible{outline:3px solid #2563eb;outline-offset:4px}.tg-preview-pieces{grid-column:2;grid-row:1/3;display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:center;align-content:center;padding:20px;border:1px solid #dedfdc;border-radius:14px;background-color:#fcfcfa;background-image:radial-gradient(#d7dedf .7px,transparent .7px);background-size:16px 16px}.tg-piece-sheet{max-width:100%}.tg-piece-sheet svg{display:block;max-width:100%;height:auto}.tg-note{color:var(--tg-muted);font-size:.85rem;line-height:1.55;margin:0 0 18px}.tg-preparation .tg-note{grid-column:1/-1;margin:16px 0 0}.tg-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}.tg-chip{min-height:44px;border:1px solid var(--tg-line);border-radius:999px;padding:8px 15px;background:var(--tg-panel);color:var(--tg-muted);font:inherit;font-size:.88rem;font-weight:700;cursor:pointer}.tg-chip.active{border-color:var(--tg-accent);background:#f9ede4;color:#783711}.tg-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.tg-card{position:relative;display:flex;flex-direction:column;align-items:center;border:2px solid var(--tg-line);border-radius:13px;padding:12px;min-width:0;background:var(--tg-panel);color:var(--tg-ink);font:inherit;cursor:pointer}.tg-card.selected{border-color:var(--tg-accent);background:var(--tg-soft)}.tg-card .tg-sil{width:100%;height:120px;display:flex;align-items:center;justify-content:center;border-radius:8px;background:#fff}.tg-card .tg-sil svg{max-width:100%;height:110px}.tg-name{display:block;margin-top:8px;font-weight:750;font-size:.9rem}.tg-stars{display:block;margin-top:4px;color:var(--tg-accent);font-size:.85rem;letter-spacing:2px}.tg-card .tg-check{position:absolute;top:8px;right:8px;width:22px;height:22px;border:1px solid #8493a3;border-radius:6px;background:#fff;color:#fff;font-size:.9rem;font-weight:800;display:grid;place-items:center}.tg-card.selected .tg-check{border-color:var(--tg-accent);background:var(--tg-accent)}.tg-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.tg-count{align-self:center;margin-left:auto;color:var(--tg-muted);font-size:.9rem}.tg-display{padding:24px;background:#eaf1f7;border:1px solid #d2dde7;border-radius:20px;text-align:center}.tg-display h2{margin:6px 0;color:var(--tg-ink);font-size:1.6rem}.tg-display .tg-kicker{margin:0}#tg-display-count{color:var(--tg-muted);margin:0 0 16px;font-size:.9rem}.tg-display-figure{display:grid;place-items:center;height:350px;padding:15px;border:1px solid #d2dde7;border-radius:14px;background:#fff}.tg-display-figure svg{display:block;width:100%;height:100%;min-height:0;max-width:560px;max-height:100%}#tg-display-help{color:var(--tg-muted);font-size:.88rem;margin:14px 0}.tg-display-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}.tg-display-actions button{min-height:44px;padding:10px 14px;border:1px solid #acb9c7;border-radius:10px;font:inherit;font-size:.9rem;font-weight:700;color:var(--tg-ink);background:var(--tg-panel);cursor:pointer}.tg-display-actions button[aria-pressed=true]{background:#26384c;border-color:#26384c;color:#fff}.tg-print-area [hidden],.tg-wrap [hidden]{display:none!important}.tg-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.tg-print-area{display:none}[data-theme=dark] .tg-wrap{--tg-ink:#f1f5f9;--tg-muted:#bdc9d7;--tg-accent:#ffbd8c;--tg-line:#44546a;--tg-panel:#1e293b;--tg-soft:#2d394c}[data-theme=dark] .tg-hero h1{color:#f1f5f9}[data-theme=dark] .tg-hero strong{color:#fff;-webkit-text-fill-color:#fff}[data-theme=dark] .tg-btn:not(.secondary):not(.ghost){background:#99451f;color:#fff}[data-theme=dark] .tg-card.selected .tg-check{color:#26384c}[data-theme=dark] .tg-display{background:#17253a;border-color:#44546a}[data-theme=dark] .tg-preview-pieces{border-color:#44546a}body.tg-projecting{overflow:hidden}body.tg-projecting #tg-display{position:fixed;inset:0;z-index:100001;display:flex;flex-direction:column;gap:10px;height:100vh;height:100dvh;padding:20px;margin:0;overflow:auto;border:0;border-radius:0;background:#10233a;color:#fff}body.tg-projecting #tg-display h2{color:#fff}body.tg-projecting #tg-display-count,body.tg-projecting #tg-display-help{color:#d3deec;margin:0}body.tg-projecting .tg-kicker{display:none}body.tg-projecting .tg-display-figure{flex:1 1 auto;min-height:0;height:auto}body.tg-projecting .tg-display-figure svg{max-width:100%}body.tg-projecting .tg-display-actions{flex:0 0 auto}@media (max-width:800px){.tg-wrap{padding:24px 14px 48px}.tg-preparation{grid-template-columns:minmax(210px,1fr) minmax(0,1fr);gap:0 20px}.tg-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (max-width:600px){.tg-block{padding:18px}.tg-preparation{display:block}.tg-preview-pieces{margin-top:20px;padding:12px}.tg-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.tg-card{padding:8px}.tg-card .tg-sil{height:100px}.tg-card .tg-sil svg{height:90px}.tg-count{width:100%;margin:0}.tg-display{padding:16px}.tg-display-figure{height:250px;padding:10px}.tg-actions .tg-btn{flex:1 1 auto}.tg-display-actions button{flex:1 1 auto}body.tg-projecting #tg-display{padding:10px;gap:6px}body.tg-projecting #tg-display h2{font-size:1.15rem;margin:0}body.tg-projecting #tg-display-count{font-size:.78rem}body.tg-projecting #tg-display-help{display:none}body.tg-projecting .tg-display-actions{display:grid;grid-template-columns:44px 44px minmax(0,1fr);gap:6px}body.tg-projecting .tg-display-actions button{font-size:.78rem;padding:7px}body.tg-projecting #tg-project{grid-column:1/-1}}@media (prefers-reduced-motion:reduce){.tg-wrap *,body.tg-projecting #tg-display{scroll-behavior:auto;transition:none!important}}@media print{@page{size:A4 portrait;margin:10mm}@page:first{margin:10mm}body.tg-printing,body.tg-printing #main-content,html,html[data-theme]{margin:0!important;padding:0!important;height:auto!important;min-height:0!important;max-width:none!important;width:auto!important;background:#fff!important;color:#111!important;border:0!important}body.tg-printing{display:block!important;overflow:visible!important}body.tg-printing #main-content>:not(.tg-active),body.tg-printing>:not(#main-content){display:none!important}body.tg-printing .tg-print-area.tg-active{display:block!important;padding:0;margin:0;background:#fff!important}body.tg-printing #main-content .tg-print-area [hidden]{display:none!important}body.tg-printing #main-content .print-entete,body.tg-printing #main-content .print-entete :is(tbody,tr,td,th){background:#fff!important;color:#111!important;box-shadow:none!important}body.tg-printing #main-content .print-entete{flex:0 0 auto;margin:0 0 5mm!important}body.tg-printing #main-content .print-entete div{color:#111!important;-webkit-text-fill-color:#111!important}body.tg-printing .print-pied{font-size:7pt;color:#555!important;background:#fff!important}.tg-print-pieces-grid{display:grid;justify-items:center;justify-content:center;gap:6mm}.tg-print-pieces-grid svg{display:block;height:auto}.tg-print-pieces-grid[data-count='1'] svg{width:16cm}.tg-print-pieces-grid[data-count='2'] svg{width:11cm}.tg-print-pieces-grid[data-count='4']{grid-template-columns:repeat(2,8cm)}.tg-print-pieces-grid[data-count='4'] svg{width:8cm}#tg-area-pieces>.print-pied{position:fixed;bottom:0;left:0;right:0;margin:0!important}.tg-paper-page{display:flex;flex-direction:column;height:272mm;padding:0;margin:0;border:0;break-after:page;page-break-after:always}.tg-paper-page:last-child{break-after:auto;page-break-after:auto}.tg-print-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,100mm);gap:6mm}.tg-print-item{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:3mm;border:1px dashed #a1a1a1;border-radius:2mm;break-inside:avoid;color:#111!important}.tg-print-item svg{width:100%;height:78mm}.tg-print-item .tg-name{margin-top:2mm;font-size:11pt}.tg-print-item .tg-content-id{margin-top:.7mm;color:#525252!important;font-size:6pt;letter-spacing:.02em}.tg-paper-page .print-pied{position:static;margin-top:auto!important;flex:0 0 auto}.tg-print-area svg{-webkit-print-color-adjust:exact;print-color-adjust:exact}}