:root {
    --primary-color: #6c5ce7;
    --secondary-color: #a29bfe;
    --bg-color: #0f0c29;
    --text-color: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.timeline-body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to bottom, #0f0c29, #302b63, #24243e);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header & Footer */
.timeline-header,
.timeline-footer {
    text-align: center;
    padding: 60px 20px;
}

.timeline-header h1 {
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

/* Timeline Core */
.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline-line {
    position: absolute;
    width: 4px;
    background: var(--secondary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 15px var(--primary-color);
}

/* Items */
.timeline-item {
    padding: 20px 40px;
    position: relative;
    width: 50%;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

/* Contenu des cartes */
.content {
    padding: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.3s ease;
}

.content:hover {
    transform: scale(1.03);
    border-color: var(--secondary-color);
}

.date {
    display: block;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

/* Image Placeholder */
.image-placeholder {
    width: 100%;
    margin-top: 15px;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--secondary-color);
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

/* Cercle sur la ligne */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background: var(--bg-color);
    border: 4px solid var(--secondary-color);
    top: 30px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.right::after {
    left: -10px;
}

/* Animations de révélation */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media screen and (max-width: 768px) {
    .timeline-line {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        text-align: left !important;
    }

    .timeline-item.right {
        left: 0;
    }

    .timeline-item::after {
        left: 21px !important;
    }
}