/* Le groupe Famille (V2) : écran « La semaine ». Ambiance papier chaud, comme la v1. */

.semaine {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 12px 12px 24px;
  background: var(--creme);
}

.semaine__vexes {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.semaine__vexe {
  margin: 0;
  padding: 8px 12px;
  background: var(--terracotta-clair);
  color: var(--encre);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
}

.semaine__jours {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.semaine__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.semaine__actions .bouton {
  width: 100%;
  min-height: 44px;
}

/* Une carte par jour : ouvrir la situation est un seul bouton. */
.jour {
  margin: 0;
  padding: 0;
}

.jour__bouton {
  display: flex;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  background: var(--papier);
  border: 1px solid var(--bord);
  border-radius: 16px;
  box-shadow: var(--ombre-1);
  color: var(--encre);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.jour__bouton:hover {
  border-color: var(--terracotta);
}

.jour__bouton:focus-visible {
  outline: 3px solid var(--moutarde);
  outline-offset: 2px;
}

.jour__entete {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 0 0 80px;
}

.jour__nom {
  color: var(--encre-douce);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.jour__icone {
  display: inline-flex;
  width: 28px;
  height: 28px;
  color: var(--terracotta);
}

.jour__icone svg {
  width: 100%;
  height: 100%;
}

.jour__corps {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.jour__avatar {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

/* Sans avatar (système, moi), le texte garde la même colonne que les autres cartes. */
.jour__corps:not(:has(.jour__avatar)) {
  padding-left: 50px;
}

.jour__texte {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.jour__titre {
  color: var(--encre);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.jour__etat {
  margin: 2px 0 0;
  color: var(--encre-douce);
  font-size: 13px;
  line-height: 1.35;
}

.jour__etat--fait {
  color: var(--sauge);
  font-weight: 600;
}

.jour__vexe {
  color: var(--rouge);
  font-size: 12px;
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .jour__bouton {
    transition: none;
  }
}
