/* =====================================================================
   SantéFlow — haut de page « La journée d'un patient »
   Titre en grand, aperçu du dossier en petit, et une seule animation :
   la journée qui avance d'étape en étape (accueil → rappel du soir).
   ===================================================================== */

.lp-hero--day { padding: 64px 0 44px; background: linear-gradient(180deg, var(--hero-a) 0%, var(--bg) 62%); }
@media (min-width: 992px) { .lp-hero--day { padding: 96px 0 56px; } }

.lp-hero__grid--day { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: end; }
@media (min-width: 992px) { .lp-hero__grid--day { grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; } }

/* Titre : la force vient de la taille et du rythme, pas d'un mot coloré */
.lp-hero__title--day {
  font-size: clamp(2.6rem, 7.4vw, 5.6rem);
  line-height: .98;
  letter-spacing: -.035em;
  font-weight: 800;
  margin: 0 0 26px !important;
  max-width: 13ch;
  text-wrap: balance;
}
.lp-hero__title--day span { display: block; }
.lp-hero__title--day span + span { color: var(--brand); }
.lp-hero--day .lp-hero__lead { max-width: 56ch; font-size: clamp(1.05rem, 1.5vw, 1.22rem); line-height: 1.6; }

/* Aperçu du dossier : petit, discret, il suit l'étape en cours */
.lp-peek { margin: 0; }
.lp-peek__card {
  position: relative;
  padding: 18px 20px 18px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  min-height: 150px;
  overflow: hidden;
}
.lp-peek__card::before {
  content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 0 4px 4px 0;
  background: var(--brand);
}
.lp-peek__top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: .86rem; color: var(--muted); }
.lp-peek__ico { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--brand-light); color: var(--brand); }
.lp-peek__ico svg { width: 17px; height: 17px; }
.lp-peek__where { font-weight: 700; color: var(--ink); }
.lp-peek__top time { margin-left: auto; font-variant-numeric: tabular-nums; }
.lp-peek__title { display: block; font-family: var(--font-display); font-size: 1.12rem; line-height: 1.3; color: var(--ink); }
.lp-peek__line { margin: 4px 0 0; color: var(--ink-2); font-size: .95rem; }
.lp-peek__next { margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed var(--line); color: var(--muted); font-size: .86rem; }
.lp-peek .lp-caption { margin-top: 10px; }
.lp-peek__card.is-swap .lp-peek__title,
.lp-peek__card.is-swap .lp-peek__line,
.lp-peek__card.is-swap .lp-peek__next { animation: lpPeekIn .45s ease both; }
@keyframes lpPeekIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* La journée : un rail horizontal sur grand écran, une liste verticale sur téléphone */
.lp-day { margin-top: 56px; }
.lp-day__label { margin: 0 0 18px; font-weight: 600; color: var(--muted); font-size: .95rem; }
.lp-day__rail { --p: 0; position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; }
.lp-day__rail::before,
.lp-day__rail::after { content: ""; position: absolute; left: calc(100% / 12); right: calc(100% / 12); top: 52px; height: 3px; border-radius: 3px; }
.lp-day__rail::before { background: var(--line); }
.lp-day__rail::after {
  right: auto; width: calc((100% - 100% / 6) * var(--p));
  background: linear-gradient(90deg, var(--brand), var(--mint));
  transition: width .9s cubic-bezier(.4, 0, .2, 1);
}
.lp-day__stop { position: relative; z-index: 1; }
.lp-day__btn {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 0 8px 6px; border-radius: 14px;
}
.lp-day__btn:focus-visible { box-shadow: var(--ring); }
.lp-day__btn time { font-size: .84rem; font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; }
.lp-day__dot {
  display: grid; place-items: center; width: 46px; height: 46px; margin: 2px 0 6px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--line); color: var(--muted);
  transition: background .35s, border-color .35s, color .35s, transform .35s;
}
.lp-day__dot svg { width: 20px; height: 20px; }
.lp-day__btn b { font-family: var(--font-display); font-size: 1.02rem; color: var(--ink); }
.lp-day__btn small { font-size: .84rem; line-height: 1.4; color: var(--muted); max-width: 20ch; }
.lp-day__stop.is-done .lp-day__dot { border-color: var(--brand); color: var(--brand); }
.lp-day__stop.is-on .lp-day__dot { background: var(--brand); border-color: var(--brand); color: #fff; transform: scale(1.12); box-shadow: 0 8px 20px rgba(0, 124, 145, .3); }
.lp-day__stop.is-on small { color: var(--ink-2); }

@media (max-width: 860px) {
  .lp-day__rail { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .lp-day__rail::before, .lp-day__rail::after { left: 22px; right: auto; top: 24px; bottom: 24px; width: 3px; height: auto; }
  .lp-day__rail::after { height: calc((100% - 48px) * var(--p)); bottom: auto; transition-property: height; }
  .lp-day__btn { flex-direction: row; flex-wrap: wrap; align-items: center; text-align: left; gap: 2px 14px; padding: 6px 0; }
  .lp-day__dot { order: -1; margin: 0; flex: 0 0 46px; }
  .lp-day__btn time { order: 1; flex-basis: calc(100% - 60px); margin-left: auto; }
  .lp-day__btn b { order: 2; flex-basis: calc(100% - 60px); margin-left: auto; }
  .lp-day__btn small { order: 3; flex-basis: calc(100% - 60px); margin-left: auto; max-width: none; }
  .lp-peek { max-width: 420px; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-day__rail::after, .lp-day__dot { transition: none; }
  .lp-peek__card.is-swap .lp-peek__title, .lp-peek__card.is-swap .lp-peek__line, .lp-peek__card.is-swap .lp-peek__next { animation: none; }
}
