/* Chronologie Page Styles */

/* Timeline Filters */
.timeline-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 30px 0;
    justify-content: center;
}

.tag-filter {
    padding: 6px 16px;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    background: #fff;
    color: #4a5568;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag-filter:hover {
    border-color: #718096;
    color: #2d3748;
}

.tag-filter.active {
    background: #4a5568;
    color: #fff;
    border-color: #4a5568;
}

/* Period Title */
.timeline-period {
    margin-bottom: 20px;
}

.period-title {
    font-size: 1.4rem;
    color: #2d3748;
    padding: 15px 0 10px 0;
    margin: 40px 0 10px 0;
    border-bottom: 2px solid #e2e8f0;
    font-family: 'Cormorant Garamond', Georgia, serif;
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #cbd5e0;
}

/* Timeline Item */
.timeline-item {
    position: relative;
    margin-bottom: 24px;
    transition: opacity 0.3s ease;
}

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

/* Timeline Dot */
.timeline-dot {
    position: absolute;
    left: -33px;
    top: 18px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #a0aec0;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #cbd5e0;
    z-index: 1;
    transition: all 0.2s ease;
}

.timeline-item:hover .timeline-dot {
    background: #4a5568;
    box-shadow: 0 0 0 3px #a0aec0;
    transform: scale(1.3);
}

/* Timeline Card */
.timeline-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 18px 22px;
    transition: all 0.2s ease;
    border-left: 3px solid #cbd5e0;
}

.timeline-item:hover .timeline-card {
    border-left-color: #4a5568;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.timeline-date {
    font-size: 0.8rem;
    color: #718096;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-title {
    font-size: 1.05rem;
    color: #2d3748;
    margin: 4px 0 6px 0;
    font-family: 'Cormorant Garamond', Georgia, serif;
}

.timeline-link {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.2s ease;
}

.timeline-link:hover {
    color: #4a5568;
    text-decoration: underline;
}

.timeline-link::after {
    content: ' 🔗';
    font-size: 0.75em;
    opacity: 0.5;
}

.timeline-desc {
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 10px;
}

/* Tags */
.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.72rem;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.3px;
    opacity: 0.85;
}

/* Responsive */
@media (max-width: 768px) {
    .timeline {
        padding: 20px 0 20px 30px;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-dot {
        left: -27px;
        width: 10px;
        height: 10px;
    }

    .timeline-card {
        padding: 14px 16px;
    }

    .timeline-filters {
        gap: 6px;
    }

    .tag-filter {
        padding: 5px 12px;
        font-size: 0.8rem;
    }
}
