/* Styles spécifiques pour les pages Historique */

/* Hero section */
.hero-section, .timeline-header, .event-header {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #0056b3 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before, 
.timeline-header::before, 
.event-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

/* Timeline styles */
.timeline-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #3498db, #2ecc71, #f39c12, #e74c3c);
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
}

.timeline-left {
    justify-content: flex-end;
}

.timeline-right {
    justify-content: flex-start;
}

.timeline-left .timeline-content {
    margin-right: 3rem;
    text-align: right;
}

.timeline-right .timeline-content {
    margin-left: 3rem;
    text-align: left;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    border: 4px solid white;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2);
}

.timeline-milestone .timeline-marker {
    width: 60px;
    height: 60px;
    box-shadow: 0 0 0 6px rgba(241, 196, 15, 0.3);
    animation: pulse 2s infinite;
}

.timeline-content {
    max-width: 45%;
    flex: 1;
}

/* Timeline interactive */
.interactive-timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: rgba(52, 152, 219, 0.2);
    z-index: 1000;
}

.timeline-progress-bar {
    height: 100%;
    background: linear-gradient(to right, #3498db, #2ecc71);
    width: 0%;
    transition: width 0.3s ease;
}

.interactive-timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline-event {
    position: relative;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.timeline-event.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-event.hidden {
    display: none;
}

.timeline-year-marker {
    position: absolute;
    left: -80px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    text-align: center;
}

.year-label {
    display: inline-block;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
}

.timeline-event-content {
    margin-left: 40px;
    position: relative;
}

.timeline-event-content::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 2px;
    background-color: #dee2e6;
}

.event-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.1);
    border-left: 4px solid #3498db;
    transition: all 0.3s ease;
    overflow: hidden;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.15);
}

.event-header {
    padding: 1.5rem 1.5rem 0;
}

.event-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.event-badges {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.event-body {
    padding: 0 1.5rem 1.5rem;
}

.event-title {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.event-description {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Milestone cards */
.milestone-card {
    transition: all 0.3s ease;
}

.milestone-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.milestone-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Statistiques */
.stat-item, .stat-box {
    text-align: center;
}

.stat-box {
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.stat-box:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
}

.stats-container {
    backdrop-filter: blur(10px);
}

/* Couleurs par type d'événement */
.type-fondation { color: #e74c3c !important; }
.bg-type-fondation { background-color: #e74c3c !important; }

.type-expansion { color: #3498db !important; }
.bg-type-expansion { background-color: #3498db !important; }

.type-innovation { color: #2ecc71 !important; }
.bg-type-innovation { background-color: #2ecc71 !important; }

.type-partenariat { color: #f39c12 !important; }
.bg-type-partenariat { background-color: #f39c12 !important; }

.type-reconnaissance { color: #9b59b6 !important; }
.bg-type-reconnaissance { background-color: #9b59b6 !important; }

.type-autre { color: #95a5a6 !important; }
.bg-type-autre { background-color: #95a5a6 !important; }

/* Animations */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 6px rgba(241, 196, 15, 0.3);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(241, 196, 15, 0.1);
    }
    100% {
        box-shadow: 0 0 0 6px rgba(241, 196, 15, 0.3);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-event.animate {
    animation: fadeInUp 0.6s ease forwards;
}

/* Breadcrumbs */
.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* Info boxes */
.info-box {
    transition: all 0.3s ease;
}

.info-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

.content-text {
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .timeline-line {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row;
        justify-content: flex-start !important;
    }
    
    .timeline-marker {
        left: 30px;
        transform: translateX(-50%);
    }
    
    .timeline-content {
        max-width: calc(100% - 80px);
        margin-left: 60px !important;
        margin-right: 0 !important;
        text-align: left !important;
    }
    
    .timeline-year-marker {
        position: static;
        margin-bottom: 1rem;
        text-align: left;
    }
    
    .timeline-event-content {
        margin-left: 0;
    }
    
    .timeline-event-content::before {
        display: none;
    }
    
    .event-header {
        padding: 1rem 1rem 0;
    }
    
    .event-body {
        padding: 0 1rem 1rem;
    }
    
    .event-badges {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
    }
    
    .display-4, .display-5 {
        font-size: 1.8rem;
    }
    
    .hero-section .btn,
    .timeline-header .btn,
    .event-header .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .stats-container {
        margin-top: 2rem;
    }
    
    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 1rem;
    }
    
    .d-flex.justify-content-between .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .hero-section,
    .timeline-header,
    .event-header {
        padding: 3rem 0 !important;
    }
    
    .stat-item .h2, .stat-box .h3 {
        font-size: 1.5rem;
    }
}

/* Effets de parallaxe léger */
.parallax-light {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Styles pour les filtres */
.form-select, .form-check-input {
    transition: all 0.3s ease;
}

.form-select:focus, .form-check-input:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Styles pour les contrôles de timeline */
.timeline-controls .btn {
    transition: all 0.3s ease;
}

.timeline-controls .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
}