/* ============================================================
   OFFICEA — MODULE ACTIVITY
   ============================================================ */

/* ── Carte sur l'accueil ── */
#home-activity-card {
  background: white;
  border-radius: 12px;
  border: 1px solid #ede5d3;
  padding: 14px 16px;
  margin: 14px 0;
}

.activity-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.activity-card-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  font-weight: 500;
  color: #1a2942;
  margin: 0;
}

.activity-card-more {
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 600;
  color: #b8843f;
  cursor: pointer;
  padding: 4px 6px;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.activity-card-more:hover { text-decoration: underline; }

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid #f5f1e8;
}
.activity-item:last-child { border-bottom: none; }

.activity-item-text {
  flex: 1;
  font-size: 13px;
  color: #1a2942;
  line-height: 1.4;
}

.activity-item-time {
  font-size: 11px;
  color: #8a8474;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

/* ── Empty ── */
.activity-empty {
  text-align: center;
  padding: 30px 14px;
  color: #8a8474;
}

.activity-empty-icon {
  font-size: 32px;
  margin-bottom: 10px;
  opacity: 0.5;
}

.activity-empty p {
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

/* ============================================================
   MODALE "TOUTES LES ACTIVITÉS"
   ============================================================ */
.activity-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.activity-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.activity-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 41, 66, 0.5);
  backdrop-filter: blur(4px);
}

.activity-modal-card {
  position: relative;
  background: #f5f1e8;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 600px;
  height: 88vh;
  display: flex;
  flex-direction: column;
  padding: 20px;
  padding-top: 32px;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.activity-modal.is-open .activity-modal-card {
  transform: translateY(0);
}

@media (min-width: 768px) {
  .activity-modal { align-items: center; }
  .activity-modal-card {
    border-radius: 16px;
    max-height: 85vh;
    height: 85vh;
    transform: scale(0.95);
  }
  .activity-modal.is-open .activity-modal-card {
    transform: scale(1);
  }
}

.activity-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(26, 41, 66, 0.08);
  border: none;
  font-size: 22px;
  line-height: 1;
  color: #1a2942;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

html.activity-modal-open { overflow: hidden; }

.activity-modal-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  color: #1a2942;
  margin: 0 0 6px;
  padding-right: 40px;
}
.activity-modal-title em { color: #b8843f; font-style: italic; }

.activity-modal-sub {
  font-size: 13px;
  color: #6a6478;
  margin: 0 0 16px;
}

.activity-modal-list {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 4px;
}

.activity-day-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b8843f;
  font-weight: 600;
  margin: 18px 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #ede5d3;
}
.activity-day-label:first-child { margin-top: 0; }

.activity-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f5f1e8;
}
.activity-row:last-child { border-bottom: none; }

.activity-row-text {
  flex: 1;
  font-size: 13px;
  color: #1a2942;
  line-height: 1.4;
}

.activity-row-time {
  font-size: 11px;
  color: #8a8474;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.activity-loading, .activity-end {
  text-align: center;
  font-size: 12px;
  color: #8a8474;
  padding: 16px;
  font-style: italic;
}
