/* ============================================================================
 * zuri_taches.css — Tâches du cabinet (onglet « Cabinet » de la file + mobile)
 * 17/08/2026. Langage visuel repris de zuri_espace.html (Zuri Galaxy V3) :
 * cartes blanches quasi opaques, rayon 8-10px, accents teal #0d9488/#4FD1C5.
 * Aucune règle ne cible un sélecteur existant : tout est préfixé .tc- / .qseg.
 * ==========================================================================*/

/* --- segment Patients | Cabinet, en tête de la file ----------------------- */
.qseg {
  display: flex; gap: 4px; padding: 8px 8px 7px;
  border-bottom: 1px solid #e2e8f0;
}
.qseg-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  font-family: inherit; font-size: 11.5px; font-weight: 800; letter-spacing: .01em;
  padding: 7px 6px; border-radius: 10px; border: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, .7); color: #64748b; cursor: pointer;
  transition: all .15s; white-space: nowrap; line-height: 1;
}
.qseg-btn:hover { border-color: #bae6e1; color: #0B6E66; }
.qseg-btn.on {
  background: linear-gradient(135deg, #4FD1C5, #0d9488); border-color: transparent;
  color: #fff; box-shadow: 0 3px 10px rgba(13, 148, 136, .28);
}
.qseg-btn b {
  font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 999px;
  background: #f1f5f9; color: #94a3b8; min-width: 18px;
}
.qseg-btn.on b { background: rgba(255, 255, 255, .28); color: #fff; }
.qseg-btn.has b { background: #fee2e2; color: #dc2626; }
.qseg-btn.on.has b { background: rgba(255, 255, 255, .3); color: #fff; }

/* --- panneau Cabinet ----------------------------------------------------- */
.tc-panel { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.tc-lieubar {
  display: flex; align-items: center; gap: 7px; padding: 8px 12px;
  border-bottom: 1px solid #e2e8f0; font-size: 11px; color: #64748b;
  flex-wrap: wrap;
}
.tc-lieubar i { color: #0d9488; font-size: 10px; }
.tc-lieu-btn {
  font-family: inherit; font-size: 11px; font-weight: 800; color: #0B6E66;
  background: rgba(79, 209, 197, .14); border: 1px solid rgba(13, 148, 136, .22);
  border-radius: 999px; padding: 3px 10px; cursor: pointer; transition: all .15s;
  display: inline-flex; align-items: center; gap: 5px; line-height: 1;
}
.tc-lieu-btn:hover { background: rgba(79, 209, 197, .24); }
.tc-lieu-btn.pulse { animation: tcLieuPulse 2s ease-in-out 3; }
@keyframes tcLieuPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0); }
  50% { box-shadow: 0 0 0 4px rgba(13, 148, 136, .18); }
}
.tc-lieu-choose { padding: 14px 12px; }
.tc-lieu-choose p { font-size: 12px; font-weight: 700; color: #475569; margin-bottom: 9px; }
.tc-lieu-choose .tc-lieu-opt {
  display: block; width: 100%; text-align: left; font-family: inherit;
  font-size: 12.5px; font-weight: 700; color: #334155; background: #fff;
  border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 12px;
  margin-bottom: 6px; cursor: pointer; transition: all .15s;
}
.tc-lieu-choose .tc-lieu-opt:hover {
  border-color: #4FD1C5; color: #0B6E66; transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(13, 148, 136, .12);
}

.tc-list { flex: 1; overflow-y: auto; padding: 0 6px 10px; }
.tc-sec {
  display: flex; align-items: center; gap: 7px; margin: 14px 5px 8px;
  font-size: 10.5px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .05em; color: #475569;
}
.tc-sec-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: #94a3b8; }
.tc-sec-cnt {
  margin-left: auto; font-size: 10px; font-weight: 800; padding: 1px 8px;
  border-radius: 999px; background: #f1f5f9; color: #94a3b8;
}
.tc-sec-now { color: #0B6E66; }
.tc-sec-now .tc-sec-dot { background: #0d9488; }
.tc-sec-now .tc-sec-cnt { background: rgba(79, 209, 197, .18); color: #0B6E66; }
/* Ouverture et fermeture encadrent la journée : un lever et un coucher, une
   couleur chaude pour chacun, distincte du turquoise du flux. */
.tc-sec-ouv { color: #b45309; }
.tc-sec-ouv .tc-sec-dot { background: #f59e0b; }
.tc-sec-ouv .tc-sec-cnt { background: #fef3c7; color: #92400e; }
.tc-sec-ferm { color: #4338ca; }
.tc-sec-ferm .tc-sec-dot { background: #6366f1; }
.tc-sec-ferm .tc-sec-cnt { background: #e0e7ff; color: #3730a3; }
.tc-sec-libre { color: #6d28d9; }
.tc-sec-libre .tc-sec-dot { background: #8b5cf6; }
.tc-sec-libre .tc-sec-cnt { background: #ede9fe; color: #6d28d9; }

/* --- carte tâche --------------------------------------------------------- */
.tc-card {
  display: flex; align-items: flex-start; gap: 9px;
  background: rgba(255, 255, 255, .96); border: 1px solid #eef2f6;
  border-left: 3px solid #cbd5e1; border-radius: 8px;
  padding: 9px 10px 9px 8px; margin-bottom: 4px; transition: all .15s;
}
.tc-card:hover { border-color: #d7ece9; box-shadow: 0 2px 8px rgba(13, 148, 136, .08); }
.tc-card.p1 { border-left-color: #ef4444; }
.tc-card.p2 { border-left-color: #f59e0b; }
.tc-card.p3 { border-left-color: #94a3b8; }
.tc-card.tc-prise { border-left-color: #4FD1C5; background: linear-gradient(rgba(79, 209, 197, .10), rgba(79, 209, 197, .10)) #fff; }
.tc-card.tc-faite { opacity: .62; border-left-color: #10b981; }
.tc-card.tc-libre { border-left-color: #8b5cf6; }

.tc-check {
  flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px;
  border-radius: 6px; border: 1.5px solid #cbd5e1; background: #fff;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: transparent; font-size: 11px; transition: all .12s; padding: 0;
}
.tc-check:hover { border-color: #0d9488; background: rgba(79, 209, 197, .12); color: #0d9488; }
.tc-check:focus-visible { outline: 2px solid #0d9488; outline-offset: 2px; }
.tc-card.tc-faite .tc-check { background: #10b981; border-color: #10b981; color: #fff; }
.tc-card.tc-faite .tc-check:hover { background: #059669; }

.tc-body { flex: 1; min-width: 0; }
.tc-title {
  font-size: 12.5px; font-weight: 700; color: #334155; line-height: 1.35;
  cursor: pointer; text-align: left; background: none; border: none; padding: 0;
  font-family: inherit; width: 100%; display: block;
}
.tc-title:hover { color: #0d9488; }
.tc-card.tc-faite .tc-title { text-decoration: line-through; text-decoration-color: #cbd5e1; color: #64748b; }
.tc-meta {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin-top: 4px; font-size: 10px; color: #94a3b8; line-height: 1.3;
}
.tc-pill {
  font-size: 9.5px; font-weight: 800; padding: 1px 6px; border-radius: 999px;
  background: #f1f5f9; color: #64748b; white-space: nowrap;
}
.tc-pill.lieu { background: #eff6ff; color: #2563eb; }
.tc-pill.tous { background: #f5f3ff; color: #7c3aed; }
.tc-pill.zuri { background: rgba(79, 209, 197, .16); color: #0B6E66; }
.tc-pill.retard { background: #fee2e2; color: #dc2626; }
.tc-pill.qui { background: rgba(79, 209, 197, .16); color: #0B6E66; }
.tc-pill.fait { background: #d1fae5; color: #047857; }

.tc-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 7px; }
.tc-btn {
  font-family: inherit; font-size: 10px; font-weight: 800; border-radius: 8px;
  padding: 4px 9px; cursor: pointer; border: 1px solid transparent;
  transition: all .15s; line-height: 1.2; white-space: nowrap;
}
.tc-btn-take { background: rgba(79, 209, 197, .16); color: #0B6E66; border-color: rgba(13, 148, 136, .24); }
.tc-btn-take:hover { background: rgba(79, 209, 197, .28); }
.tc-btn-ghost { background: #fff; color: #64748b; border-color: #e2e8f0; }
.tc-btn-ghost:hover { border-color: #cbd5e1; color: #334155; }
.tc-btn-danger { background: #fff; color: #b91c1c; border-color: #fecaca; }
.tc-btn-danger:hover { background: #fef2f2; }

.tc-detail {
  margin-top: 8px; padding-top: 8px; border-top: 1px dashed #e2e8f0;
  font-size: 11px; color: #64748b;
}
.tc-notes { font-size: 11px; color: #64748b; line-height: 1.5; margin-bottom: 8px; }
.tc-step {
  display: flex; align-items: flex-start; gap: 7px; padding: 3px 0;
  font-size: 11.5px; color: #475569; cursor: pointer; text-align: left;
  background: none; border: none; font-family: inherit; width: 100%; line-height: 1.4;
}
.tc-step:hover { color: #0d9488; }
.tc-step i { flex-shrink: 0; font-size: 11px; color: #cbd5e1; margin-top: 2px; }
.tc-step.on i { color: #10b981; }
.tc-step.on span { text-decoration: line-through; color: #94a3b8; }

.tc-bandeau {
  padding: 9px 12px; font-size: 11px; font-weight: 800; line-height: 1.4;
  background: linear-gradient(120deg, #FEF2F2, #FEE2E2); color: #991B1B;
  border-top: 1px solid #FCA5A5; cursor: default;
}
.tc-bandeau i { margin-right: 6px; }

.tc-foot {
  display: flex; gap: 6px; padding: 8px; border-top: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, .5);
}
.tc-foot button {
  flex: 1; font-family: inherit; font-size: 11px; font-weight: 800;
  padding: 8px 6px; border-radius: 10px; cursor: pointer; transition: all .15s;
  border: 1px solid transparent; white-space: nowrap;
}
.tc-add {
  background: linear-gradient(135deg, #4FD1C5, #0d9488); color: #fff;
  box-shadow: 0 3px 10px rgba(13, 148, 136, .24);
}
.tc-add:hover { filter: brightness(1.05); }
.tc-cfg { background: #fff; color: #64748b; border-color: #e2e8f0; flex: 0 0 auto !important; }
.tc-cfg:hover { border-color: #cbd5e1; color: #334155; }

.tc-empty { padding: 26px 14px; text-align: center; color: #cbd5e1; }
.tc-empty i { font-size: 26px; display: block; margin-bottom: 8px; }
.tc-empty p { font-size: 11.5px; line-height: 1.5; }
.tc-empty b { color: #0d9488; }

/* --- modale (ajout d'une tâche libre + réglages) -------------------------- */
.tc-modal {
  position: fixed; inset: 0; z-index: 9500; display: flex;
  align-items: center; justify-content: center; padding: 18px;
  background: rgba(5, 10, 17, .42); backdrop-filter: blur(3px);
}
.tc-modal-box {
  background: #fff; border-radius: 18px; width: 100%; max-width: 560px;
  max-height: 88vh; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 24px 64px rgba(5, 10, 17, .3);
}
.tc-modal-head {
  display: flex; align-items: center; gap: 10px; padding: 16px 20px;
  border-bottom: 1px solid #eef2f6;
}
.tc-modal-head h3 { font-size: 15px; font-weight: 800; color: #1e293b; margin: 0; flex: 1; }
.tc-modal-head button {
  font-family: inherit; background: none; border: none; cursor: pointer;
  color: #94a3b8; font-size: 16px; padding: 2px 6px; border-radius: 8px;
}
.tc-modal-head button:hover { background: #f1f5f9; color: #334155; }
.tc-modal-body { padding: 18px 20px; overflow-y: auto; }
.tc-modal-foot {
  display: flex; gap: 8px; justify-content: flex-end; padding: 14px 20px;
  border-top: 1px solid #eef2f6; background: #fafbfc;
}
.tc-modal-foot button {
  font-family: inherit; font-size: 12.5px; font-weight: 800; padding: 9px 18px;
  border-radius: 10px; cursor: pointer; border: 1px solid transparent; transition: all .15s;
}
.tc-ok { background: linear-gradient(135deg, #4FD1C5, #0d9488); color: #fff; }
.tc-ok:hover { filter: brightness(1.05); }
.tc-cancel { background: #fff; color: #64748b; border-color: #e2e8f0; }
.tc-cancel:hover { border-color: #cbd5e1; color: #334155; }

.tc-field { margin-bottom: 14px; }
.tc-field label {
  display: block; font-size: 10.5px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .06em; color: #94a3b8; margin-bottom: 6px;
}
.tc-field input[type="text"], .tc-field input[type="date"], .tc-field input[type="time"],
.tc-field textarea, .tc-field select {
  width: 100%; font-family: inherit; font-size: 13px; color: #334155;
  padding: 9px 12px; border: 1px solid #e2e8f0; border-radius: 10px;
  background: #fff; outline: none; transition: border-color .15s;
}
.tc-field input:focus, .tc-field textarea:focus, .tc-field select:focus { border-color: #4FD1C5; }
.tc-field .hint { font-size: 11px; color: #94a3b8; margin-top: 5px; line-height: 1.45; }
.tc-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.tc-chip {
  font-family: inherit; font-size: 11.5px; font-weight: 700; padding: 6px 12px;
  border-radius: 999px; border: 1px solid #e2e8f0; background: #fff;
  color: #64748b; cursor: pointer; transition: all .15s; line-height: 1;
}
.tc-chip:hover { border-color: #bae6e1; color: #0B6E66; }
.tc-chip.on {
  background: linear-gradient(135deg, #4FD1C5, #0d9488); border-color: transparent;
  color: #fff; box-shadow: 0 3px 10px rgba(13, 148, 136, .22);
}

/* réglages : liste des récurrentes */
.tc-cfg-tabs { display: flex; gap: 5px; margin-bottom: 16px; }
.tc-cfg-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid #f1f5f9; font-size: 12.5px; color: #334155;
}
.tc-cfg-row:last-child { border-bottom: none; }
.tc-cfg-row .t { flex: 1; min-width: 0; font-weight: 650; line-height: 1.35; }
.tc-cfg-row .t small { display: block; font-weight: 500; color: #94a3b8; font-size: 10.5px; margin-top: 2px; }
.tc-cfg-row.off { opacity: .5; }
.tc-cfg-row .sw {
  font-family: inherit; font-size: 10px; font-weight: 800; padding: 4px 10px;
  border-radius: 999px; cursor: pointer; border: 1px solid transparent; white-space: nowrap;
}
.tc-cfg-row .sw.on { background: #d1fae5; color: #047857; }
.tc-cfg-row .sw.no { background: #f1f5f9; color: #94a3b8; }
.tc-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.tc-stat {
  background: #f8fafc; border: 1px solid #eef2f6; border-radius: 12px; padding: 12px 14px;
}
.tc-stat b { display: block; font-size: 21px; font-weight: 800; color: #0d9488; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tc-stat span { font-size: 10.5px; color: #94a3b8; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }

/* ============================================================================
 * MODE MOBILE — page taches.html : une colonne, gros boutons, cocher seulement
 * ==========================================================================*/
.tc-mobile {
  margin: 0; padding: 0; background: #F2FAF9; color: #334155;
  font-family: Inter, system-ui, -apple-system, sans-serif; min-height: 100vh;
}
.tc-mobile .tc-mhead {
  position: sticky; top: 0; z-index: 20; background: #fff;
  border-bottom: 1px solid #D7ECE9; padding: 12px 16px;
  box-shadow: 0 2px 12px rgba(13, 148, 136, .06);
}
.tc-mobile .tc-mhead .row1 { display: flex; align-items: center; gap: 10px; }
.tc-mobile .tc-mhead img { width: 30px; height: 30px; border-radius: 50%; }
.tc-mobile .tc-mhead h1 { font-size: 15px; font-weight: 800; color: #0B6E66; margin: 0; flex: 1; }
.tc-mobile .tc-mcount {
  font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 999px;
  background: rgba(79, 209, 197, .16); color: #0B6E66;
}
/* La page est faite pour un téléphone, mais elle s'ouvre aussi sur un poste
   ou une tablette : on borne la colonne au lieu de l'étirer sur 1600 px. */
.tc-mobile .tc-mhead .row1, .tc-mobile .tc-panel { max-width: 560px; margin: 0 auto; }
.tc-mobile .tc-panel { padding-bottom: 40px; }
.tc-mobile .tc-list { padding: 0 12px 20px; overflow: visible; }
.tc-mobile .tc-card { padding: 14px 14px 14px 12px; border-radius: 12px; margin-bottom: 8px; gap: 12px; }
.tc-mobile .tc-check { width: 30px; height: 30px; font-size: 14px; border-radius: 9px; }
.tc-mobile .tc-title { font-size: 14.5px; }
.tc-mobile .tc-meta { font-size: 11px; margin-top: 6px; }
.tc-mobile .tc-step { font-size: 13px; padding: 6px 0; }
.tc-mobile .tc-btn { font-size: 11.5px; padding: 7px 13px; }
.tc-mobile .tc-sec { margin: 20px 6px 10px; font-size: 11px; }
.tc-mobile .tc-lieubar { padding: 10px 16px; font-size: 12px; background: #fff; }
.tc-mobile .tc-lieu-btn { font-size: 12px; padding: 5px 12px; }
.tc-mobile .tc-bandeau { font-size: 12px; padding: 12px 16px; }
.tc-mobile .tc-empty { padding: 44px 20px; }
.tc-mobile .tc-login {
  max-width: 380px; margin: 60px auto; background: #fff; border: 1px solid #D7ECE9;
  border-radius: 18px; padding: 26px 22px; box-shadow: 0 16px 44px rgba(13, 148, 136, .12);
}
.tc-mobile .tc-login h2 { font-size: 17px; font-weight: 800; color: #0B6E66; margin: 0 0 6px; }
.tc-mobile .tc-login p { font-size: 12.5px; color: #64748b; margin: 0 0 18px; line-height: 1.5; }
.tc-mobile .tc-login button {
  width: 100%; font-family: inherit; font-size: 14px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #4FD1C5, #0d9488); border: none;
  border-radius: 12px; padding: 13px; cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .tc-card, .tc-btn, .tc-check, .qseg-btn, .tc-chip, .tc-lieu-btn { transition: none !important; }
  .tc-lieu-btn.pulse { animation: none !important; }
}

/* ── Reprise Follow → Doctolib (05/10/2026) ─────────────────────────────── */
.tc-follow {
  display: flex; flex-direction: column; gap: 4px; width: 100%; text-align: left;
  margin-top: 7px; padding: 8px 10px; border-radius: 10px; cursor: pointer;
  background: #f8fafc; border: 1px solid #e2e8f0; font-family: inherit; transition: all .15s;
}
.tc-follow:hover { border-color: #99d5cf; background: #f0fdfa; }
.tc-follow-l1 { font-size: 11px; font-weight: 800; color: #0f172a; }
.tc-follow-l2 { display: flex; flex-wrap: wrap; gap: 5px; }
.tc-follow-l2 span { font-size: 9.5px; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: #f1f5f9; color: #64748b; }
.tc-follow-l2 .ok { background: #d1fae5; color: #047857; }
.tc-follow-l2 .av { background: #fef3c7; color: #92400e; }
.tc-follow-go { font-size: 10px; font-weight: 800; color: #0d9488; }
.tc-follow-go i { font-size: 8px; margin-left: 3px; }
.tc-modal-box.tc-follow-box { max-width: 680px; }
.tf-jours { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tf-jour {
  font-family: inherit; font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 999px;
  border: 1px solid #e2e8f0; background: #fff; color: #475569; cursor: pointer;
}
.tf-jour.on { background: #0f766e; border-color: #0f766e; color: #fff; }
.tf-jour b { margin-left: 6px; padding: 0 6px; border-radius: 999px; background: #f59e0b; color: #fff; font-size: 10px; }
.tf-intro { font-size: 11.5px; color: #64748b; line-height: 1.5; margin: 0 0 6px; }
.tf-rien { font-size: 12px; color: #047857; padding: 6px 2px 10px; }
.tf-pt { padding: 8px 10px; border: 1px solid #eef2f6; border-radius: 10px; margin-bottom: 6px; background: #fff; }
.tf-pt.tf-av { border-left: 3px solid #f59e0b; }
.tf-pt.tf-vu { border-left-color: #10b981; opacity: .75; }
.tf-l1 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: #0f172a; }
.tf-h { font-variant-numeric: tabular-nums; font-weight: 800; color: #0f766e; min-width: 38px; }
.tf-ddn { font-size: 11px; color: #94a3b8; }
.tf-med { margin-left: auto; font-size: 10px; font-weight: 800; color: #64748b; letter-spacing: .03em; }
.tf-faire { font-size: 12px; color: #92400e; line-height: 1.45; margin-top: 5px; }
.tf-faire i { color: #f59e0b; margin-right: 4px; }
.tf-info { font-size: 11px; color: #64748b; line-height: 1.45; margin-top: 4px; }
.tf-info i { color: #94a3b8; margin-right: 4px; }
.tf-actions { display: flex; align-items: center; gap: 6px; margin-top: 7px; }
.tf-maj { font-size: 10.5px; color: #94a3b8; margin-right: auto; }

/* ── tutoriel de la reprise Follow (05/10/2026) ─────────────────────────── */
.tc-tuto {
  position: fixed; inset: 0; z-index: 10004; display: flex; align-items: center; justify-content: center;
  background: rgba(6, 40, 38, .48); backdrop-filter: blur(4px); padding: 2.5vh 2.5vw;
}
.tc-tuto iframe {
  width: 100%; max-width: 1180px; height: min(860px, 95vh); border: 0; border-radius: 20px;
  background: #EEF6F5; box-shadow: 0 30px 80px rgba(5, 10, 17, .35);
}
.tc-follow.tc-halo { animation: tcHalo .85s ease-in-out 3; }
@keyframes tcHalo {
  0%, 100% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0); }
  50% { box-shadow: 0 0 0 7px rgba(13, 148, 136, .35); border-color: #0d9488; }
}
.tc-modal-foot .tc-btn + .tc-btn { margin-left: 6px; }
