/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #f97316;
    --secondary-color: #facc15;
    --background-color: #000000;
    --text-color: #ffffff;
    --card-background: #1f2937;
    --shadow-color: rgba(249, 115, 22, 0.2);
}

body {
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    margin-top: 70px;
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(249, 115, 22, 0.2);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.2em;
}

.nav-logo .nav-link {
    background: linear-gradient(to right, #f97316, #facc15);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: all 0.3s ease;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #f97316, #facc15);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #f97316;
}

.nav-link:hover::after {
    width: 100%;
}

/* Container principal */
.container {
    max-width: 1400px;
    margin: 80px auto;
    padding: 0 20px;
}

/* Titre principal */
h1 {
    text-align: center;
    font-size: 4em;
    margin-bottom: 80px;
    font-weight: 800;
    letter-spacing: 0.2em;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, 
        transparent,
        var(--primary-color) 15%,
        var(--secondary-color) 85%,
        transparent
    );
    left: 50%;
    transform: translateX(-50%);
}

/* Événements */
.event {
    margin: 100px 0;
    position: relative;
}

.event::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 2px;
    background: var(--primary-color);
    left: calc(50% - 5px);
    top: 12px;
}

.event-content {
    width: 45%;
    position: relative;
    transition: transform 0.4s ease;
}

.event:nth-child(odd) .event-content {
    margin-left: auto;
    transform-origin: left center;
}

.event:nth-child(even) .event-content {
    transform-origin: right center;
}

/* Marqueurs */
.event-marker {
    position: absolute;
    width: 24px;
    height: 24px;
    background: var(--background-color);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    top: 0;
    transition: all 0.3s ease;
}

.event:nth-child(odd) .event-marker {
    left: -12px;
}

.event:nth-child(even) .event-marker {
    right: -12px;
}

/* Années */
.event-content::before {
    content: attr(year);
    position: absolute;
    top: 0;
    font-size: 1.2em;
    color: var(--primary-color);
    font-weight: 700;
}

.event:nth-child(odd) .event-content::before {
    left: -120px;
}

.event:nth-child(even) .event-content::before {
    right: -120px;
}

/* Cartes d'information */
.event-info {
    background: linear-gradient(to bottom right, #1f2937, #111827);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
    cursor: pointer;
}

.event.active .event-info {
    transform: translateY(0);
    opacity: 1;
    margin-left: 20px;
    margin-right: 20px;
}

.event-info:hover {
    border-color: rgba(249, 115, 22, 0.3);
    transform: translateY(-5px);
}

/* Titres des événements */
h2 {
    font-size: 1.5em;
    margin-bottom: 15px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

/* Description des événements */
.event-description {
    display: none;
    margin-top: 20px;
    font-size: 1.1em;
    line-height: 1.6;
}

/* Conteneur vidéo */
.video-container {
    margin-top: 20px;
    position: relative;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    background: #111827;
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.video-preview {
    position: relative;
    padding-bottom: 56.25%;
    background: #000;
}

/* Bouton de lecture */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(249, 115, 22, 0.9);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    border-left: 20px solid #ffffff;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 960px;
    margin: 50px auto;
    padding: 20px;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 1001;
}

#modal-video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

#modal-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Effets de survol */
.event-content:hover .event-marker {
    transform: scale(1.5);
    background: var(--primary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.4);
}

.video-preview:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(249, 115, 22, 1);
}

/* Animations */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.event.animate {
    animation: fadeInScale 0.6s ease forwards;
}

/* Media Queries */
@media (max-width: 768px) {
    .container {
        margin-top: 120px;
    }

    .timeline::before {
        left: 30px;
    }
    
    .event-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }
    
    .event-marker {
        left: 18px !important;
    }
    
    .event-content::before {
        left: -60px !important;
    }

    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-link {
        width: 100%;
        text-align: center;
    }

    h1 {
        font-size: 2.5em;
        margin-bottom: 40px;
    }
}

/* Classe utilitaire */
.hidden {
    display: none !important;
}