/* calendrier.css - Version avec hauteur calculée */
#lt-calendrier {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  display: flex;
  flex-direction: column;
  border: 1px solid #FFFBF4;
  border-radius: 1rem;
  overflow: hidden;
  background: #FFFBF4; 
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

/* ONSGLETS - Hauteur fixe */
.lt-days-tabs {
  background: #FFFBF4;
  border-bottom: 2px solid #FFBF4b;
  padding: 0.5rem 0;
  margin: 0;
  flex-shrink: 0;
  border-radius: 1rem 1rem 0 0;
   box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

/* BOUTONS ONGLETS */
.lt-days-tabs .nav-link {
  border: none;
  background: transparent;
  color: #333;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  margin: 0 0.25rem;
  border-radius: 0.8rem;
}

.lt-days-tabs .nav-link:hover {
  background: rgba(249, 115, 22, 0.1);
  color: #FF9D2D;
}

.lt-days-tabs .nav-link.active {
  background: #FF9D2D;
  color: #FFFBF4;
  font-weight: 600;
}

/* CONTENU SCROLLABLE - Hauteur calculée */
.lt-days-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #FF9D2D #FFFBF4;
  max-height: 400px; /* Valeur par défaut */
  border-bottom-right-radius: 1rem;
  border-bottom-left-radius: 1rem;
   box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;

}

/* Scrollbar pour Webkit (Chrome, Safari) */
.lt-days-content::-webkit-scrollbar {
  width: 8px;
}

.lt-days-content::-webkit-scrollbar-track {
  background: #FFFBF4;
  border-radius: 4px;
}

.lt-days-content::-webkit-scrollbar-thumb {
  background: #FF9D2D;
  border-radius: 4px;
}

.lt-days-content::-webkit-scrollbar-thumb:hover {
  background: #FF9D2D;
}

/* LISTE ÉMISSIONS */
.lt-day-list {
  border: none;
  border-bottom-right-radius: 1rem;
  border-bottom-left-radius: 1rem;
  overflow: hidden;
}

.lt-show-row {
  border: none;
  border-bottom: 1px solid #e5e7eb;
  padding: 1.25rem;
  background: #FFFBF4;
  position: relative;
}

.lt-show-row:hover {
  background: #FFFBF4;
}

.lt-show-row:last-child {
  border-bottom: none;
}

/* ÉMISSION EN COURS */
.lt-show-row.lt-current {
  background: #FFFBF4 !important;
  border-left: 4px solid #FF9D2D;
}

.lt-show-row.lt-current::before {
  content: '🔴 En direct';
  position: absolute;
  background: #FF9D2D;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  bottom: 2px;
  right: 2px;
}

/* COLONNE TEMPS */
.lt-col-time {
  min-width: 90px;
}

.lt-time-lines {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.lt-time-start {
  font-weight: 600;
  color: #FFFBF4;
  font-size: 1rem;
}

.lt-time-end {
  font-size: 0.875rem;
  color: #6b7280;
}

/* COLONNE TITRE */
.lt-col-title {
  flex-grow: 1;
}

.lt-title {
  color: #333;
  font-size: 1.1rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.lt-show-row.lt-current .lt-title {
  color: #FF9D2D;
  font-weight: 700;
}

.lt-desc {
  line-height: 1.5;
  color: #6b7280;
}

/* CHARGEMENT ET ERREUR */
.lt-loading {
  background: #FFFBF4;
  border: 2px dashed #FF9D2D;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.lt-error {
  background: #fef2f2;
  border: 2px solid #ef4444;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

/* BOUTONS */
.lt-reload-btn, .lt-retry-btn {
  border-radius: 0.8rem;
  font-weight: 600;
}

/* MESSAGE "AUCUNE ÉMISSION" */
.lt-none {
  text-align: center;
  color: #9ca3af;
  font-style: italic;
  padding: 3rem 1.5rem;
  background: #f9fafb;
  border-radius: 1rem;
  border: 2px dashed #e5e7eb;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .lt-days-tabs .nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
  
  .lt-show-row {
    padding: 1rem;
  }
  
  .lt-col-time {
    min-width: 70px;
  }
  
  .lt-days-content {
  
  }
}