/* css/components/general.css */

.section-title {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  display: inline-block;
  position: relative;
  color: var(--clr-text);
}

.page-title {
  text-align: left;
  margin-bottom: 1.5rem;
  display: block;
}

.tag,
.detail-tag {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none; /* Empêche le soulignement sur les liens */
}

.tag i.fa-solid,
.detail-tag i.fa-solid {
  margin-right: 0.2rem;
}

/* --- Media Queries --- */
@media (max-width: 768px) {
  .section-title {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
  }

  .section-title::after {
    width: 50px;
    height: 3px;
  }

  .page-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .tag,
  .detail-tag {
    font-size: 0.7rem;
    padding: 0.14rem 0.5rem;
  }
}

/* Styles communs pour les status dots */
.status-dot {
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  margin-right: 0.18em;
  vertical-align: middle;
  flex-shrink: 0;
  background-color: var(--clr-success);
}

.status-dot.ongoing,
.ongoing .status-dot {
  background-color: var(--iclr-success-light);
}

.status-dot.paused,
.paused .status-dot {
  background-color: var(--iclr-warning-light);
}

.status-dot.cancelled,
.cancelled .status-dot {
  background-color: var(--iclr-disabled-light);
}

.status-dot.finished,
.finished .status-dot {
  background-color: var(--iclr-error-light);
}
