.tshirt-selector{display:flex;flex-direction:column;gap:.5rem}.tshirt-label{display:flex;justify-content:space-between;align-items:center;font-size:.875rem;font-weight:600;color:var(--text-secondary)}.tshirt-jours{font-size:.75rem;font-weight:500;color:var(--primary);background:var(--primary-light);padding:.25rem .5rem;border-radius:9999px}.tshirt-buttons{display:flex;gap:.25rem;background:var(--bg-tertiary);padding:.25rem;border-radius:.5rem}.tshirt-button{flex:1;padding:.5rem .75rem;font-size:.75rem;font-weight:600;color:var(--text-secondary);background:transparent;border:none;border-radius:.375rem;cursor:pointer;transition:all .2s ease}.tshirt-button:hover{background:var(--bg-secondary);color:var(--text-primary)}.tshirt-button.active{background:var(--primary);color:#fff;box-shadow:0 2px 8px #6366f166}.tshirt-button.neutral.active{background:var(--text-tertiary);box-shadow:none}.copy-button{display:inline-flex;align-items:center;gap:.5rem;padding:.75rem 1.5rem;font-size:.875rem;font-weight:600;color:#fff;background:linear-gradient(135deg,var(--primary) 0%,var(--primary-dark) 100%);border:none;border-radius:.5rem;cursor:pointer;transition:all .2s ease;box-shadow:0 4px 12px #6366f14d}.copy-button svg{width:1rem;height:1rem}.copy-button:hover{transform:translateY(-2px);box-shadow:0 6px 20px #6366f166}.copy-button:active{transform:translateY(0)}.copy-button.copied{background:linear-gradient(135deg,var(--success) 0%,#059669 100%);box-shadow:0 4px 12px #10b9814d}.chiffrage-form{background:var(--card-bg);border-radius:1rem;padding:2rem;box-shadow:var(--shadow-lg);border:1px solid var(--border)}.form-header{margin-bottom:1.5rem}.form-header h2{font-size:1.5rem;font-weight:700;color:var(--text-primary);margin:0 0 .5rem}.form-header p{color:var(--text-secondary);font-size:.875rem;margin:0}.form-grid{display:grid;grid-template-columns:200px 1fr;gap:1rem;margin-bottom:1.5rem}.form-group{display:flex;flex-direction:column;gap:.5rem}.form-group label{font-size:.875rem;font-weight:600;color:var(--text-secondary)}.form-group select,.form-group input{padding:.75rem 1rem;font-size:.875rem;color:var(--text-primary);background:var(--bg-secondary);border:1px solid var(--border);border-radius:.5rem;transition:all .2s ease}.form-group select:focus,.form-group input:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-light)}.form-section{margin-bottom:1.5rem}.form-section h3{font-size:1rem;font-weight:600;color:var(--text-primary);margin:0 0 1rem}.tshirt-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem}@media(max-width:768px){.form-grid,.tshirt-grid{grid-template-columns:1fr}}.form-total{display:flex;justify-content:space-between;align-items:center;padding:1.5rem;background:linear-gradient(135deg,var(--primary-light) 0%,rgba(139,92,246,.1) 100%);border-radius:.75rem;margin-bottom:1.5rem}.total-breakdown{display:flex;flex-direction:column;gap:.5rem}.total-label{font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--text-secondary)}.total-details{display:flex;flex-wrap:wrap;gap:1rem}.detail-item{font-size:.875rem;color:var(--text-secondary)}.detail-item strong{color:var(--text-primary)}.total-value{display:flex;align-items:baseline;gap:.5rem}.total-number{font-size:3rem;font-weight:700;color:var(--primary);line-height:1}.total-unit{font-size:1rem;font-weight:500;color:var(--text-secondary)}.form-preview{margin-bottom:1.5rem}.form-preview h4{font-size:.875rem;font-weight:600;color:var(--text-secondary);margin:0 0 .75rem}.preview-text{padding:1rem;background:var(--bg-secondary);border:1px solid var(--border);border-radius:.5rem;font-family:inherit;font-size:.875rem;color:var(--text-primary);white-space:pre-wrap;margin:0 0 1rem;line-height:1.6}.form-actions{display:flex;justify-content:flex-end}.submit-button{padding:.875rem 2rem;font-size:1rem;font-weight:600;color:#fff;background:linear-gradient(135deg,var(--primary) 0%,var(--primary-dark) 100%);border:none;border-radius:.5rem;cursor:pointer;transition:all .2s ease;box-shadow:0 4px 12px #6366f14d}.submit-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 20px #6366f166}.submit-button:disabled{opacity:.7;cursor:not-allowed}.submit-button.loading{position:relative;color:transparent}.submit-button.loading:after{content:"";position:absolute;top:50%;left:50%;width:1.25rem;height:1.25rem;margin:-.625rem 0 0 -.625rem;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite}.submit-button.success{background:linear-gradient(135deg,var(--success) 0%,#059669 100%);box-shadow:0 4px 12px #10b9814d}@keyframes spin{to{transform:rotate(360deg)}}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#0009;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:1000;animation:fadeIn .2s ease}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.modal-content{background:var(--card-bg);border-radius:1rem;padding:2rem;max-width:500px;width:90%;max-height:90vh;overflow-y:auto;box-shadow:0 25px 50px -12px #00000080;border:1px solid var(--border);position:relative;animation:slideUp .3s ease}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.modal-close{position:absolute;top:1rem;right:1rem;width:2rem;height:2rem;font-size:1.5rem;line-height:1;color:var(--text-tertiary);background:none;border:none;cursor:pointer;transition:color .2s ease}.modal-close:hover{color:var(--text-primary)}.modal-title{font-size:1.25rem;font-weight:700;color:var(--text-primary);margin:0 0 1rem;padding-right:2rem}.modal-info{background:var(--bg-secondary);border-radius:.5rem;padding:1rem;margin-bottom:1.5rem}.modal-info p{margin:0;font-size:.875rem;color:var(--text-secondary)}.modal-info p+p{margin-top:.5rem}.modal-info strong{color:var(--text-primary)}.modal-field{margin-bottom:1.25rem}.modal-field label{display:block;font-size:.875rem;font-weight:600;color:var(--text-secondary);margin-bottom:.5rem}.modal-field input[type=text],.modal-field input[type=number]{width:100%;padding:.75rem 1rem;font-size:.875rem;color:var(--text-primary);background:var(--bg-secondary);border:1px solid var(--border);border-radius:.5rem;transition:all .2s ease}.modal-field input:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-light)}.modal-differentiel{display:flex;justify-content:space-between;align-items:center;padding:1rem;background:var(--bg-secondary);border-radius:.5rem;margin-bottom:1.25rem}.diff-label{font-size:.875rem;color:var(--text-secondary)}.diff-value{font-size:1.125rem;font-weight:700}.diff-value.warning{color:var(--warning)}.diff-value.success{color:var(--success)}.file-upload{display:flex;gap:.5rem;align-items:center}.file-input{display:none}.file-button{display:inline-flex;align-items:center;gap:.5rem;padding:.75rem 1rem;font-size:.875rem;color:var(--text-secondary);background:var(--bg-secondary);border:1px dashed var(--border);border-radius:.5rem;cursor:pointer;transition:all .2s ease;flex:1}.file-button:hover{border-color:var(--primary);color:var(--primary)}.file-button svg{width:1rem;height:1rem}.file-remove{width:2rem;height:2rem;font-size:1.25rem;line-height:1;color:var(--danger);background:#ef44441a;border:none;border-radius:.375rem;cursor:pointer;transition:all .2s ease}.file-remove:hover{background:#ef444433}.file-hint{display:block;margin-top:.5rem;font-size:.75rem;color:var(--text-tertiary)}.modal-error{padding:.75rem 1rem;background:#ef44441a;border:1px solid var(--danger);border-radius:.5rem;color:var(--danger);font-size:.875rem;margin-bottom:1rem}.modal-actions{display:flex;gap:1rem;justify-content:flex-end;margin-top:1.5rem}.btn-cancel{padding:.75rem 1.5rem;font-size:.875rem;font-weight:600;color:var(--text-secondary);background:var(--bg-secondary);border:1px solid var(--border);border-radius:.5rem;cursor:pointer;transition:all .2s ease}.btn-cancel:hover{background:var(--bg-tertiary);color:var(--text-primary)}.btn-submit{padding:.75rem 1.5rem;font-size:.875rem;font-weight:600;color:#fff;background:linear-gradient(135deg,var(--primary) 0%,var(--primary-dark) 100%);border:none;border-radius:.5rem;cursor:pointer;transition:all .2s ease;box-shadow:0 4px 12px #6366f14d}.btn-submit:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 6px 20px #6366f166}.btn-submit:disabled{opacity:.7;cursor:not-allowed}.table-container{background:var(--card-bg);border-radius:1rem;padding:2rem;box-shadow:var(--shadow-lg);border:1px solid var(--border)}.table-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem}.table-header h2{font-size:1.5rem;font-weight:700;color:var(--text-primary);margin:0}.table-actions{display:flex;gap:.75rem}.btn-export,.btn-refresh{display:inline-flex;align-items:center;gap:.5rem;padding:.625rem 1rem;font-size:.875rem;font-weight:600;color:var(--text-secondary);background:var(--bg-secondary);border:1px solid var(--border);border-radius:.5rem;cursor:pointer;transition:all .2s ease}.btn-export:hover,.btn-refresh:hover{background:var(--bg-tertiary);color:var(--text-primary)}.btn-export svg,.btn-refresh svg{width:1rem;height:1rem}.btn-refresh.loading svg{animation:spin 1s linear infinite}.table-filters{display:flex;flex-wrap:wrap;gap:1rem;align-items:flex-end;margin-bottom:1.5rem;padding-bottom:1.5rem;border-bottom:1px solid var(--border)}.filter-group{display:flex;flex-direction:column;gap:.5rem}.filter-group label{font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--text-tertiary)}.filter-group select,.filter-group input{padding:.5rem .75rem;font-size:.875rem;color:var(--text-primary);background:var(--bg-secondary);border:1px solid var(--border);border-radius:.375rem;transition:all .2s ease}.filter-group select:focus,.filter-group input:focus{outline:none;border-color:var(--primary)}.filter-search{flex:1;min-width:200px}.filter-info{display:flex;flex-direction:column;gap:.25rem;margin-left:auto;text-align:right}.filter-info span{font-size:.75rem;color:var(--text-tertiary)}.last-refresh{opacity:.7}.table-loading,.table-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:4rem 2rem;color:var(--text-tertiary)}.table-loading .spinner{width:2rem;height:2rem;border:3px solid var(--border);border-top-color:var(--primary);border-radius:50%;animation:spin 1s linear infinite;margin-bottom:1rem}.table-empty svg{width:4rem;height:4rem;margin-bottom:1rem;opacity:.5}.table-empty p{font-size:1.125rem;font-weight:600;margin:0 0 .5rem}.table-empty span{font-size:.875rem}.table-wrapper{overflow-x:auto;margin:0 -2rem;padding:0 2rem}.chiffrage-table{width:100%;border-collapse:collapse;font-size:.875rem}.chiffrage-table th{text-align:left;padding:.75rem 1rem;font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--text-tertiary);background:var(--bg-secondary);border-bottom:1px solid var(--border);white-space:nowrap}.chiffrage-table th:first-child{border-radius:.5rem 0 0}.chiffrage-table th:last-child{border-radius:0 .5rem 0 0}.chiffrage-table td{padding:1rem;border-bottom:1px solid var(--border);vertical-align:top}.chiffrage-table tr:last-child td{border-bottom:none}.chiffrage-table tr:hover{background:#6366f10d}.cell-date{white-space:nowrap;font-size:.8125rem;color:var(--text-secondary)}.univers-badge{display:inline-block;padding:.25rem .5rem;font-size:.75rem;font-weight:600;border-radius:.25rem}.univers-vente{background:#6366f126;color:#818cf8}.univers-accessmh{background:#10b98126;color:#34d399}.univers-ece{background:#f59e0b26;color:#fbbf24}.univers-ecp{background:#ec489926;color:#f472b6}.univers-app{background:#0ea5e926;color:#38bdf8}.univers-vision{background:#a855f726;color:#c084fc}.univers-ia{background:#ef444426;color:#f87171}.cell-sujet{max-width:300px;font-weight:500;color:var(--text-primary)}.tailles-grid,.detail-grid{display:flex;flex-direction:column;gap:.25rem;font-size:.75rem;color:var(--text-secondary)}.taille-item abbr,.detail-grid abbr{text-decoration:none;font-weight:600}.cell-total{font-size:1.125rem;font-weight:700;color:var(--primary);white-space:nowrap}.attribues-info{display:block;font-size:.75rem;font-weight:500;color:var(--text-tertiary)}.badge{display:inline-block;padding:.375rem .75rem;font-size:.75rem;font-weight:600;border-radius:9999px}.badge-pending{background:#94a3b826;color:#94a3b8}.badge-success{background:#10b98126;color:#34d399}.badge-warning{background:#f59e0b26;color:#fbbf24}.cell-orchestra{font-family:monospace;font-size:.8125rem;color:var(--text-secondary)}.action-buttons{display:flex;flex-direction:column;gap:.375rem}.action-btn{padding:.375rem .75rem;font-size:.75rem;font-weight:600;border:none;border-radius:.375rem;cursor:pointer;transition:all .2s ease;white-space:nowrap}.action-attribues{background:#10b98126;color:#34d399}.action-attribues:hover{background:#10b98140}.action-partiel{background:#f59e0b26;color:#fbbf24}.action-partiel:hover{background:#f59e0b40}.action-delete{background:transparent;opacity:.5;margin-top:.5rem}.action-delete:hover{opacity:1}.action-done{font-size:.75rem;color:var(--text-tertiary);font-style:italic}.delete-confirm{display:flex;align-items:center;gap:.5rem;margin-top:.5rem;font-size:.75rem}.delete-confirm span{color:var(--danger)}.delete-confirm button{padding:.25rem .5rem;font-size:.7rem;font-weight:600;border:none;border-radius:.25rem;cursor:pointer}.delete-confirm button:first-of-type{background:var(--danger);color:#fff}.delete-confirm button:last-of-type{background:var(--bg-secondary);color:var(--text-secondary)}@media(max-width:1024px){.table-container{overflow-x:auto}.chiffrage-table{min-width:900px}}:root{--primary: #6366f1;--primary-light: rgba(99, 102, 241, .15);--primary-dark: #4f46e5;--success: #10b981;--warning: #f59e0b;--danger: #ef4444;--bg-primary: #0f172a;--bg-secondary: #1e293b;--bg-tertiary: #334155;--card-bg: rgba(30, 41, 59, .8);--text-primary: #f1f5f9;--text-secondary: #94a3b8;--text-tertiary: #64748b;--border: rgba(148, 163, 184, .2);--shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .3), 0 2px 4px -2px rgba(0, 0, 0, .3);--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .3), 0 4px 6px -4px rgba(0, 0, 0, .3);--font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif}*,*:before,*:after{box-sizing:border-box}html{font-size:16px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{margin:0;padding:0;font-family:var(--font-family);background:var(--bg-primary);color:var(--text-primary);line-height:1.5;min-height:100vh}body:before{content:"";position:fixed;top:0;left:0;right:0;height:100vh;background:radial-gradient(ellipse at 20% 20%,rgba(99,102,241,.15) 0%,transparent 50%),radial-gradient(ellipse at 80% 80%,rgba(139,92,246,.1) 0%,transparent 50%);pointer-events:none;z-index:-1}#root{min-height:100vh;display:flex;flex-direction:column}.app{display:flex;flex-direction:column;min-height:100vh}.app-header{background:#0f172ae6;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:100}.header-content{max-width:1400px;margin:0 auto;padding:1rem 2rem;display:flex;justify-content:space-between;align-items:center}.header-brand{display:flex;align-items:center;gap:1rem}.logo{width:3rem;height:3rem;background:linear-gradient(135deg,var(--primary) 0%,#8b5cf6 100%);border-radius:.75rem;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 12px #6366f166}.logo svg{width:1.5rem;height:1.5rem;color:#fff}.brand-text h1{font-size:1.25rem;font-weight:700;margin:0;background:linear-gradient(135deg,#f1f5f9,#94a3b8);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.brand-text p{font-size:.75rem;color:var(--text-tertiary);margin:0}.header-status{display:flex;align-items:center}.status-indicator{display:inline-flex;align-items:center;gap:.5rem;padding:.375rem .75rem;font-size:.75rem;font-weight:600;border-radius:9999px}.status-indicator:before{content:"";width:.5rem;height:.5rem;border-radius:50%}.status-indicator.online{background:#10b98126;color:#34d399}.status-indicator.online:before{background:#34d399;box-shadow:0 0 8px #34d39999}.status-indicator.offline{background:#ef444426;color:#f87171}.status-indicator.offline:before{background:#f87171;animation:pulse 2s ease-in-out infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.app-main{flex:1;max-width:1400px;width:100%;margin:0 auto;padding:2rem;display:flex;flex-direction:column;gap:2rem}.error-banner{padding:1rem 1.5rem;background:#ef44441a;border:1px solid var(--danger);border-radius:.5rem;color:#f87171;font-size:.875rem;font-weight:500}.error-banner.config-error{max-width:600px;margin:2rem auto;text-align:left}.error-banner.config-error h2{margin:0 0 1rem;font-size:1.25rem}.error-banner.config-error p{margin:.5rem 0;font-size:.9rem}.error-banner.config-error code{background:#0000004d;padding:.125rem .375rem;border-radius:.25rem;font-family:monospace}.error-banner.config-error pre{background:#0000004d;padding:.75rem 1rem;border-radius:.5rem;margin:1rem 0;font-family:monospace;font-size:.85rem;overflow-x:auto}.app-footer{background:var(--bg-secondary);border-top:1px solid var(--border);padding:1rem 2rem;text-align:center}.app-footer p{margin:0;font-size:.75rem;color:var(--text-tertiary)}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:var(--bg-secondary)}::-webkit-scrollbar-thumb{background:var(--bg-tertiary);border-radius:4px}::-webkit-scrollbar-thumb:hover{background:var(--text-tertiary)}:focus-visible{outline:2px solid var(--primary);outline-offset:2px}::selection{background:var(--primary);color:#fff}@media(max-width:768px){.header-content{padding:.75rem 1rem}.app-main{padding:1rem}.brand-text h1{font-size:1rem}.brand-text p{display:none}}
