/* ========================================
   INTERACTIVE PROGRAM PAGE STYLES
   ======================================== */

/* Hero Section Enhancement */
.program-hero {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 4rem 0 3rem;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.program-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(78, 205, 196, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

.program-hero-content {
    position: relative;
    z-index: 2;
}

.program-dates-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 1rem;
    margin-top: 1rem;
    font-weight: 500;
}

.program-dates-badge i {
    color: #4ecdc4;
}

/* Timeline Navigation */
.timeline-nav {
    background: #fff;
    padding: 2rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 70px;
    z-index: 100;
}

.timeline-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-day {
    flex: 1;
    min-width: 180px;
    padding: 1.2rem 1.5rem;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
}

.timeline-day:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.timeline-day.active {
    background: linear-gradient(135deg, #4ecdc4 0%, #45b7aa 100%);
    border-color: #4ecdc4;
    color: #fff;
    box-shadow: 0 5px 20px rgba(78, 205, 196, 0.3);
}

.timeline-day-name {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
    opacity: 0.8;
}

.timeline-day.active .timeline-day-name {
    opacity: 1;
}

.timeline-day-date {
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.timeline-day-count {
    font-size: 0.75rem;
    margin-top: 0.3rem;
    opacity: 0.7;
}

.timeline-day.active .timeline-day-count {
    opacity: 0.9;
}

/* Filters Section */
.filters-section {
    padding: 2rem 0;
    background: #f8f9fa;
}

.filters-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-label {
    font-weight: 600;
    color: #333;
    margin-right: 0.5rem;
}

.filter-btn {
    padding: 0.7rem 1.5rem;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.filter-btn.active {
    color: #fff;
    border-color: transparent;
}

.filter-btn.all.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.filter-btn.table-ronde.active {
    background: linear-gradient(135deg, #4ecdc4 0%, #45b7aa 100%);
}

.filter-btn.cafe.active {
    background: linear-gradient(135deg, #e67e22 0%, #e67e22 100%);
}

.filter-btn.conference.active {
    background: linear-gradient(135deg, #ffd93d 0%, #f4c430 100%);
    color: #333;
}

.filter-btn.ceremonie.active {
    background: linear-gradient(135deg, #6c5ce7 0%, #5f4dd1 100%);
}

.filter-btn.rencontre.active {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
}

.filter-btn.general.active {
    background: linear-gradient(135deg, #74b9ff 0%, #5fa8f5 100%);
}

.filter-count {
    background: rgba(0, 0, 0, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.filter-btn.active .filter-count {
    background: rgba(255, 255, 255, 0.3);
}

/* Search Bar */
.search-section {
    padding: 1.5rem 0;
    background: #fff;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #4ecdc4;
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

.search-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1.1rem;
}

/* Events Grid */
.events-section {
    padding: 3rem 0;
}

.day-section {
    display: none;
}

.day-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.day-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #1a1a2e;
    margin-bottom: 2rem;
    text-align: center;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

/* Event Card */
.event-card {
    background: #fff;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-left: 5px solid #4ecdc4;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(78, 205, 196, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.event-card.hidden {
    display: none;
}

/* Event Card Types */
.event-card.table-ronde {
    border-left-color: #4ecdc4;
}

.event-card.cafe {
    border-left-color: #e67e22;
}

.event-card.conference {
    border-left-color: #ffd93d;
}

.event-card.ceremonie {
    border-left-color: #6c5ce7;
}

.event-card.rencontre {
    border-left-color: #0f3460;
}

.event-card.general {
    border-left-color: #74b9ff;
}

.event-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.event-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: #1a1a2e;
    font-size: 1.1rem;
}

.event-time i {
    color: #4ecdc4;
}

.event-type-badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-type-badge.table-ronde {
    background: rgba(78, 205, 196, 0.15);
    color: #3da89f;
}

.event-type-badge.cafe {
    background: rgba(243, 156, 18, 0.15);
    color: #d35400;
}

.event-type-badge.conference {
    background: rgba(255, 217, 61, 0.15);
    color: #d4a91a;
}

.event-type-badge.ceremonie {
    background: rgba(108, 92, 231, 0.15);
    color: #5f4dd1;
}

.event-type-badge.rencontre {
    background: rgba(15, 52, 96, 0.15);
    color: #0f3460;
}

.event-type-badge.general {
    background: rgba(116, 185, 255, 0.15);
    color: #5fa8f5;
}

.event-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.event-icon.table-ronde {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.2) 0%, rgba(78, 205, 196, 0.1) 100%);
    color: #4ecdc4;
}

.event-icon.cafe {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.2) 0%, rgba(243, 156, 18, 0.1) 100%);
    color: #e67e22;
}

.event-icon.conference {
    background: linear-gradient(135deg, rgba(255, 217, 61, 0.2) 0%, rgba(255, 217, 61, 0.1) 100%);
    color: #ffd93d;
}

.event-icon.ceremonie {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.2) 0%, rgba(108, 92, 231, 0.1) 100%);
    color: #6c5ce7;
}

.event-icon.rencontre {
    background: linear-gradient(135deg, rgba(15, 52, 96, 0.2) 0%, rgba(15, 52, 96, 0.1) 100%);
    color: #0f3460;
}

.event-icon.general {
    background: linear-gradient(135deg, rgba(116, 185, 255, 0.2) 0%, rgba(116, 185, 255, 0.1) 100%);
    color: #74b9ff;
}

.event-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.event-theme {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
    font-style: italic;
}

.event-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #999;
    font-size: 0.9rem;
}

.event-location i {
    color: #4ecdc4;
}

/* PDF Download Button */
.pdf-download-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e67e22 0%, #e67e22 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(78, 205, 196, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-btn 2s infinite;
}

.pdf-download-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(78, 205, 196, 0.5);
}

.pdf-download-btn:active {
    transform: scale(0.95);
}

@keyframes pulse-btn {

    0%,
    100% {
        box-shadow: 0 5px 20px rgba(78, 205, 196, 0.4);
    }

    50% {
        box-shadow: 0 5px 30px rgba(78, 205, 196, 0.6);
    }
}

/* Loading Indicator */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.active {
    display: flex;
}

.loading-content {
    background: #fff;
    padding: 2rem 3rem;
    border-radius: 15px;
    text-align: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4ecdc4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: #333;
    font-weight: 600;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    display: none;
}

.empty-state.active {
    display: block;
}

.empty-state-icon {
    font-size: 4rem;
    color: #e9ecef;
    margin-bottom: 1rem;
}

.empty-state-text {
    color: #999;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeline-container {
        flex-direction: column;
    }

    .timeline-day {
        min-width: 100%;
    }

    .filters-container {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-btn {
        width: 100%;
        justify-content: center;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .pdf-download-btn {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .program-hero {
        padding: 3rem 0 2rem;
    }

    .day-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .event-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .event-time {
        font-size: 1rem;
    }

    .event-title {
        font-size: 1.1rem;
    }
}

/* Print Styles */
@media print {

    .timeline-nav,
    .filters-section,
    .search-section,
    .pdf-download-btn,
    .navbar,
    .footer {
        display: none !important;
    }

    .day-section {
        display: block !important;
        page-break-after: always;
    }

    .event-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}