*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}:root{--primary: #1a73e8;--primary-dk: #1557b0;--success: #34a853;--warning: #f9a825;--danger: #ea4335;--info: #4285f4;--bg: #f5f7fa;--surface: #ffffff;--border: #e0e4ea;--text: #202124;--text-muted: #5f6368;--radius: 10px;--shadow: 0 2px 8px rgba(0,0,0,.1);--bottom-nav-h: 60px}html{font-size:16px}body{font-family:Segoe UI,system-ui,-apple-system,sans-serif;background:var(--bg);color:var(--text);-webkit-text-size-adjust:100%}.app-layout{display:flex;flex-direction:column;min-height:100dvh;padding-bottom:var(--bottom-nav-h)}.app-header{background:var(--primary);color:#fff;padding:0 16px;display:flex;align-items:center;justify-content:space-between;height:52px;box-shadow:0 2px 6px #0003;position:sticky;top:0;z-index:50}.app-header h1{font-size:17px;font-weight:700}.header-right{display:flex;align-items:center;gap:10px}.header-user{font-size:13px;opacity:.9;display:none}@media(min-width:480px){.header-user{display:inline}}.tab-nav{background:var(--surface);border-bottom:2px solid var(--border);display:none;gap:2px;padding:0 16px;overflow-x:auto}@media(min-width:640px){.tab-nav{display:flex}}.tab-btn{padding:14px 18px;border:none;background:none;cursor:pointer;font-size:13px;font-weight:500;color:var(--text-muted);border-bottom:3px solid transparent;margin-bottom:-2px;white-space:nowrap;transition:color .15s,border-color .15s}.tab-btn:hover{color:var(--primary)}.tab-btn.active{color:var(--primary);border-bottom-color:var(--primary)}.bottom-nav{position:fixed;bottom:0;left:0;right:0;height:var(--bottom-nav-h);background:var(--surface);border-top:1px solid var(--border);display:flex;align-items:stretch;z-index:100;box-shadow:0 -2px 8px #00000014}@media(min-width:640px){.bottom-nav{display:none}}.bnav-btn{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:none;background:none;cursor:pointer;color:var(--text-muted);font-size:10px;font-weight:500;padding:4px 2px;transition:color .15s;-webkit-tap-highlight-color:transparent}.bnav-btn.active{color:var(--primary)}.bnav-btn svg{width:22px;height:22px}.page-content{padding:14px 12px;flex:1}@media(min-width:640px){.page-content{padding:20px 24px}}.card{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);border:1px solid var(--border);padding:16px;margin-bottom:14px}.card-title{font-size:15px;font-weight:600;margin-bottom:14px}.stat-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:16px}@media(min-width:480px){.stat-grid{grid-template-columns:repeat(3,1fr)}}@media(min-width:800px){.stat-grid{grid-template-columns:repeat(4,1fr)}}.stat-tile{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);padding:14px;border-left:4px solid var(--primary)}.stat-tile.green{border-left-color:var(--success)}.stat-tile.yellow{border-left-color:var(--warning)}.stat-tile.red{border-left-color:var(--danger)}.stat-tile.blue{border-left-color:var(--info)}.stat-tile .label{font-size:11px;text-transform:uppercase;letter-spacing:.5px;color:var(--text-muted);margin-bottom:4px}.stat-tile .value{font-size:22px;font-weight:700}button,.btn{cursor:pointer;border:none;border-radius:var(--radius);padding:10px 18px;font-size:14px;font-weight:500;min-height:44px;display:inline-flex;align-items:center;justify-content:center;transition:background .15s;-webkit-tap-highlight-color:transparent;touch-action:manipulation}.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover{background:var(--primary-dk)}.btn-success{background:var(--success);color:#fff}.btn-danger{background:var(--danger);color:#fff}.btn-danger:hover{background:#c5221f}.btn-secondary{background:var(--border);color:var(--text)}.btn-secondary:hover{background:#cdd1d8}.btn-sm{padding:7px 12px;font-size:13px;min-height:36px}.logout-btn{background:#fff3;color:#fff;border:1px solid rgba(255,255,255,.4);padding:7px 14px;border-radius:var(--radius);min-height:38px;font-size:13px}.logout-btn:hover{background:#ffffff4d}.form-grid{display:grid;grid-template-columns:1fr;gap:12px}@media(min-width:520px){.form-grid{grid-template-columns:repeat(2,1fr)}}@media(min-width:800px){.form-grid{grid-template-columns:repeat(3,1fr)}}.form-group{display:flex;flex-direction:column;gap:6px}.form-group label{font-size:13px;font-weight:500;color:var(--text-muted)}.form-group input,.form-group select,.form-group textarea{padding:10px 14px;border:1.5px solid var(--border);border-radius:var(--radius);font-size:16px;background:var(--surface);color:var(--text);min-height:46px;transition:border-color .15s;width:100%}.form-group input:focus,.form-group select:focus,.form-group textarea:focus{outline:none;border-color:var(--primary)}.form-actions{display:flex;gap:10px;margin-top:18px;flex-wrap:wrap}.form-actions button{flex:1;min-width:120px}.filters{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}@media(min-width:640px){.filters{display:flex;flex-wrap:wrap;align-items:flex-end}.filters .form-group{min-width:150px}}.filters input,.filters select{font-size:16px;height:44px}.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}table{width:100%;border-collapse:collapse;font-size:14px}th{background:#f0f2f5;text-align:left;padding:10px 12px;font-weight:600;font-size:12px;color:var(--text-muted);border-bottom:2px solid var(--border);white-space:nowrap}td{padding:11px 12px;border-bottom:1px solid var(--border);vertical-align:middle}tr:last-child td{border-bottom:none}tr:hover td{background:#f8f9fb}.td-actions{display:flex;gap:6px;flex-wrap:wrap}@media(max-width:639px){.table-wrap{overflow:visible}table,thead,tbody,tr,td{display:block;width:100%}thead{display:none}tbody tr{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);border:1px solid var(--border);margin-bottom:10px;padding:4px 0}tbody tr:hover{background:var(--surface)}td{display:flex;justify-content:space-between;align-items:center;padding:10px 14px;border-bottom:1px solid #f0f2f5;font-size:14px;gap:8px;min-height:44px}td:last-child{border-bottom:none}td:before{content:attr(data-label);font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.4px;color:var(--text-muted);flex:0 0 90px;line-height:1.2}td[data-label=""]{justify-content:flex-end;padding-top:8px;padding-bottom:12px}td[data-label=""]:before{display:none}.td-actions{gap:8px}.td-actions .btn-sm{min-height:40px;padding:8px 14px;font-size:13px}.empty{padding:24px 0}}.badge{display:inline-block;padding:4px 10px;border-radius:20px;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.4px}.badge-termine{background:#e6f4ea;color:#1e7e34}.badge-en_cours{background:#e8f0fe;color:#1a56db}.badge-en_attente{background:#fef9e7;color:#856404}.badge-annule{background:#fce8e6;color:#c5221f}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;display:flex;align-items:flex-end;justify-content:center;z-index:200;padding:0}@media(min-width:640px){.modal-overlay{align-items:center;padding:16px}}.modal{background:var(--surface);width:100%;max-height:94dvh;overflow-y:auto;border-radius:20px 20px 0 0;box-shadow:0 -4px 24px #0000002e;padding-top:8px}.modal:before{content:"";display:block;width:40px;height:4px;background:#d0d4db;border-radius:2px;margin:0 auto 8px}@media(min-width:640px){.modal{border-radius:var(--radius);max-width:780px;padding-top:0}.modal:before{display:none}}.modal-header{padding:14px 18px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;background:var(--surface);z-index:1}.modal-header h2{font-size:16px;font-weight:600}.modal-body{padding:16px 18px}.modal-footer{padding:12px 18px 16px;border-top:1px solid var(--border);display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}.modal-footer button{flex:1;min-width:120px}.close-btn{background:none;border:none;font-size:24px;cursor:pointer;color:var(--text-muted);line-height:1;padding:4px;min-height:auto;width:36px;height:36px}.mat-row{display:flex;gap:8px;align-items:center;margin-bottom:10px;flex-wrap:wrap}.mat-row select{flex:2 1 150px;font-size:16px;min-height:44px}.mat-row input{flex:1 1 70px;font-size:16px;min-height:44px;padding:8px 10px;border:1.5px solid var(--border);border-radius:var(--radius)}.mat-row .btn-danger{flex:0 0 auto;min-height:44px}.login-wrap{display:flex;align-items:center;justify-content:center;min-height:100dvh;background:var(--bg);padding:16px}.login-box{background:var(--surface);padding:32px 24px;border-radius:16px;box-shadow:var(--shadow);width:100%;max-width:380px}.login-box h1{font-size:22px;margin-bottom:6px;text-align:center}.login-box p{color:var(--text-muted);text-align:center;margin-bottom:24px;font-size:14px}.login-box .form-group{margin-bottom:14px}.login-box button{width:100%;margin-top:8px;min-height:48px;font-size:16px}.login-error{color:var(--danger);font-size:13px;margin-top:10px;text-align:center}.page-title-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;gap:10px;flex-wrap:wrap}.page-title-row h2{font-size:16px;font-weight:700}.page-title-row .btn-group{display:flex;gap:8px;flex-wrap:wrap}.bar-chart{display:flex;flex-direction:column;gap:10px}.bar-row{display:flex;align-items:center;gap:8px;font-size:12px}.bar-label{width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right;color:var(--text-muted);flex-shrink:0}.bar-track{flex:1;background:#eef0f4;border-radius:4px;height:18px;min-width:0}.bar-fill{height:100%;border-radius:4px;background:var(--primary);transition:width .4s}.bar-val{width:80px;font-weight:600;color:var(--text);flex-shrink:0}.empty{text-align:center;padding:36px 16px;color:var(--text-muted);font-size:14px}
