.botsim{--p:#3d0b70;--p2:#6519ad;--soft:#f7f2fc;--line:#e3d7ef;--ink:#1e1530;max-width:1320px;margin:30px auto;padding:26px;border:3px solid var(--p);border-radius:26px;background:#fff;box-shadow:0 18px 48px #2c0d4a14;color:var(--ink);font-family:inherit}.botsim *{box-sizing:border-box}.botsim-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:22px}.botsim-kicker{font-size:11px;font-weight:900;letter-spacing:.1em;color:#958b9c}.botsim h2{margin:6px 0 8px;font-size:31px;color:#2f0b52}.botsim-head p{margin:0;max-width:800px;color:#685f6d}.botsim-live{background:#effbf2;color:#28713a;border-radius:999px;padding:9px 13px;white-space:nowrap;font-size:13px;font-weight:800}.botsim-live span{display:inline-block;width:9px;height:9px;background:#35b85d;border-radius:50%;margin-right:6px}.botsim-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(330px,.68fr);gap:20px}.botsim-filters{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px}.botsim label{font-weight:800;font-size:12px}.botsim select,.botsim input{font:inherit}.botsim-filters select{display:block;width:100%;margin-top:5px;border:1px solid var(--line);border-radius:12px;padding:11px;background:#fff}.botsim-product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;max-height:390px;overflow:auto;padding:2px}.botsim-product-card{border:1px solid var(--line);background:#fff;border-radius:14px;padding:9px;text-align:left;cursor:pointer;color:var(--ink)}.botsim-product-card.active{border:2px solid var(--p);padding:8px;background:#fbf8ff}.botsim-product-img{display:grid;place-items:center;height:105px;background:#faf8fc;border-radius:10px;overflow:hidden}.botsim-product-img img{width:100%;height:100%;object-fit:contain}.botsim-product-card strong,.botsim-product-card small,.botsim-product-card em{display:block}.botsim-product-card strong{margin-top:7px;font-size:13px}.botsim-product-card small{color:#8e8393;font-size:10px;margin-top:2px}.botsim-product-card em{font-style:normal;color:var(--p);font-weight:900;margin-top:6px;font-size:12px}.botsim-config{margin-top:14px;border:1px solid var(--line);border-radius:18px;padding:15px}.botsim-preview{display:grid;grid-template-columns:180px 1fr;gap:16px;align-items:center}.botsim-photo{height:190px;border-radius:14px;background:#faf8fc;display:grid;place-items:center;overflow:hidden}.botsim-photo img{width:100%;height:100%;object-fit:contain}.botsim-product-name{margin:0 0 4px;color:#32105f}.botsim-ref{margin:0 0 10px;color:#877b8e;font-size:12px}.botsim-mini-label,.botsim-section-title{display:block;font-size:11px;font-weight:900;letter-spacing:.06em;color:#92879a;margin:12px 0 7px}.botsim-grammages>div,.botsim-colors>div{display:flex;flex-wrap:wrap;gap:6px}.botsim-grammages button{border:1px solid #d9cbe7;background:#fff;border-radius:10px;padding:7px 9px;color:#3b155c;font-weight:800}.botsim-grammages button.active{background:var(--p);color:#fff}.botsim-colors button{border:1px solid #e0d6e7;background:#fff;border-radius:999px;padding:5px 8px 5px 5px;display:flex;align-items:center;gap:6px;font-size:11px}.botsim-colors button.active{box-shadow:0 0 0 2px var(--p)}.botsim-colors i{width:22px;height:22px;border-radius:50%;background:var(--c);border:1px solid #aaa;display:block}.botsim-sizes{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.botsim-sizes label{display:flex;justify-content:space-between;align-items:center;border:1px solid #ece3f3;border-radius:11px;padding:7px}.botsim-step{display:grid;grid-template-columns:30px 40px 30px;border:1px solid #d8c8e8;border-radius:9px;overflow:hidden}.botsim-step button{border:0;background:#f2eafb;color:var(--p);font-weight:900}.botsim-step input{width:40px;border:0;text-align:center;font-weight:900;appearance:textfield}.botsim-step input::-webkit-inner-spin-button,.botsim-step input::-webkit-outer-spin-button{-webkit-appearance:none}.botsim-mode-buttons{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.botsim-mode-buttons button{border:1px solid #dacbe8;border-radius:12px;background:#fff;color:#3d155d;padding:11px;font-weight:900}.botsim-mode-buttons button.active{background:var(--p);color:#fff}.botsim-zones{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-top:9px}.botsim-zones label,.botsim-embro-size label{border:1px solid #e5daf0;border-radius:10px;padding:8px;background:#fcfaff}.botsim-embro-size{margin-top:9px}.botsim-embro-size>span{display:block;font-weight:900;font-size:12px;margin-bottom:6px}.botsim-quote{position:sticky;top:20px;background:#fcfbfd;border:1px solid var(--line);border-radius:20px;padding:18px}.botsim-quote-title{font-size:12px;font-weight:900;letter-spacing:.07em;color:#92879a}.botsim-empty{padding:30px 0;color:#8a8090}.botsim-summary{display:flex;flex-direction:column;gap:3px;padding:14px 0;border-bottom:1px solid #ece4f1}.botsim-summary small{color:#8a8090}.botsim-price-main{padding:18px 0 8px}.botsim-price-main span{display:block;font-size:11px;font-weight:900;color:#93889b}.botsim-price-main strong{font-size:37px;color:#28103e}.botsim-total-row{display:flex;justify-content:space-between;align-items:center;padding:11px 0 16px;font-weight:800}.botsim-total-row strong{font-size:20px}.botsim-table-open{width:100%;border:1px solid #d6c5e6;background:#fff;color:var(--p);border-radius:11px;padding:10px;font-weight:900}.botsim-table{margin-top:8px}.botsim-table table{width:100%;border-collapse:collapse;font-size:12px}.botsim-table th,.botsim-table td{padding:7px;border-bottom:1px solid #ede6f2;text-align:right}.botsim-table th:first-child,.botsim-table td:first-child{text-align:left}.botsim-note{font-size:11px;line-height:1.45;color:#897e90}.botsim-create{width:100%;border:0;border-radius:13px;padding:14px;background:linear-gradient(135deg,var(--p),var(--p2));color:#fff;font-weight:900;cursor:pointer}.botsim-error,.botsim-error-inline{color:#8d2626;background:#fff1f1;border:1px solid #efcaca;border-radius:10px;padding:10px}.botsim [hidden]{display:none!important}
@media(max-width:980px){.botsim-layout{grid-template-columns:1fr}.botsim-quote{position:static}.botsim-product-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:650px){.botsim{padding:14px;border-radius:18px}.botsim-head{flex-direction:column}.botsim-product-grid{grid-template-columns:repeat(2,1fr)}.botsim-preview{grid-template-columns:1fr}.botsim-photo{height:220px}.botsim-sizes{grid-template-columns:1fr 1fr}.botsim-zones{grid-template-columns:1fr 1fr}.botsim-mode-buttons{grid-template-columns:1fr}}
/* V1.1.0 — multi-produits, rendu couleur live et synchronisation */
.botsim-project-bar{display:flex;gap:10px;align-items:center;justify-content:space-between;margin:0 0 12px}.botsim-project-tabs{display:flex;gap:7px;flex-wrap:wrap;min-width:0}.botsim-project-tab{display:flex;align-items:center;border:1px solid #d9cce6;border-radius:999px;background:#fff;overflow:hidden}.botsim-project-tab.active{box-shadow:0 0 0 2px var(--p);border-color:var(--p)}.botsim-project-tab>button:first-child{display:flex;gap:6px;align-items:center;border:0;background:#fff;color:#38145b;padding:8px 11px;max-width:210px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:800}.botsim-project-tab b{display:grid;place-items:center;width:21px;height:21px;border-radius:50%;background:#efe5f7;color:var(--p);font-size:11px}.botsim-remove-item{border:0;border-left:1px solid #e2d7eb;background:#fff;color:#b32727;font-size:18px;font-weight:900;padding:6px 9px;cursor:pointer}.botsim-add-product{border:0;border-radius:999px;background:var(--p);color:#fff;padding:9px 13px;font-weight:900;white-space:nowrap;cursor:pointer}.botsim-photo{position:relative}.botsim-textile-canvas{display:block;width:100%;height:100%;object-fit:contain;transition:opacity .18s ease}.botsim-photo-loading{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:#ffffffc9;color:#5d4a68;font-size:11px;font-weight:800}.botsim-photo-loading i,.botsim-sync-state i,.botsim-mini-loader i{display:inline-block;width:18px;height:18px;border:3px solid #ded1e8;border-top-color:var(--p);border-radius:50%;animation:botsim-spin .7s linear infinite}@keyframes botsim-spin{to{transform:rotate(360deg)}}.botsim-sync-state{display:flex;align-items:center;gap:8px;margin-top:10px;padding:9px 10px;background:#f1e9f8;border-radius:10px;color:#5a3b70;font-size:11px;font-weight:800}.botsim-sync-state i{width:16px;height:16px}.botsim-items-summary{display:grid;gap:6px;margin:10px 0}.botsim-item-line{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #ebe2f1;border-radius:10px;padding:8px;background:#fff}.botsim-item-line.active{border-color:#b992da;background:#fbf7ff}.botsim-item-line span{display:flex;flex-direction:column;min-width:0}.botsim-item-line b{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:200px}.botsim-item-line small{font-size:10px;color:#8a7f91}.botsim-item-line strong{font-size:12px;color:#2f0b52}.botsim-mini-loader{display:flex;align-items:center;gap:5px;font-size:10px;color:#6e5a79}.botsim-mini-loader i{width:13px;height:13px;border-width:2px}@media(max-width:650px){.botsim-project-bar{align-items:stretch;flex-direction:column}.botsim-add-product{width:100%}.botsim-project-tab>button:first-child{max-width:145px}}
/* V1.2.0 — contexte landing pages Brand-ON */
.botsim-context-locked .botsim-project-bar{display:none}
.botsim-context-locked .botsim-filters[hidden]{display:none!important}
.botsim-context-compact{max-width:none;margin:0;padding:18px 20px;border-width:1px;border-radius:22px;box-shadow:0 12px 34px #2c0d4a10}
.botsim-context-compact .botsim-head{margin-bottom:14px;align-items:center}
.botsim-context-compact .botsim-head h2{font-size:clamp(24px,3vw,34px);margin:4px 0 5px}
.botsim-context-compact .botsim-head p{font-size:13px;line-height:1.45}
.botsim-context-compact .botsim-layout{grid-template-columns:minmax(0,1.7fr) minmax(285px,.58fr);gap:14px}
.botsim-context-compact .botsim-product-grid{max-height:245px;grid-template-columns:repeat(4,1fr);gap:7px}
.botsim-context-compact .botsim-product-grid-single{grid-template-columns:1fr}
.botsim-context-compact .botsim-product-card{padding:7px}
.botsim-context-compact .botsim-product-img{height:88px}
.botsim-context-compact .botsim-config{margin-top:8px;padding:12px}
.botsim-context-compact .botsim-preview{grid-template-columns:150px 1fr;gap:13px}
.botsim-context-compact .botsim-photo{height:160px}
.botsim-context-compact .botsim-mini-label,.botsim-context-compact .botsim-section-title{margin:8px 0 5px}
.botsim-context-compact .botsim-grammages button{padding:6px 8px}
.botsim-context-compact .botsim-colors button{padding:4px 7px 4px 4px}
.botsim-context-compact .botsim-colors i{width:24px;height:24px}
.botsim-context-compact .botsim-sizes{gap:5px}
.botsim-context-compact .botsim-sizes label{padding:5px 6px}
.botsim-context-compact .botsim-mode-buttons button{padding:9px}
.botsim-context-compact .botsim-quote{top:12px;padding:14px}
.botsim-context-compact .botsim-price-main{padding:12px 0 5px}
.botsim-context-compact .botsim-price-main strong{font-size:31px}
.botsim-context-compact .botsim-note{margin:10px 0}
@media(max-width:980px){.botsim-context-compact .botsim-layout{grid-template-columns:1fr}.botsim-context-compact .botsim-product-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:650px){.botsim-context-compact{padding:12px}.botsim-context-compact .botsim-preview{grid-template-columns:1fr}.botsim-context-compact .botsim-photo{height:210px}.botsim-context-compact .botsim-product-grid{grid-template-columns:repeat(2,1fr)}}

/* V1.2.1 — fiche produit en superposition */
.botsim-more-info{margin:3px 0 4px;border:0;background:transparent;color:var(--p);font-weight:900;font-size:12px;text-decoration:underline;text-underline-offset:3px;cursor:pointer;padding:2px 0}
.botsim-more-info:hover{opacity:.75}
.botsim-info-modal{position:fixed;inset:0;z-index:999999;background:rgba(27,12,38,.66);display:flex;align-items:center;justify-content:center;padding:24px}
.botsim-info-card{position:relative;width:min(1080px,94vw);max-height:88vh;overflow:auto;background:#fff;border-radius:24px;box-shadow:0 28px 90px rgba(20,6,28,.35);padding:28px}
.botsim-info-close{position:absolute;right:14px;top:14px;width:40px;height:40px;border:0;border-radius:50%;background:#f2edf6;color:#5a146d;font-size:26px;line-height:1;cursor:pointer;font-weight:900}
.botsim-info-grid{display:grid;grid-template-columns:minmax(280px,.9fr) minmax(0,1.1fr);gap:28px;align-items:center}
.botsim-info-photo{min-height:360px;background:#faf8fc;border:1px solid #eadff0;border-radius:20px;display:grid;place-items:center;overflow:hidden}
.botsim-info-photo img{max-width:100%;max-height:430px;width:100%;height:100%;object-fit:contain}
.botsim-info-noimg{color:#94899a;font-weight:800}
.botsim-info-kicker{display:inline-block;padding:7px 11px;border-radius:999px;background:#f3e8f7;color:var(--p);font-size:11px;font-weight:900;letter-spacing:.08em}
.botsim-info-copy h2{margin:12px 0 6px;color:#2e2333;font-size:30px}
.botsim-info-ref{font-size:13px;font-weight:800;color:#756b7a;margin-bottom:14px}
.botsim-info-desc{font-size:14px;line-height:1.55;color:#5f5663;margin-bottom:12px}
.botsim-info-copy p{margin:8px 0;line-height:1.5}
.botsim-info-color-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0}
.botsim-info-swatches{display:flex;gap:7px;flex-wrap:wrap}
.botsim-info-swatch{width:26px;height:26px;border-radius:50%;background:var(--sw);border:2px solid #fff;box-shadow:0 0 0 1px #82778a}
html.botsim-modal-open{overflow:hidden}
@media(max-width:760px){.botsim-info-card{padding:22px 16px}.botsim-info-grid{grid-template-columns:1fr;gap:16px}.botsim-info-photo{min-height:240px}.botsim-info-photo img{max-height:300px}.botsim-info-copy h2{font-size:24px}}
