/* ===== MASQUER LE HEADER MINIMAL ===== */

.header-minimal {
    display: none !important;
}

/* ===== TIMELINE AMÉLIORÉE AVEC SCROLL ===== */

.program-timeline-container {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    padding: 20px;
    margin-top: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
}

.timeline-header span:first-child {
    font-size: 16px;
    font-weight: 700;
    color: var(--gold);
}

#timelineProgress {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-gray);
}

/* Wrapper pour permettre le scroll horizontal */
.program-timeline {
    position: relative;
    width: 100%;
    height: 80px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding-bottom: 10px;
}

/* Personnaliser la scrollbar */
.program-timeline::-webkit-scrollbar {
    height: 8px;
}

.program-timeline::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.program-timeline::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #d4af37, #f0e68c);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.program-timeline::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #f0e68c, #d4af37);
}

/* Track de la timeline - largeur dynamique basée sur le contenu */
.timeline-track {
    position: relative;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    min-width: 2000px; /* Largeur minimum pour permettre le scroll */
    width: max-content;
    display: flex;
}

/* Segments de programmes - NON CLIQUABLES */
.timeline-segment {
    position: absolute;
    height: 100%;
    border-radius: 8px;
    cursor: default; /* Pas de curseur pointer */
    pointer-events: none; /* Désactiver tous les événements */
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 0 15px;
    overflow: hidden;
    border: 2px solid transparent;
}

/* Hover désactivé - on ne garde que pour le tooltip */
.timeline-segment:hover {
    /* Pas de transformation */
}

.timeline-segment.active {
    border: 3px solid var(--gold);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
    z-index: 15;
    transform: scale(1.05);
}

.segment-title {
    font-size: 13px;
    font-weight: 600;
    color: white;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

/* Curseur de temps actuel */
.timeline-cursor {
    position: absolute;
    top: 0;
    width: 3px;
    height: 50px;
    background: linear-gradient(180deg, #ef4444, #dc2626);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.8);
    z-index: 20;
    pointer-events: none;
    border-radius: 2px;
}

.timeline-cursor::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.8);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(239, 68, 68, 0.8);
        transform: translateX(-50%) scale(1);
    }
    50% {
        box-shadow: 0 0 25px rgba(239, 68, 68, 1);
        transform: translateX(-50%) scale(1.2);
    }
}

/* Marqueurs de temps toutes les 30 secondes */
.timeline-time-markers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    pointer-events: none;
    z-index: 5;
}

.time-marker {
    position: absolute;
    width: 1px;
    height: 100%;
    background: rgba(212, 175, 55, 0.2);
    pointer-events: none;
}

.time-marker::before {
    content: attr(data-time);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    color: rgba(212, 175, 55, 0.5);
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
}

/* Heures en dessous de la timeline */
.timeline-hours {
    position: relative;
    height: 25px;
    margin-top: 10px;
    min-width: 2000px;
    width: max-content;
}

.timeline-hour {
    position: absolute;
    font-size: 11px;
    color: var(--text-gray);
    font-weight: 600;
    white-space: nowrap;
}

.timeline-hour::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 8px;
    background: rgba(212, 175, 55, 0.4);
}

/* Tooltip pour les détails du programme - TOUJOURS CENTRÉ */
.timeline-tooltip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(26, 26, 26, 0.95));
    backdrop-filter: blur(10px);
    border: 2px solid var(--gold);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s ease;
    min-width: 300px;
    max-width: 400px;
}

.timeline-tooltip.visible {
    opacity: 1;
}

/* Couleurs vives pour les segments - Palette variée */
.timeline-segment.color-1 { background: linear-gradient(135deg, #ef4444, #dc2626) !important; }
.timeline-segment.color-2 { background: linear-gradient(135deg, #f97316, #ea580c) !important; }
.timeline-segment.color-3 { background: linear-gradient(135deg, #f59e0b, #d97706) !important; }
.timeline-segment.color-4 { background: linear-gradient(135deg, #eab308, #ca8a04) !important; }
.timeline-segment.color-5 { background: linear-gradient(135deg, #84cc16, #65a30d) !important; }
.timeline-segment.color-6 { background: linear-gradient(135deg, #22c55e, #16a34a) !important; }
.timeline-segment.color-7 { background: linear-gradient(135deg, #10b981, #059669) !important; }
.timeline-segment.color-8 { background: linear-gradient(135deg, #14b8a6, #0d9488) !important; }
.timeline-segment.color-9 { background: linear-gradient(135deg, #06b6d4, #0891b2) !important; }
.timeline-segment.color-10 { background: linear-gradient(135deg, #0ea5e9, #0284c7) !important; }
.timeline-segment.color-11 { background: linear-gradient(135deg, #3b82f6, #2563eb) !important; }
.timeline-segment.color-12 { background: linear-gradient(135deg, #6366f1, #4f46e5) !important; }
.timeline-segment.color-13 { background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important; }
.timeline-segment.color-14 { background: linear-gradient(135deg, #a855f7, #9333ea) !important; }
.timeline-segment.color-15 { background: linear-gradient(135deg, #d946ef, #c026d3) !important; }
.timeline-segment.color-16 { background: linear-gradient(135deg, #ec4899, #db2777) !important; }
.timeline-segment.color-17 { background: linear-gradient(135deg, #f43f5e, #e11d48) !important; }
.timeline-segment.color-18 { background: linear-gradient(135deg, #ff6b6b, #ff5252) !important; }
.timeline-segment.color-19 { background: linear-gradient(135deg, #ff8c42, #ff6f00) !important; }
.timeline-segment.color-20 { background: linear-gradient(135deg, #ffd93d, #ffc107) !important; }

/* Segment actif avec bordure dorée */
.timeline-segment.active {
    border: 3px solid var(--gold) !important;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.6) !important;
    z-index: 15 !important;
    transform: scale(1.05) !important;
}

.tooltip-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.tooltip-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.tooltip-title {
    flex: 1;
}

.tooltip-title h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--gold);
    line-height: 1.3;
}

.tooltip-category {
    display: inline-block;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: var(--gold);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tooltip-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tooltip-detail-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-gray);
}

.tooltip-detail-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.tooltip-detail-row strong {
    color: var(--text-white);
    font-weight: 600;
}

/* Bouton de partage flottant */
.floating-share-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #d4af37, #f0e68c);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
    z-index: 1000;
    animation: float 3s ease-in-out infinite;
}

.floating-share-button:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.6);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .program-timeline {
        height: 70px;
    }
    
    .timeline-track {
        height: 40px;
        min-width: 1500px;
    }
    
    .timeline-cursor {
        height: 40px;
    }
    
    .segment-title {
        font-size: 11px;
    }
    
    .floating-share-button {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 20px;
    }
    
    .timeline-tooltip {
        min-width: 250px;
        max-width: 300px;
        padding: 15px;
    }
    
    .tooltip-title h4 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .timeline-header span:first-child {
        font-size: 14px;
    }
    
    #timelineProgress {
        font-size: 12px;
    }
    
    .program-timeline {
        height: 60px;
    }
    
    .timeline-track {
        height: 35px;
        min-width: 1200px;
    }
    
    .timeline-cursor {
        height: 35px;
        width: 2px;
    }
    
    .segment-title {
        font-size: 10px;
        padding: 0 10px;
    }
    
    .timeline-tooltip {
        min-width: 200px;
        max-width: 250px;
        padding: 12px;
    }
    
    .tooltip-icon {
        font-size: 24px;
    }
    
    .tooltip-title h4 {
        font-size: 14px;
    }
    
    .tooltip-detail-row {
        font-size: 12px;
    }
}