/* Onglet Outils : un en-tête court, la semaine en un coup d'œil, des cartes
   qui affichent un vrai chiffre, puis des listes sobres. Une seule couleur
   d'accent pour toutes les icônes. */
#v-outils{padding-bottom:28px}
#v-outils .tx-head{display:flex;flex-direction:column;gap:4px;padding:14px 2px 18px;animation:fadeUp .4s cubic-bezier(.16,1,.3,1) both}
#v-outils .tx-date{min-height:14px;font-size:11px;font-weight:600;letter-spacing:1.6px;text-transform:uppercase;color:var(--accent)}
#v-outils .tx-title{margin:0;font-family:'Barlow Condensed',sans-serif;font-size:40px;font-weight:900;line-height:.95;letter-spacing:-.6px;color:var(--text)}

#v-outils .tx-ic{flex:0 0 auto;width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;border-radius:10px;background:rgba(var(--accent-rgb),.12);color:var(--accent)}
#v-outils .tx-ic svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
#v-outils .tx-ic-solid{background:var(--accent);color:var(--bg)}
#v-outils .tx-chev{flex:0 0 auto;width:16px;height:16px;fill:none;stroke:var(--dim);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* Cette semaine */
#v-outils .tx-week{appearance:none;width:100%;display:flex;flex-direction:column;gap:14px;padding:16px 16px 14px;margin:0 0 26px;text-align:left;color:inherit;cursor:pointer;border:1px solid rgba(var(--accent-rgb),.22);border-radius:20px;
  background:radial-gradient(120% 140% at 100% 0,rgba(var(--accent-rgb),.16),transparent 55%),var(--bg2);
  box-shadow:0 18px 40px rgba(0,0,0,.28),inset 0 1px rgba(255,255,255,.05);transition:transform .2s cubic-bezier(.16,1,.3,1),border-color .2s;animation:fadeUp .45s .04s cubic-bezier(.16,1,.3,1) both}
#v-outils .tx-week:active{transform:scale(.985)}
#v-outils .tx-week:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
#v-outils .tx-week-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
#v-outils .tx-kicker{font-size:11px;font-weight:600;letter-spacing:1.4px;text-transform:uppercase;color:var(--muted)}
#v-outils .tx-week-link{display:inline-flex;align-items:center;gap:2px;font-size:12px;font-weight:600;color:var(--accent)}
#v-outils .tx-week-link svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#v-outils .tx-week-main{display:flex;align-items:baseline;gap:7px;min-width:0}
#v-outils .tx-week-count{font-family:'Barlow Condensed',sans-serif;font-size:46px;font-weight:900;line-height:.85;color:var(--text);font-variant-numeric:tabular-nums}
#v-outils .tx-week-unit{font-family:'Barlow Condensed',sans-serif;font-size:19px;font-weight:700;color:var(--text2)}
#v-outils .tx-week-month{margin-left:auto;font-size:12px;color:var(--muted);text-transform:capitalize;white-space:nowrap}
#v-outils .tx-week-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
#v-outils .tx-day{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:10px;font-weight:600;letter-spacing:.4px;color:var(--muted)}
#v-outils .tx-day i{width:100%;max-width:34px;height:6px;border-radius:99px;background:rgba(255,255,255,.08)}
#v-outils .tx-day.done i{background:var(--accent);box-shadow:0 0 12px rgba(var(--accent-rgb),.45)}
#v-outils .tx-day.today{color:var(--text)}
#v-outils .tx-day.today:not(.done) i{background:transparent;box-shadow:inset 0 0 0 1.5px rgba(var(--accent-rgb),.7)}
#v-outils .tx-day.future{color:var(--dim)}
#v-outils .tx-day.future i{background:rgba(255,255,255,.04)}

/* Sections */
#v-outils .tx-section{margin:0 0 24px;animation:fadeUp .45s .08s cubic-bezier(.16,1,.3,1) both}
#v-outils .tx-label{margin:0 0 10px 4px;font-family:'Barlow',sans-serif;font-size:11px;font-weight:600;letter-spacing:1.4px;text-transform:uppercase;color:var(--muted)}

/* Cartes chiffrées */
#v-outils .tx-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#v-outils .tool-card{animation:none;box-shadow:none}
#v-outils .tx-stat{display:flex;flex-direction:column;align-items:stretch;gap:0;min-height:128px;padding:14px;border-radius:18px;border:1px solid var(--border2);background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.01)),var(--bg2)}
#v-outils .tx-stat:hover{border-color:rgba(var(--accent-rgb),.4)}
#v-outils .tx-stat-top{display:flex;align-items:center;gap:9px;min-width:0}
#v-outils .tx-stat .tool-name{font-family:'Barlow',sans-serif;font-size:13px;font-weight:600;letter-spacing:0;color:var(--text2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#v-outils .tx-stat-val{margin-top:auto;padding-top:16px;font-family:'Barlow Condensed',sans-serif;font-size:28px;font-weight:800;line-height:1;color:var(--text);font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#v-outils .tx-stat-val small{margin-left:3px;font-size:15px;font-weight:700;color:var(--muted)}
#v-outils .tx-stat-sub{margin-top:5px;font-size:11px;line-height:1.3;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Coach IA */
#v-outils .tx-coach{margin-top:10px;display:flex;align-items:center;gap:12px;min-height:64px;padding:12px 14px;border-radius:18px;border:1px solid rgba(var(--accent-rgb),.3);background:linear-gradient(100deg,rgba(var(--accent-rgb),.14),rgba(var(--accent-rgb),.03) 70%),var(--bg2)}

/* Listes groupées */
#v-outils .tools-list{overflow:hidden;border:1px solid var(--border2);border-radius:18px;background:var(--bg2)}
#v-outils .tools-list>.tool-card{display:flex;align-items:center;gap:12px;min-height:60px;padding:12px 14px;border:0;border-radius:0;background:transparent;box-shadow:none}
#v-outils .tools-list>.tool-card+.tool-card{border-top:1px solid var(--border)}
#v-outils .tools-list>.tool-card:active{background:rgba(255,255,255,.04);transform:none}
#v-outils .tool-card-body{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
#v-outils .tools-list .tool-name,#v-outils .tx-coach .tool-name{font-family:'Barlow',sans-serif;font-size:15px;font-weight:600;letter-spacing:0;line-height:1.2;color:var(--text)}
#v-outils .tools-list .tool-sub,#v-outils .tx-coach .tool-sub{margin:0;font-size:12px;line-height:1.3;color:var(--muted);white-space:normal}
#v-outils .tx-val{flex:0 1 auto;max-width:42%;font-size:13px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

@media(max-width:350px){
  #v-outils .tx-stat{min-height:118px;padding:12px}
  #v-outils .tx-stat-val{font-size:24px}
  #v-outils .tx-week-count{font-size:40px}
}
@media(prefers-reduced-motion:reduce){
  #v-outils .tx-head,#v-outils .tx-week,#v-outils .tx-section{animation:none}
}
#v-outils .tx-stat-val.is-empty{font-size:20px;font-weight:700;color:var(--accent)}
/* Carte large (rappels) : nom à gauche, prochaine heure à droite. */
#v-outils .tx-stat.tx-wide{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:space-between;gap:12px;min-height:76px}
#v-outils .tx-stat-end{display:flex;flex-direction:column;align-items:flex-end;min-width:0}
#v-outils .tx-wide .tx-stat-val{margin-top:0;padding-top:0}
#v-outils .tx-wide .tx-stat-sub{margin-top:4px}
