/* Style général des événements */
.fc-custom-event {
  background-color: var(--fc-event-bg, #3788d8); /* fallback si pas d'inline */
  color: var(--fc-event-text, white);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
  line-height: 1.2;
  width: 100%;
  box-sizing: border-box;
}

/* Contenu interne en ligne (flex) */
.fc-custom-event-line {
  display: flex;
  flex-wrap: wrap; /* permet le retour à la ligne si nécessaire */
  gap: 4px;
  align-items: center;
}

/* Heure (gris clair, gras) */
.fc-custom-event-time {
  color: #f0f0f0;
  font-weight: bold;
}

/* Titre (blanc, gras) */
.fc-custom-event-title {
  font-weight: bold;
  flex-shrink: 1;
}

.fc .fc-toolbar-title {
  font-size: 1.7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-align: center;
}

/* Responsive sur petits écrans */
@media (max-width: 500px) {
  .fc .fc-toolbar-title {
    max-width: 130px;
  }

  .fc .fc-button {
    padding: 0.4em 0.3em;
    max-width: 130px;
  }

  .fc-custom-event {
    font-size: 0.8em;
    padding: 2px 4px;
  }

  .fc-custom-event-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
}
