/* Ma journée : chiffres du jour, frise des séances, actions par urgence avec « C'est fait ». Limité à #day-view. */
#day-view { --mj-bad: #8a3030; --mj-bad-bg: #f8e6e6; --mj-warn: #80500b; --mj-warn-bg: #fff5df; --mj-bleu: #1d5a8a; --mj-bleu-bg: #e4effa; }
#day-view [hidden] { display: none !important; }
#day-view .mj-tuiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 4px 0 18px; }
#day-view .mj-tuile { display: block; min-height: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: var(--workspace-shadow); text-align: left; color: var(--ink); }
#day-view button.mj-tuile:hover { border-color: var(--workspace-border-strong); background: white; transform: translateY(-1px); }
#day-view .mj-tuile strong { display: block; font: 800 28px/1.1 var(--font-heading); color: var(--plum); }
#day-view .mj-tuile span { font-size: 13px; font-weight: 600; color: var(--muted); }
#day-view .mj-tuile.mj-alerte strong { color: var(--mj-bad); }
#day-view .mj-tuile[aria-pressed=true] { border-color: var(--plum); box-shadow: 0 0 0 3px #7b2d8e22; }

#day-view .mj-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px; align-items: start; }
#day-view .mj-bloc { border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--workspace-shadow); overflow: hidden; scroll-margin-top: calc(var(--entete, 76px) + 12px); }
#day-view .mj-bloc-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--lilac), white); }
#day-view .mj-bloc-tete h2 { margin: 0; font-size: 18px; }
#day-view .mj-bloc-tete small { display: block; font-size: 13px; color: var(--muted); }
#day-view #day-date::first-letter { text-transform: uppercase; }
#day-view .mj-lien { min-height: 40px; padding: 0 8px; border: 0; background: none; color: var(--plum); font-size: 13px; font-weight: 600; white-space: nowrap; }
#day-view .mj-lien::after { content: ' →'; }
#day-view .mj-status:empty { display: none; }
#day-view .mj-status { margin: 14px 18px 0; font-size: 14px; color: var(--muted); }

/* Frise des séances */
#day-view .mj-chrono { list-style: none; margin: 0; padding: 16px 18px 18px; }
#day-view .mj-seance { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 28px; padding-bottom: 14px; }
#day-view .mj-seance:last-child { padding-bottom: 0; }
#day-view .mj-seance::before { content: ''; position: absolute; left: 87px; top: 16px; bottom: -2px; width: 2px; background: var(--line); }
#day-view .mj-seance:last-child::before { display: none; }
#day-view .mj-heure { padding-top: 10px; text-align: right; white-space: nowrap; font: 700 15px var(--font-heading); }
#day-view .mj-heure small { display: block; font: 500 12px var(--font-ui); color: var(--muted); }
#day-view .mj-s-carte { position: relative; display: block; width: 100%; min-height: 0; margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: white; text-align: left; color: var(--ink); }
#day-view .mj-s-carte::before { content: ''; position: absolute; left: -21px; top: 14px; width: 12px; height: 12px; border: 3px solid var(--workspace-border-strong); border-radius: 50%; background: white; }
#day-view .mj-s-carte:hover { border-color: var(--workspace-border-strong); background: #fdfaff; }
#day-view .mj-s-carte strong { display: block; font: 700 15px/1.3 var(--font-heading); letter-spacing: -.02em; }
#day-view .mj-encours .mj-s-carte { border-color: var(--plum); box-shadow: 0 0 0 3px #7b2d8e1c; }
#day-view .mj-encours .mj-s-carte::before { border-color: var(--plum); background: var(--plum); }
#day-view .mj-passee .mj-s-carte { opacity: .62; }
#day-view .mj-s-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 6px; font-size: 12px; color: var(--muted); }
#day-view .mj-live { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 99px; background: var(--plum); color: white; font-size: 12px; font-weight: 600; }
#day-view .mj-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #7ef0b0; animation: mj-pouls 1.6s infinite; }
@keyframes mj-pouls { 50% { opacity: .3; } }
#day-view .mj-type { padding: 2px 8px; border-radius: 99px; background: var(--lilac); color: var(--plum); font-size: 12px; font-weight: 600; }
#day-view .mj-type-rendezvous, #day-view .mj-type-meeting { background: #e8eee5; color: #4d6b3a; }
#day-view .mj-equipe { font-weight: 600; color: var(--ink); }
#day-view .mj-vide { padding: 26px 18px; text-align: center; color: var(--muted); }
#day-view .mj-vide strong { display: block; margin-bottom: 4px; font: 700 16px var(--font-heading); color: var(--ink); }

