/* Page aperçu public : cartes ouvrant une modale */
.teaser-open-modal-btn {
  border-radius: var(--bs-border-radius, 0.375rem);
}
.teaser-open-modal-btn .card {
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  cursor: pointer;
}
.teaser-open-modal-btn:hover .card,
.teaser-open-modal-btn:focus-visible .card {
  box-shadow: 0 0.5rem 1.25rem rgba(0, 100, 0, 0.12) !important;
  transform: translateY(-2px);
}
.teaser-open-modal-btn:focus {
  outline: 2px solid var(--bs-primary, #0d6efd);
  outline-offset: 3px;
}

/* Rangée d’encarts : même hauteur (flex) + lien « Voir un extrait » aligné en bas */
.teaser-feature-cards .teaser-open-modal-btn .card {
  min-height: 100%;
}

/* Légende calendrier (aperçu) : libellés toujours lisibles si un thème force le blanc */
.teaser-calendar-excerpt .calendar-legend-chips .legend-item-label {
  color: #212529 !important;
}

.teaser-dummy-banner {
  font-size: 0.8rem;
}

/* Aligné sur la grille jour du calendrier (taille de police proche .fc-daygrid-event) */
.praxely-minh-220 {
  min-height: 220px;
}
.praxely-maxw-12rem {
  max-width: 12rem;
}

/* Graphiques modal tableau de bord (hauteur réduite vs page abonné) */
.teaser-dashboard-chart-stack {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 220px;
  max-height: 220px;
  flex-shrink: 0;
  box-sizing: border-box;
}
.teaser-dashboard-chart-stack--donut {
  height: 260px;
  max-height: 260px;
}
@media (max-width: 575.98px) {
  .teaser-dashboard-chart-stack {
    height: 200px;
    max-height: 200px;
  }
  .teaser-dashboard-chart-stack--donut {
    height: 240px;
    max-height: 240px;
  }
}

.teaser-chart-placeholder {
  background: repeating-linear-gradient(
    -45deg,
    var(--bs-light, #f8f9fa),
    var(--bs-light, #f8f9fa) 8px,
    rgba(0, 0, 0, 0.03) 8px,
    rgba(0, 0, 0, 0.03) 16px
  );
  border: 1px dashed var(--bs-border-color, #dee2e6);
  border-radius: var(--bs-border-radius, 0.375rem);
}

/* Grille semaine (aperçu public) : proche du daygrid FullCalendar */
.teaser-week-calendar {
  max-width: 100%;
}
.teaser-week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.teaser-week-body-cell {
  min-height: 7.25rem;
}
.teaser-week-cell-pills {
  min-height: 2.5rem;
}
@media (max-width: 575.98px) {
  .teaser-week-calendar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .teaser-week-grid {
    min-width: 34rem;
  }
}
.teaser-week-month-hint {
  font-size: 0.65rem;
  line-height: 1.1;
}
.teaser-fc-delay {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  padding: 2px 4px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.teaser-fc-delay--start {
  background: linear-gradient(90deg, #1565c0 0%, #0d6f9a 100%);
  text-align: left;
  border-radius: 4px 0 0 4px;
}
.teaser-fc-delay--mid {
  background: #0d6f9a;
  min-height: 1.1rem;
  border-radius: 0;
}
.teaser-fc-delay--end {
  background: linear-gradient(90deg, #0d6f9a 0%, #00796b 100%);
  text-align: right;
  border-radius: 0 4px 4px 0;
}
.teaser-fc-delay--single {
  background: linear-gradient(90deg, #1565c0 0%, #00796b 100%);
  border-radius: 4px;
}
.teaser-fc-pill {
  border-radius: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  padding: 2px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: none;
  cursor: default;
}
.teaser-fc-pill-label {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.teaser-fc-pill.calendar-fc-event--comparaison {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}
