*{box-sizing:border-box;margin:0;padding:0}:root{--green: #2e7d32;--green-dark: #1b5e20;--green-light: #4caf50;--orange: #ff9800;--orange-dark: #e65100;--blue: #1976d2;--red: #e53935;--gray-bg: #f5f7fa;--gray-border: #e0e6ed;--gray-soft: #f9fafb;--text: #1a2733;--text-light: #5a6878;--white: #ffffff;--shadow: 0 2px 8px rgba(0, 0, 0, .06);--shadow-strong: 0 4px 16px rgba(0, 0, 0, .1)}html,body,#root{height:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica Neue,Arial,sans-serif;color:var(--text);background:var(--gray-bg);font-size:15px}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}button{cursor:pointer;font-family:inherit;font-size:inherit}.auth-page{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#e8f5e9,#fff3e0);padding:20px}.auth-card{background:var(--white);border-radius:18px;padding:32px 28px;box-shadow:var(--shadow-strong);max-width:420px;width:100%}.auth-card h1{color:var(--green-dark);margin-bottom:6px;font-size:22px}.auth-sub{color:var(--text-light);margin-bottom:22px;font-size:14px}.auth-card form{display:flex;flex-direction:column;gap:14px}.auth-card label{display:flex;flex-direction:column;font-size:13px;font-weight:600;color:var(--text);gap:6px}.auth-card input{border:2px solid var(--gray-border);border-radius:10px;padding:10px 12px;font-size:15px;font-family:inherit;outline:none;transition:border-color .2s}.auth-card input:focus{border-color:var(--green-light)}.auth-card button[type=submit]{background:var(--green);color:var(--white);border:none;padding:12px 16px;border-radius:10px;font-weight:700;font-size:15px;margin-top:6px;transition:background .2s}.auth-card button[type=submit]:hover:not(:disabled){background:var(--green-dark)}.auth-card button[type=submit]:disabled{opacity:.6;cursor:not-allowed}.auth-error{color:var(--red);font-size:14px;background:#ffebee;padding:10px;border-radius:8px}.auth-alt{text-align:center;font-size:14px;color:var(--text-light);margin-top:4px}.layout{display:flex;height:100vh}.sidebar{width:240px;background:var(--white);border-right:1px solid var(--gray-border);display:flex;flex-direction:column;padding:16px 0;flex-shrink:0}.sidebar-head{display:flex;align-items:center;gap:10px;padding:0 18px 18px;border-bottom:1px solid var(--gray-border);font-size:17px}.sidebar-logo{font-size:24px}.sidebar nav{display:flex;flex-direction:column;padding:12px 8px;gap:2px;flex:1}.nav-link{display:block;padding:10px 14px;border-radius:8px;color:var(--text);font-size:14px;font-weight:500;text-decoration:none;transition:background .15s}.nav-link:hover{background:var(--gray-soft);text-decoration:none}.nav-link.active{background:#e8f5e9;color:var(--green-dark);font-weight:700}.sidebar-foot{padding:16px;border-top:1px solid var(--gray-border);display:flex;flex-direction:column;gap:10px}.user{display:flex;flex-direction:column}.user-name{font-weight:600;font-size:13px}.user-role{font-size:11px;color:var(--text-light);text-transform:uppercase;letter-spacing:.5px}.btn-logout{background:transparent;border:1px solid var(--gray-border);border-radius:8px;padding:7px 12px;font-size:13px;color:var(--text-light);transition:all .15s}.btn-logout:hover{background:var(--red);color:var(--white);border-color:var(--red)}.content{flex:1;overflow:auto;background:var(--gray-bg)}.carte-page{display:flex;flex-direction:column;height:100%}.carte-head{padding:16px 24px;background:var(--white);border-bottom:1px solid var(--gray-border)}.carte-head h1{font-size:20px;color:var(--green-dark)}.carte-sub{color:var(--text-light);font-size:13px;margin-top:2px}.carte-body{flex:1;display:flex;overflow:hidden}.map-editor{flex:1;position:relative;background:#1a1a1a}.map-canvas{width:100%;height:100%}.leaflet-container{background:#f0f0f0}.balise-pin-wrapper{background:transparent!important;border:none!important}.balise-pin{width:32px;height:32px;background:var(--orange);color:var(--white);border:3px solid var(--white);border-radius:50% 50% 50% 0;transform:rotate(-45deg);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:13px;box-shadow:0 2px 6px #0000004d;position:relative;top:-16px;left:-16px}.balise-pin>*{transform:rotate(45deg)}.balise-pin.selected{background:var(--green);width:38px;height:38px;top:-19px;left:-19px;z-index:1000}.balises-panel{width:320px;background:var(--white);border-left:1px solid var(--gray-border);padding:18px;overflow-y:auto;flex-shrink:0}.balises-panel h3{font-size:14px;text-transform:uppercase;color:var(--text-light);letter-spacing:.5px;margin-bottom:12px}.hint{color:var(--text-light);font-size:13px;font-style:italic}.balises-list{list-style:none;display:flex;flex-direction:column;gap:6px;margin-bottom:18px}.balise-row{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:8px;background:var(--gray-soft);cursor:pointer;font-size:13px;transition:background .15s}.balise-row:hover{background:#eef3ee}.balise-row.selected{background:#e8f5e9;outline:2px solid var(--green-light)}.balise-num{width:22px;height:22px;background:var(--orange);color:var(--white);border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-weight:800;font-size:11px;flex-shrink:0}.balise-nom{flex:1;font-weight:500}.balise-pos{color:var(--text-light);font-size:11px;font-family:monospace}.balise-edit{background:var(--gray-soft);border-radius:10px;padding:14px;display:flex;flex-direction:column;gap:10px}.balise-edit h4{font-size:13px;text-transform:uppercase;color:var(--text-light);letter-spacing:.5px}.balise-edit label{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--text-light)}.balise-edit input{border:1px solid var(--gray-border);border-radius:6px;padding:8px 10px;font-size:14px;font-family:inherit}.balise-edit input:focus{outline:none;border-color:var(--green-light)}.balise-id{font-size:11px;color:var(--text-light);word-break:break-all}.balise-id code{font-family:monospace;background:#0000000d;padding:1px 4px;border-radius:3px}.btn-danger{background:transparent;border:1px solid var(--red);color:var(--red);border-radius:8px;padding:8px 12px;font-size:13px;font-weight:600;margin-top:4px;transition:all .15s}.btn-danger:hover{background:var(--red);color:var(--white)}.questions-page{padding:24px}.questions-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:18px}.questions-head h1{font-size:22px;color:var(--green-dark)}.questions-sub{color:var(--text-light);font-size:13px;margin-top:2px}.questions-actions{display:flex;gap:8px}.btn-primary{background:var(--green);color:var(--white);border:none;padding:9px 16px;border-radius:8px;font-weight:600;font-size:14px;cursor:pointer;transition:background .15s}.btn-primary:hover:not(:disabled){background:var(--green-dark)}.btn-primary:disabled{opacity:.5;cursor:not-allowed}.btn-secondary{background:var(--white);border:1px solid var(--gray-border);color:var(--text);padding:9px 16px;border-radius:8px;font-weight:600;font-size:14px;cursor:pointer;transition:all .15s}.btn-secondary:hover{background:var(--gray-soft)}.questions-filters{display:flex;gap:10px;margin-bottom:14px;flex-wrap:wrap}.questions-filters select,.questions-filters input{border:1px solid var(--gray-border);border-radius:8px;padding:8px 12px;font-size:14px;font-family:inherit;background:var(--white)}.questions-filters input[type=search]{flex:1;min-width:200px}.questions-empty{background:var(--white);border-radius:12px;padding:40px;text-align:center;color:var(--text-light)}.questions-empty p{margin-bottom:16px}.questions-table{width:100%;background:var(--white);border-radius:12px;border-collapse:separate;border-spacing:0;overflow:hidden;box-shadow:var(--shadow)}.questions-table th,.questions-table td{padding:12px 10px;text-align:left;border-bottom:1px solid var(--gray-border);font-size:13px}.questions-table th{background:var(--gray-soft);font-size:11px;text-transform:uppercase;letter-spacing:.5px;color:var(--text-light);font-weight:600}.questions-table tbody tr:hover{background:var(--gray-soft)}.questions-table tbody tr:last-child td{border-bottom:none}.cell-emoji{font-size:18px;text-align:center;width:36px}.cell-texte{max-width:380px;font-weight:500}.cell-indice{font-size:11px;color:var(--text-light);font-style:italic;margin-top:3px}.cell-reponses{max-width:200px;color:var(--text-light)}.cell-diff{color:var(--orange);font-family:monospace}.cell-actions{white-space:nowrap;text-align:right}.cell-actions button{background:transparent;border:none;font-size:16px;cursor:pointer;padding:4px 6px;border-radius:4px}.cell-actions button:hover{background:var(--gray-border)}.muted{color:var(--text-light);font-size:11px}.badge{display:inline-block;padding:2px 8px;border-radius:99px;font-size:11px;font-weight:600}.badge-niveau{background:#e3f2fd;color:var(--blue)}.badge-matiere{background:#fff3e0;color:var(--orange-dark)}.pagination{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:14px;font-size:13px;color:var(--text-light)}.pagination button{background:var(--white);border:1px solid var(--gray-border);border-radius:6px;padding:5px 10px;cursor:pointer;font-size:12px}.pagination button:hover:not(:disabled){background:var(--gray-soft)}.pagination button:disabled{opacity:.4;cursor:not-allowed}.modal-backdrop{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;padding:20px;z-index:1000}.modal-form{background:var(--white);border-radius:16px;padding:24px;max-width:560px;width:100%;max-height:calc(100vh - 40px);overflow-y:auto;box-shadow:var(--shadow-strong)}.modal-form-wide{max-width:720px}.modal-form h2{font-size:18px;color:var(--green-dark);margin-bottom:14px}.modal-hint{color:var(--text-light);font-size:13px;margin-bottom:14px}.modal-form form{display:flex;flex-direction:column;gap:14px}.modal-form label{display:flex;flex-direction:column;gap:6px}.modal-form label>span{font-size:12px;font-weight:600;color:var(--text);text-transform:uppercase;letter-spacing:.4px}.modal-form label>span small{font-weight:400;text-transform:none;letter-spacing:0;color:var(--text-light)}.modal-form input:not([type=checkbox]):not([type=radio]),.modal-form select,.modal-form textarea{border:1px solid var(--gray-border);border-radius:8px;padding:9px 11px;font-size:14px;font-family:inherit;width:100%}.modal-form input[type=checkbox],.modal-form input[type=radio]{width:auto;flex-shrink:0}.modal-form input:focus,.modal-form select:focus,.modal-form textarea:focus{outline:none;border-color:var(--green-light)}.modal-form textarea{resize:vertical;min-height:60px}.json-input{font-family:Consolas,Monaco,monospace;font-size:12px;background:#fafafa}.form-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px}.reponses-list{display:flex;flex-direction:column;gap:6px}.reponse-row{display:flex;gap:6px}.reponse-row input{flex:1}.btn-remove{background:transparent;border:1px solid var(--gray-border);border-radius:6px;padding:0 10px;font-size:18px;color:var(--red);cursor:pointer}.btn-remove:hover{background:var(--red);color:var(--white)}.btn-add{background:transparent;border:1px dashed var(--gray-border);border-radius:6px;padding:8px;color:var(--text-light);cursor:pointer;font-size:13px;align-self:flex-start}.btn-add:hover{border-color:var(--green-light);color:var(--green-dark)}.form-error{color:var(--red);background:#ffebee;padding:10px;border-radius:8px;font-size:13px}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:6px}.parcours-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px}.parcours-card{background:var(--white);border-radius:12px;padding:16px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:10px}.parcours-head{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}.parcours-head h3{font-size:15px;color:var(--green-dark)}.parcours-config{display:flex;flex-wrap:wrap;gap:6px}.cfg-chip{background:var(--gray-soft);border-radius:99px;padding:3px 10px;font-size:11px;color:var(--text-light)}.parcours-actions{display:flex;gap:6px;margin-top:auto}.parcours-actions a,.parcours-actions button{flex:1;padding:8px 12px;border-radius:8px;font-size:13px;font-weight:600;text-align:center;text-decoration:none;border:1px solid var(--gray-border);background:var(--white);color:var(--text);cursor:pointer}.parcours-actions a:hover{background:var(--gray-soft)}.btn-danger-small{flex:0 0 auto!important;color:var(--red)!important;border-color:var(--red)!important;background:transparent!important;font-size:16px!important;padding:4px 12px!important}.btn-danger-small:hover{background:var(--red)!important;color:var(--white)!important}.btn-back{background:transparent;border:none;color:var(--text-light);font-size:13px;cursor:pointer;margin-bottom:4px}.btn-back:hover{color:var(--green-dark)}.config-fieldset{border:1px solid var(--gray-border);border-radius:10px;padding:12px 14px;display:flex;flex-direction:column;gap:10px}.config-fieldset legend{padding:0 8px;font-size:11px;text-transform:uppercase;letter-spacing:.5px;color:var(--text-light);font-weight:600}.config-hint{font-size:11px;color:var(--text-light);margin-top:4px}.checkbox-row{flex-direction:row!important;align-items:center;gap:8px!important}.checkbox-row input{width:auto!important}.checkbox-row span{text-transform:none!important;letter-spacing:0!important}.parcours-pin.covered{background:var(--green)!important;box-shadow:0 2px 6px #0000004d!important}.parcours-pin.empty{background:var(--gray-border)!important;color:var(--text-light)!important}.parcours-pin.selected{outline:3px solid var(--orange)}.balise-row.covered{border-left:3px solid var(--green-light)}.assigned-questions{list-style:none;display:flex;flex-direction:column;gap:6px;padding:0;margin:12px 0}.assigned-q{display:flex;align-items:center;gap:8px;padding:8px 10px;background:var(--gray-soft);border-radius:8px;font-size:12px}.aq-emoji{font-size:16px;flex-shrink:0}.aq-text{flex:1;line-height:1.3}.aq-remove{background:transparent;border:1px solid var(--gray-border);border-radius:4px;width:22px;height:22px;font-size:16px;cursor:pointer;color:var(--red);flex-shrink:0}.aq-remove:hover{background:var(--red);color:var(--white)}.empty-questions{color:var(--text-light);font-style:italic;font-size:13px;text-align:center;padding:16px;background:var(--gray-soft);border-radius:8px}.picker-filters{display:flex;gap:8px;margin-bottom:12px;flex-wrap:wrap}.picker-filters select,.picker-filters input{border:1px solid var(--gray-border);border-radius:8px;padding:7px 11px;font-size:13px;font-family:inherit}.picker-filters input[type=search]{flex:1;min-width:160px}.picker-results{max-height:50vh;min-height:200px;overflow-y:auto;border:1px solid var(--gray-border);border-radius:10px;background:var(--gray-soft)}.picker-list{list-style:none;display:flex;flex-direction:column}.picker-item{display:flex;align-items:center;gap:10px;padding:10px 12px;border-bottom:1px solid var(--gray-border);cursor:pointer;background:var(--white);transition:background .1s;width:100%;box-sizing:border-box;min-width:0}.picker-results,.picker-list{width:100%;box-sizing:border-box}.picker-content{overflow:hidden}.picker-text{font-weight:500;font-size:13px;line-height:1.3;margin-bottom:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.picker-meta{flex-wrap:wrap}.picker-item:hover{background:#eef3ee}.picker-item.picked{background:#e8f5e9}.picker-item:last-child{border-bottom:none}.picker-item input[type=checkbox]{flex-shrink:0}.picker-content{flex:1;min-width:0}.picker-text{font-weight:500;font-size:13px;line-height:1.3;margin-bottom:4px}.picker-meta{display:flex;gap:4px;flex-wrap:wrap}.session-card{background:var(--white);border-radius:12px;padding:16px;box-shadow:var(--shadow);text-decoration:none;color:var(--text);display:flex;flex-direction:column;gap:8px;transition:transform .15s,box-shadow .15s}.session-card:hover{text-decoration:none;transform:translateY(-2px);box-shadow:var(--shadow-strong)}.session-meta{font-size:12px;color:var(--text-light)}.session-info{background:var(--white);border-radius:10px;padding:14px 18px;margin-bottom:20px;border:1px solid var(--gray-border)}.info-row{font-size:13px;color:var(--text)}.mot-secret{background:#fff3e0;color:var(--orange-dark);padding:3px 10px;border-radius:6px;font-family:Consolas,monospace;font-weight:700;letter-spacing:.5px}.code-acces{background:var(--gray-soft);padding:4px 10px;border-radius:6px;font-family:Consolas,monospace;font-weight:700;font-size:13px;color:var(--green-dark);display:inline-block}.badge.stat-prep{background:#e3f2fd;color:var(--blue)}.badge.stat-active{background:#e8f5e9;color:var(--green-dark);animation:pulse 2s infinite}.badge.stat-done{background:var(--gray-soft);color:var(--text-light)}@keyframes pulse{0%,to{opacity:1}50%{opacity:.6}}.groupes-section{background:var(--white);border-radius:12px;padding:18px;box-shadow:var(--shadow)}.section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.section-head h2{font-size:16px;color:var(--green-dark)}.dashboard-controls{display:flex;align-items:center;gap:12px}.last-fetch{font-size:12px;color:var(--text-light)}.metric-warn{color:var(--orange-dark);font-weight:700}.dash-card{background:var(--white);border-radius:12px;padding:16px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:10px;border-top:4px solid var(--green);transition:border-color .3s}.dash-card.has-blocus{border-top-color:var(--orange);animation:pulse-card 2s infinite}@keyframes pulse-card{0%,to{box-shadow:var(--shadow)}50%{box-shadow:0 4px 16px #ff98004d}}.dash-card-head{display:flex;justify-content:space-between;align-items:center}.dash-card-nom{font-size:16px;color:var(--green-dark);margin-top:4px}.dash-card-parcours{font-size:13px;color:var(--text-light)}.dash-card-stats{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}.dash-card-foot{border-top:1px solid var(--gray-border);padding-top:8px;font-size:11px}.progress-mini{display:flex;align-items:center;gap:8px}.progress-mini-bar{flex:1;background:var(--gray-border);height:8px;border-radius:4px;overflow:hidden}.progress-mini-fill{background:var(--green-light);height:100%;transition:width .5s}.progress-mini-label{font-size:12px;color:var(--text-light);font-weight:600}.chip-yellow{background:#fff8e1;color:#b25f00}.chip-red{background:#ffebee;color:var(--red)}.blocus-list{background:var(--gray-soft);border-radius:8px;padding:8px;display:flex;flex-direction:column;gap:6px}.blocus-item{display:flex;justify-content:space-between;align-items:center;background:var(--white);padding:8px 10px;border-radius:6px;gap:8px}.blocus-balise{font-size:13px;font-weight:600}.blocus-since{font-size:11px}.btn-unblock{background:var(--orange);color:var(--white);border:none;border-radius:6px;padding:6px 10px;font-size:12px;font-weight:700;cursor:pointer;flex-shrink:0}.btn-unblock:hover{background:var(--orange-dark)}.page-loading,.page-error,.page-placeholder{padding:60px 30px;text-align:center;color:var(--text-light)}.page-placeholder h1{font-size:22px;color:var(--green-dark);margin-bottom:10px}.page-error{color:var(--red)}
