/* Ateliers de logique : composants autonomes, sans dépendance à l’ancien jeu. */
.gw-workshop{--gw-green:#196c47;--gw-ink:#18271e;--gw-muted:#52634e;--gw-paper:#fbfaf6;--gw-line:#d6e0cc;--gw-yellow:#f9d874;--gw-focus:#286dc2;box-sizing:border-box;max-width:980px;margin:0 auto;padding:28px;border:1px solid var(--gw-line);border-radius:24px;background:var(--gw-paper);color:var(--gw-ink);font:inherit;font-size:15px;line-height:1.7;box-shadow:0 8px 30px #243c2006}
.gw-workshop *{box-sizing:border-box}
.gw-workshop [hidden]{display:none!important}
.gw-workshop p{color:var(--gw-muted);font-size:15px;line-height:1.7}
.gw-workshop button,.gw-workshop summary{font:inherit;-webkit-tap-highlight-color:transparent}
.gw-workshop button{cursor:pointer;touch-action:manipulation;overflow-wrap:break-word}
.gw-workshop button:disabled{cursor:default;opacity:1;background:#eef0e7;color:#72806b;border-color:#d8dfd0;box-shadow:none;transform:none}
.gw-workshop button:focus-visible,.gw-workshop summary:focus-visible{outline:3px solid var(--gw-focus);outline-offset:4px;position:relative;z-index:2}
.gw-stage:focus{outline:none}
.gw-stage:focus-visible{outline:3px solid var(--gw-focus);outline-offset:6px;border-radius:16px}
.gw-header{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin:0 0 21px}
.gw-header>div{min-width:0;max-width:690px}
.gw-eyebrow{display:block;color:#4c6b46;font-size:12px;font-weight:800;letter-spacing:.04em;line-height:1.6;margin-bottom:8px}
.gw-header h2{font-size:clamp(24px,3vw,33px);line-height:1.2;letter-spacing:-.04em;margin:0 0 13px}
.rc-single .gw-header h2{display:none}
.gw-header p{margin:0;max-width:680px}
.gw-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:44px;min-height:46px;max-width:100%;border:1px solid #bdcdb1;border-radius:13px;padding:10px 17px;background:#fffef8;color:#285438;font-size:14px!important;font-weight:750!important;line-height:1.55!important;white-space:normal;text-align:center;transition:background-color .18s,border-color .18s,box-shadow .18s}
.gw-button:hover:not(:disabled){background:#edf3e5;border-color:#9dbb8e;box-shadow:0 3px 9px #2b4a2410}
.gw-header>.gw-button{flex:0 0 auto;margin-top:1px;font-size:13px!important}
.gw-rules{margin:0 0 25px;background:#fffef9;border:1px solid var(--gw-line);border-radius:15px}
.gw-rules summary{display:flex;align-items:center;gap:15px;min-height:48px;padding:12px 17px;font-size:14px;font-weight:750;line-height:1.6;cursor:pointer;list-style:none}
.gw-rules summary::-webkit-details-marker{display:none}
.gw-rules summary:after{content:'+';margin-left:auto;font-size:25px;font-weight:450;line-height:1;flex-shrink:0;color:#4b6841}
.gw-rules[open] summary:after{content:'−'}
.gw-rules p{margin:0 17px 16px;max-width:800px}
.gw-rules p+p{padding-top:14px;border-top:1px solid #e4e9dd;font-size:14px}
.gw-stage{min-width:0;margin:0}
.gw-instruction{max-width:760px;margin:0 auto 23px;text-align:center;text-wrap:pretty}
.gw-stage h3{font-size:19px;letter-spacing:-.025em;line-height:1.35;margin:0 0 11px}
.gw-status{min-height:26px;text-align:center;margin:20px 0 0;color:#3e623f!important;font-size:15px;line-height:1.7}
.gw-status:not(:empty){padding:14px 18px;border:1px solid #dedfc4;background:#f5f1dc;border-radius:14px}
.gw-controls{display:flex;justify-content:center;align-items:stretch;flex-wrap:wrap;gap:11px;margin-top:19px}
.gw-controls:empty{display:none}
.gw-controls>.gw-button:first-child{background:var(--gw-green);color:#fffef7;border-color:var(--gw-green);padding-left:24px;padding-right:24px;min-width:145px}
.gw-controls>.gw-button:first-child:hover{background:#115536;border-color:#115536}
.gw-actions{display:flex;align-items:stretch;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:18px}
.gw-order-list{display:grid;gap:12px;list-style:none;margin:0 auto;padding:0;max-width:740px}
.gw-order-card{margin:0;min-width:0}
.gw-order-card>button{position:relative;display:grid;grid-template-columns:38px 78px minmax(0,1fr);gap:15px;align-items:center;width:100%;min-height:104px;border:2px solid #dce3d3;border-radius:18px;padding:15px 20px;background:#fffef9;color:var(--gw-ink);text-align:left;font-size:15px;line-height:1.6;transition:background-color .18s,border-color .18s,box-shadow .18s}
.gw-order-card>button:hover{border-color:#a3bb95;background:#f8faef}
.gw-order-card.is-selected>button{background:#edf4e2;border-color:var(--gw-green);box-shadow:0 0 0 1px var(--gw-green)}
.gw-order-card>button>span:last-child{min-width:0}
.gw-order-card strong{font-size:17px;font-weight:800;line-height:1.5;display:block;letter-spacing:-.02em;padding-right:12px}
.gw-card-number{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:#edf0df;color:#526b42;font-size:18px;font-weight:800;line-height:1}
.gw-order-card.is-selected .gw-card-number{background:var(--gw-green);color:#fffef4}
.gw-card-detail{display:block;margin-top:5px;color:var(--gw-muted);font-size:15px;line-height:1.65}
.gw-order-card .food-icon,.gw-order-card .gw-action-art{display:block;max-width:100%;width:78px;height:78px;flex-shrink:0}
.gw-order-card.is-selected>button:after{content:'✓';position:absolute;right:13px;top:11px;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#d6e7c9;color:#185a38;font-size:14px;font-weight:800;line-height:1}
.gw-balance-art{display:block;width:min(100%,480px);height:auto;max-height:130px;margin:-3px auto 2px;overflow:visible}
.gw-balance-reading{text-align:center;margin:0 auto 21px!important;font-weight:700;color:#41603a!important}
.gw-balance,.gw-plates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:stretch}
.gw-tray,.gw-plate{display:flex;flex-direction:column;align-items:stretch;min-width:0;border:2px solid #d9e3ca;border-radius:20px;padding:21px 18px;background:#f3f6e9;text-align:center}
.gw-tray:nth-child(2n),.gw-plate:nth-child(2n){background:#f8f1de;border-color:#e5dcc0}
.gw-tray h3,.gw-plate h3{margin-bottom:7px}
.gw-tray-fixed{margin:0 0 14px;font-size:14px!important}
.gw-tray>.gw-button,.gw-plate>.gw-button{align-self:center;margin-top:auto}
.gw-tray .gw-total{margin:15px 0 17px;color:#3a5934}
.gw-total strong{font-size:22px;font-weight:800;letter-spacing:-.025em;margin:0 3px}
.gw-plate>p{margin:0 0 17px;font-size:14px}
.gw-plate>.gw-tokens{margin-bottom:18px}
.gw-bank{border:1px solid #dce2d0;border-radius:19px;padding:22px;background:#fffef8;margin-top:20px;text-align:center;min-width:0}
.gw-bank h3{margin-bottom:17px}
.gw-bank>.gw-button{margin-top:18px}
.gw-tokens{display:flex;flex-wrap:wrap;justify-content:center;align-items:stretch;gap:9px;min-height:50px;min-width:0}
.gw-piece{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-width:68px;min-height:99px;width:82px;max-width:100%;padding:10px 6px 9px;border:2px solid #dbe3cf;border-radius:15px;background:#fffef8;color:var(--gw-ink);font-size:13px!important;line-height:1.4!important;text-align:center;transition:background-color .18s,border-color .18s,box-shadow .18s}
.gw-piece>.food-icon{display:block;flex-shrink:0;width:48px;height:48px;max-width:100%}
.gw-piece>span{display:block;max-width:100%;overflow-wrap:break-word;font-weight:700}
.gw-piece:hover{border-color:#99b68b;background:#f8faef}
.gw-piece.is-selected,.gw-piece[aria-pressed=true]{border-color:var(--gw-green);background:#edf4df;box-shadow:0 0 0 1px var(--gw-green)}
.gw-piece.is-selected:after,.gw-piece[aria-pressed=true]:after{content:'✓';position:absolute;top:-6px;right:-5px;display:grid;place-items:center;width:21px;height:21px;line-height:1;border:2px solid #fffef4;border-radius:50%;background:var(--gw-green);color:#fffef4;font-size:12px;font-weight:800}
.gw-token-value{display:inline-flex;align-items:center;justify-content:center;min-width:24px;min-height:24px;border-radius:8px;background:#f0deb1;color:#645020;font-size:15px;font-weight:800;line-height:1;padding:3px 6px;margin-top:0}
.gw-empty{display:flex;align-items:center;justify-content:center;min-height:70px;width:100%;padding:14px 8px;color:#65705b;font-size:14px;line-height:1.7;border:1px dashed #bdcaae;border-radius:13px;background:#fffef63d}
.gw-grid-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:27px;max-width:800px;margin:0 auto;align-items:start}
.gw-grid-layout>.gw-play-grid:only-child{grid-column:1/-1;width:100%;max-width:390px;justify-self:center}
.gw-model,.gw-play-grid{margin:0;min-width:0;text-align:center}
.gw-model figcaption,.gw-play-grid>h3{color:#3c5b36;font-size:16px;font-weight:750;line-height:1.6;margin:0 0 14px;letter-spacing:-.015em}
.gw-grid{display:grid;grid-template-columns:repeat(var(--gw-columns,3),minmax(0,1fr));gap:8px;min-width:0;max-width:360px;margin:0 auto;padding:11px;border:1px solid #cad8bc;border-radius:18px;background:#e8efd9}
.gw-play-grid .gw-grid{background:#f5f0df;border-color:#dfd5b5}
.gw-cell{position:relative;display:flex;align-items:center;justify-content:center;min-width:44px;min-height:58px;width:100%;aspect-ratio:1;padding:10px;border:2px solid #e0dcc5;border-radius:11px;background:#fffdf5;color:var(--gw-ink);font-size:15px;line-height:1}
.gw-cell--model{border-color:#d8e2c9;background:#f9fbef}
.gw-cell>.food-icon{display:block;width:100%;height:auto;aspect-ratio:1;max-width:69px;max-height:69px;flex:0 1 auto}
button.gw-cell:hover{border-color:#9ab384;background:#f8faef}
.gw-cell.is-selected{border-color:var(--gw-green);background:#e6f0d7;box-shadow:0 0 0 1px var(--gw-green)}
.gw-cell.is-selected:after{content:'✓';position:absolute;right:3px;top:3px;color:var(--gw-green);font-size:12px;font-weight:800;line-height:1}
.gw-cell-position{position:absolute;bottom:3px;right:5px;color:#6b755d;font-size:10px;font-weight:700;line-height:1.1}
.gw-empty-dot{font-size:25px;line-height:1;color:#b0bd9a;font-weight:700}
.gw-clues{padding:23px 25px;border:1px solid #dddbbd;border-radius:19px;background:#f8f2da;margin-bottom:23px}
.gw-clues h3{color:#555d34;margin-bottom:13px}
.gw-clues ol{margin:0;padding-left:24px;font-size:15px;line-height:1.75;color:#4d5c3f}
.gw-clues li{padding-left:3px;margin:9px 0}
.gw-clues li::marker{font-weight:800;color:#5f713c}
.gw-clues .gw-actions{justify-content:flex-start;margin-top:19px}
.gw-clues .gw-button{background:#fffdf5;border-color:#d5c898;color:#62572d}
.gw-clues .gw-button:hover:not(:disabled){background:#f8edc7;border-color:#baa96b}
.gw-clues .gw-button:disabled{background:#f3efd9;color:#73775c;border-color:#e1ddc3}
.gw-candidates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}
.gw-candidate{display:flex;flex-direction:column;min-width:0;padding:22px;border:2px solid #dce3d0;border-radius:20px;background:#fffef9}
.gw-candidate-art{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px;min-height:95px;padding:10px 5px 17px;margin:0 0 18px;border-bottom:1px solid #e6e9dc}
.gw-candidate-art>.food-icon{width:57px;height:57px;max-width:100%}
.gw-candidate h3{font-size:20px;line-height:1.4;margin-bottom:10px}
.gw-traits{display:flex;flex-wrap:wrap;gap:7px;list-style:none;margin:0 0 22px;padding:0;color:#526549}
.gw-traits li{font-size:13px;line-height:1.5;margin:0;background:#f0f3e8;border-radius:8px;padding:5px 8px}
.gw-candidate>.gw-button{margin-top:auto;align-self:flex-start;max-width:100%;font-size:13px!important;text-align:left}
.gw-candidate.is-excluded{border-style:dashed;border-color:#aab69b;background:#f0f1e9}
.gw-candidate.is-excluded h3{text-decoration:line-through;text-decoration-thickness:2px;text-decoration-color:#819175}
.gw-candidate.is-excluded .gw-candidate-art{background:#e9ecdf;border-radius:12px;border-bottom-color:transparent}
.gw-candidate.is-excluded .gw-traits li{background:#e5e9dc}
.gw-candidate.is-excluded>.gw-button{border-color:#b5c7a5;background:#f8faee}
.gw-result{display:flex;align-items:center;flex-direction:column;max-width:650px;margin:7px auto 0;text-align:center;background:#eef3e3;border:1px solid #cbdaba;border-radius:22px;padding:30px 32px}
.gw-result>.food-icon{width:91px;height:91px;margin:0 0 20px}
.gw-result .gw-eyebrow{margin-bottom:10px}
.gw-result h3{font-size:clamp(24px,3vw,31px);line-height:1.25;margin-bottom:15px;letter-spacing:-.04em}
.gw-result p{font-size:15px;line-height:1.8;margin:0 0 23px}
.gw-result .gw-button{background:var(--gw-green);color:#fffef7;border-color:var(--gw-green)}
.gw-result .gw-button:hover{background:#115536;border-color:#115536}
@media(max-width:900px){.gw-workshop{padding:24px}.gw-header{gap:19px}.gw-header>.gw-button{padding-left:13px;padding-right:13px}.gw-grid-layout{gap:20px}.gw-grid{padding:8px;gap:7px}.gw-cell{padding:8px}.gw-tray,.gw-plate{padding:19px 14px}.gw-piece{width:78px;min-width:64px}.gw-candidate{padding:19px}.gw-candidate-art>.food-icon{width:52px;height:52px}}
@media(max-width:680px){.gw-header{flex-wrap:wrap;gap:17px;margin-bottom:19px}.gw-header>div{flex:1 1 100%}.gw-header>.gw-button{margin:0}.gw-rules{margin-bottom:22px}.gw-grid-layout{gap:22px;grid-template-columns:minmax(0,1fr);max-width:370px}.gw-grid-layout:has(>.gw-play-grid:only-child){max-width:370px}.gw-grid{max-width:340px;gap:8px;padding:10px}.gw-cell{padding:10px;min-height:55px}.gw-balance,.gw-plates{gap:15px}.gw-tray,.gw-plate{padding:18px 12px}.gw-tokens{gap:8px}.gw-piece{width:73px;min-width:60px;min-height:96px}.gw-bank{padding:20px 17px}.gw-candidates{gap:14px}.gw-candidate{padding:17px 14px}.gw-candidate-art{gap:3px;padding-left:0;padding-right:0}.gw-candidate-art>.food-icon{width:46px;height:46px}.gw-traits li{font-size:12px}.gw-clues{padding:21px}.gw-order-card>button{grid-template-columns:33px 68px minmax(0,1fr);gap:12px;padding:14px 15px}.gw-card-number{width:32px;height:32px;font-size:17px}.gw-order-card .food-icon,.gw-order-card .gw-action-art{width:68px;height:68px}.gw-order-card strong{font-size:16px}.gw-card-detail{font-size:15px}}
@media(max-width:520px){.gw-workshop{padding:19px 15px;border-radius:20px}.gw-eyebrow{font-size:12px;margin-bottom:7px}.gw-header h2{font-size:25px}.gw-header p,.gw-workshop p{font-size:15px;line-height:1.7}.gw-header>.gw-button{font-size:13px!important;min-height:46px}.gw-rules summary{min-height:48px;padding:12px 14px;font-size:14px}.gw-rules p{margin-left:14px;margin-right:14px;margin-bottom:15px}.gw-rules p+p{font-size:14px}.gw-instruction{text-align:left;margin-bottom:21px}.gw-order-list{gap:10px}.gw-order-card>button{grid-template-columns:29px 61px minmax(0,1fr);column-gap:11px;row-gap:9px;padding:14px 12px;min-height:105px;border-radius:16px}.gw-card-number{width:29px;height:31px;border-radius:9px;font-size:16px}.gw-order-card .food-icon,.gw-order-card .gw-action-art{width:61px;height:61px}.gw-order-card>button>span:last-child{display:contents}.gw-order-card strong{grid-column:3;grid-row:1;font-size:16px;line-height:1.5;padding-right:6px}.gw-card-detail{grid-column:1/-1;grid-row:2;display:block;font-size:15px;line-height:1.7;margin-top:0;padding-top:9px;border-top:1px solid #e4e8d8}.gw-order-card.is-selected>button:after{top:7px;right:7px;width:18px;height:18px;font-size:11px}.gw-actions{gap:9px}.gw-actions>.gw-button{flex:1 1 140px;padding:10px 12px}.gw-balance,.gw-plates{grid-template-columns:minmax(0,1fr);gap:15px}.gw-balance-art{max-height:100px;margin-top:0}.gw-balance-reading{font-size:14px!important;line-height:1.7;margin-bottom:18px!important}.gw-tray,.gw-plate{padding:21px 15px;border-radius:18px}.gw-tray-fixed{font-size:14px!important}.gw-tray h3,.gw-plate h3{font-size:19px}.gw-piece{width:75px;min-width:62px;min-height:97px;padding:9px 5px;font-size:13px!important}.gw-piece>.food-icon{width:46px;height:46px}.gw-token-value{font-size:15px}.gw-bank{padding:21px 14px;border-radius:17px}.gw-bank>.gw-button,.gw-tray>.gw-button,.gw-plate>.gw-button{font-size:14px!important;min-height:46px}.gw-grid-layout{gap:23px;max-width:340px}.gw-grid{gap:7px;padding:9px;border-radius:15px}.gw-cell{min-width:44px;min-height:49px;padding:7px;border-radius:9px}.gw-cell>.food-icon{max-height:60px;max-width:60px}.gw-cell-position{font-size:10px;bottom:2px;right:3px}.gw-model figcaption,.gw-play-grid>h3{font-size:16px;margin-bottom:11px}.gw-clues{padding:21px 17px;border-radius:17px}.gw-clues ol{font-size:15px;padding-left:21px}.gw-clues .gw-actions{gap:9px}.gw-clues .gw-actions>.gw-button{flex-basis:100%}.gw-candidates{grid-template-columns:minmax(0,1fr);gap:15px}.gw-candidate{padding:22px 19px;border-radius:18px}.gw-candidate-art{gap:9px;min-height:86px;margin-bottom:17px}.gw-candidate-art>.food-icon{width:58px;height:58px}.gw-candidate h3{font-size:21px}.gw-traits{gap:7px;margin-bottom:20px}.gw-traits li{font-size:13px}.gw-candidate>.gw-button{align-self:stretch;font-size:14px!important;text-align:center}.gw-status{margin-top:20px}.gw-status:not(:empty){padding:13px 14px;font-size:15px}.gw-controls{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin-top:16px}.gw-controls>.gw-button{width:100%;min-height:46px;font-size:14px!important}.gw-result{padding:25px 20px;border-radius:18px}.gw-result>.food-icon{width:81px;height:81px;margin-bottom:19px}.gw-result h3{font-size:27px}.gw-result p{font-size:15px;line-height:1.75}.gw-result .gw-button{width:100%;font-size:14px!important}}
@media(max-width:360px){.gw-workshop{padding:18px 13px}.gw-order-card>button{grid-template-columns:27px 51px minmax(0,1fr);gap:10px;padding:14px 10px}.gw-order-card .food-icon,.gw-order-card .gw-action-art{width:51px;height:51px}.gw-card-number{width:27px;height:29px;font-size:15px}.gw-order-card strong{font-size:15px;line-height:1.55}.gw-card-detail{font-size:15px;line-height:1.7}.gw-tray,.gw-plate{padding:20px 11px}.gw-bank{padding:20px 10px}.gw-piece{width:67px;min-width:58px;min-height:95px;font-size:12px!important}.gw-tokens{gap:8px}.gw-piece>.food-icon{width:44px;height:44px}.gw-grid{padding:7px;gap:6px}.gw-cell{min-width:44px;min-height:46px;padding:6px}.gw-cell-position{font-size:10px}.gw-candidate{padding:20px 16px}.gw-candidate-art>.food-icon{width:52px;height:52px}.gw-traits li{padding:5px 7px}.gw-clues{padding:19px 15px}.gw-empty{font-size:14px}}
@media(prefers-reduced-motion:reduce){.gw-workshop *{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
@media(forced-colors:active){.gw-workshop{border-color:CanvasText}.gw-order-card.is-selected>button,.gw-piece.is-selected,.gw-piece[aria-pressed=true],.gw-cell.is-selected{outline:2px solid Highlight;outline-offset:-5px}.gw-candidate.is-excluded{border-color:CanvasText}.gw-candidate.is-excluded h3{text-decoration-color:CanvasText}.gw-button,.gw-piece,.gw-cell,.gw-order-card>button{border-color:ButtonText}.gw-status:not(:empty){border-color:CanvasText}}
@media print{.gw-workshop{max-width:none;padding:15px;border-radius:0;box-shadow:none;border-color:#bbb}.gw-header>.gw-button,.gw-controls,.gw-actions,.gw-bank>.gw-button,.gw-tray>.gw-button,.gw-plate>.gw-button,.gw-candidate>.gw-button{display:none}.gw-stage,.gw-order-card,.gw-tray,.gw-plate,.gw-candidate{break-inside:avoid}.gw-status:empty{display:none}.gw-header h2{display:block!important}.gw-balance,.gw-plates,.gw-candidates{grid-template-columns:repeat(2,minmax(0,1fr))}.gw-grid-layout{grid-template-columns:repeat(2,minmax(0,1fr));max-width:none}}