/* Actions par urgence */
#day-view .mj-filtres { display: flex; gap: 6px; overflow-x: auto; padding: 12px 18px 0; }
#day-view .mj-filtres:empty { display: none; }
#day-view .mj-filtres button { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 99px; background: white; font-size: 13px; font-weight: 600; }
#day-view .mj-filtres button i { font-style: normal; font-size: 12px; font-weight: 500; color: var(--muted); }
#day-view .mj-filtres button[aria-pressed=true] { border-color: var(--plum); background: var(--lilac); color: var(--plum); }
#day-view .mj-groupe { padding: 4px 18px 0; }
#day-view .mj-groupe h3 { display: flex; align-items: center; gap: 8px; margin: 12px 0 8px; font: 600 12px var(--font-ui); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
#day-view .mj-groupe h3 b { padding: 1px 8px; border-radius: 99px; background: #f0eaf3; color: var(--ink); font-size: 12px; }
#day-view .mj-g-retard h3 { color: var(--mj-bad); }
#day-view .mj-action { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; margin-bottom: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: white; transition: opacity .3s, transform .3s; }
#day-view .mj-action.mj-sortie { opacity: .35; transform: translateX(16px); }
#day-view .mj-av { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; color: white; font: 700 14px var(--font-heading); }
#day-view .mj-a-id { min-width: 0; }
#day-view .mj-a-id strong { display: block; font: 700 15px/1.25 var(--font-heading); letter-spacing: -.02em; }
#day-view .mj-a-id small { display: block; font-size: 12px; color: var(--muted); }
#day-view .mj-action p { grid-column: 2 / -1; margin: 4px 0 0; font-size: 14px; }
#day-view .mj-echeance { padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; background: #eeeaf2; color: #5e5670; }
#day-view .mj-e-retard { background: var(--mj-bad-bg); color: var(--mj-bad); }
#day-view .mj-e-jour { background: var(--mj-warn-bg); color: var(--mj-warn); }
#day-view .mj-e-bientot { background: var(--mj-bleu-bg); color: var(--mj-bleu); }
#day-view .mj-a-gestes { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
#day-view .mj-a-gestes button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; font-size: 13px; }
#day-view .mj-a-gestes svg { width: 16px; height: 16px; }
#day-view .mj-pied { display: flex; justify-content: center; padding: 8px 18px 18px; }
#day-view .mj-toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: var(--workspace-prune); color: white; font-size: 14px; box-shadow: 0 12px 30px #0004; opacity: 0; transform: translate(-50%, 20px); pointer-events: none; transition: .25s; }
#day-view .mj-toast.mj-vu { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
#day-view .mj-toast button { min-height: 36px; padding: 0 6px; border: 0; background: none; color: #e9c8f3; font-weight: 600; }

@media (max-width: 1000px) { #day-view .mj-grille { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  #day-view .mj-tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #day-view .mj-toast { bottom: 90px; width: calc(100vw - 32px); }
}
@media (max-width: 560px) {
  #day-view .mj-seance { grid-template-columns: 60px minmax(0, 1fr); gap: 24px; }
  #day-view .mj-seance::before { left: 71px; }
  #day-view .mj-heure { font-size: 14px; }
  #day-view .mj-action { grid-template-columns: 36px minmax(0, 1fr); }
  #day-view .mj-action .mj-echeance { grid-column: 2; justify-self: start; }
  #day-view .mj-av { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) { #day-view .mj-live::before { animation: none; } #day-view .mj-action { transition: none; } }
