
.taches{color:var(--txt,#232838);font-family:var(--font-ui,Inter,system-ui,sans-serif);max-width:720px;margin:0 auto;padding:4px 0;background:transparent}
.taches *{box-sizing:border-box}
.taches [hidden]{display:none!important}
.taches-entete,.taches-saisie,.taches-actions,.taches-dates{display:flex;align-items:center;gap:10px}
.taches-entete{justify-content:space-between}
.taches h2{font-size:13px;font-weight:600;color:var(--mut,#7B8195);margin:0}
.taches-intro{font-size:14px;color:var(--mut,#7B8195);margin:6px 0 20px}
.taches button,.taches input{font:inherit;font-size:14px;color:inherit;border:1px solid var(--line,#ECE9E1);border-radius:12px;background:var(--card2,#FBFAF7);min-height:44px;padding:10px 12px}
.taches button{cursor:pointer}
.taches button:disabled{opacity:.55;cursor:wait}
.taches button.taches-principal{color:#fff;background:#0E8459;border-color:#0E8459;font-weight:600}
.taches button.taches-suppression{background:var(--card2,#FBFAF7);color:var(--txt,#232838);border-color:var(--sand,#D8C7A2)}
.taches :focus-visible{outline:2px solid var(--accent-d,#0E8459);outline-offset:3px;box-shadow:none}
.taches-creation>label,.taches-dates label{font-size:13px;display:block;margin-bottom:6px}
.taches-saisie input{flex:1;min-width:0;width:100%}
.taches .taches-creation{margin-top:12px}
.taches details{font-size:13px}
.taches .taches-creation details{margin-top:10px}
.taches summary{cursor:pointer;padding:5px 0}
.taches-dates{align-items:flex-start;flex-wrap:wrap;margin-top:10px}
.taches-dates label{flex:1;min-width:140px}
.taches-dates input{display:block;width:100%;margin-top:5px}
.taches-message,.taches-dialogue-message{font-size:13px;color:var(--txt,#232838);line-height:1.5}
.taches-message:empty,.taches-dialogue-message:empty{display:none}
.taches-liste{list-style:none;padding:0;margin:0}
.taches-liste li{display:flex;align-items:center;gap:8px;padding:3px 0;border-bottom:1px solid var(--line,#ECE9E1)}
.taches-liste li>label{display:flex;align-items:center;flex:none;cursor:pointer}
.taches button.taches-titre{flex:1;min-width:0;text-align:left;border:0;background:transparent;padding:6px 0;overflow-wrap:anywhere;font-weight:400}
.taches-liste span{overflow-wrap:anywhere}
.taches-liste input[type="checkbox"]{flex:none;width:20px;height:20px;min-height:0;padding:0;accent-color:var(--accent-d,#0E8459)}
.taches-liste time{font-size:13px}
.taches-actions{flex:none}
.taches-actions button{font-size:12px;padding:8px 10px}
.taches-menu{position:relative;flex:none;margin:0}
.taches-menu>summary{list-style:none;min-width:44px;min-height:44px;text-align:center;line-height:34px;padding:4px;border-radius:10px;font-size:20px;color:var(--mut,#7B8195)}
.taches-menu>summary::-webkit-details-marker{display:none}
.taches-options{position:absolute;top:100%;right:0;z-index:20;min-width:160px;border:1px solid var(--line,#ECE9E1);border-radius:12px;background:var(--card,#fff);padding:5px;box-shadow:0 6px 18px rgba(35,40,56,.08)}
.taches-options button{width:100%;text-align:left;border:0;background:transparent}
.taches-vide{font-size:14px;color:var(--mut,#7B8195)}
.taches dialog{width:min(430px,calc(100% - 32px));max-height:calc(100dvh - 40px);overflow:auto;border:1px solid var(--line,#ECE9E1);border-radius:20px;padding:24px;background:var(--card,#fff);color:var(--txt,#232838)}
.taches dialog::backdrop{background:rgba(35,40,56,.35)}
.taches h3{font-size:19px;line-height:1.4;overflow-wrap:anywhere;margin:0 0 18px}
.taches dialog .taches-actions{justify-content:flex-end;margin-top:18px}
.taches-detail{display:flex;flex-direction:column;gap:8px}
.taches-detail p,.taches-creneaux{font-size:13px;line-height:1.6;overflow-wrap:anywhere;color:var(--mut,#7B8195)}
.taches-placees{list-style:none;padding:0;margin:0}
.taches-placees:empty{display:none}
.taches-placees li{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid var(--line,#ECE9E1)}
.taches-placees li>button:first-child{flex:1;min-width:0;text-align:left;overflow-wrap:anywhere}
@media(max-width:480px){.taches-creation .taches-saisie{gap:8px}.taches-liste li>label{font-size:14px}}
.taches-carte-grille{display:flex;align-items:center;gap:8px;padding:10px 12px;margin:6px 0;border:1px solid var(--line);border-radius:12px;background:var(--card);color:var(--txt);min-width:0;box-sizing:border-box}
.taches-carte-grille button{border:0;background:none;color:inherit;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font:inherit;cursor:pointer}
.taches-carte-grille input{flex:none;accent-color:var(--accent);width:16px;height:16px}
.taches-carte-horaire{position:absolute;margin:0;padding:2px 6px;z-index:2;font-size:12px;border-radius:8px}
.taches .taches-reexamen{font-size:11px;color:var(--mut,#7B8195);padding:3px 0;min-height:24px;flex:none}
@media(max-width:480px){.taches .taches-reexamen{max-width:76px;line-height:1.3;text-align:left}}


.taches-fenetre{position:fixed;inset:0;margin:0;width:100%;height:100dvh;max-width:none;max-height:100dvh;border:0;padding:calc(176px + env(safe-area-inset-top,0px)) 16px max(20px,env(safe-area-inset-bottom,0px));background:transparent;overflow:visible;color:var(--txt,#232838)}
.taches-fenetre[open]{display:flex;justify-content:center;align-items:flex-start}
.taches-fenetre::backdrop{background:rgba(35,40,56,.3)}
.taches-en-fenetre{flex:0 1 520px;min-width:0;max-height:100%;overflow:auto;overscroll-behavior:contain;border:1px solid var(--line,#ECE9E1);border-radius:22px;padding:18px;background:var(--card,#fff);margin:0}
.taches-en-fenetre .taches-entete h2{flex:1;font-size:17px;color:var(--txt,#232838)}
.taches-en-fenetre .taches-fermer{font-size:12px;background:transparent}
@media(max-height:500px){.taches-fenetre{padding-top:96px}.taches-fenetre>.blob-taches{scale:.65;transform-origin:top center}}
