/* ===== RESET ET STRUCTURE DE BASE ===== */
.tv-timeline-wrapper {
    max-width: 1040px;
    margin: 40px auto;
    font-family: 'Segoe UI', Roboto, sans-serif;
    position: relative;
    padding: 0 20px;
    box-sizing: border-box;
}

.tv-timeline-title {
    text-align: center;
    color: #710a0c;
    margin-bottom: 20px;
    font-size: 1.4em;
    font-weight: 600;
}

/* ===== CONTENEUR DU SLIDER ===== */
.tv-timeline-container {
    position: relative;
    width: 100%;
    max-width: 1040px;
    aspect-ratio: 1000 / 307; /* conserve les proportions */
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    background: #f5f5f5;
}

/* ===== SLIDER HORIZONTAL ===== */
.tv-timeline-slider {
    display: flex;
    width: 700%; /* 7 images = 700% */
    height: 100%;
    transition: transform 0.5s ease;
}

.tv-timeline-item {
    width: calc(100% / 7);
    height: 100%;
    flex-shrink: 0;
    position: relative;
}

.tv-timeline-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== ÉTIQUETTE D’ANNÉE ===== */
.tv-timeline-year {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(113, 10, 12, 0.85);
    color: white;
    padding: 8px 14px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9em;
    z-index: 5;
}

/* ===== BOUTONS DE NAVIGATION ===== */
.tv-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(113, 10, 12, 0.85);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tv-nav-btn:hover {
    background: #710a0c;
    transform: translateY(-50%) scale(1.05);
}

.tv-prev-btn {
    left: 20px;
}

.tv-next-btn {
    right: 20px;
}

/* ===== RESPONSIVE ===== */

/* Tablettes */
@media (max-width: 1024px) {
    .tv-timeline-year {
        bottom: 15px;
        right: 15px;
        padding: 6px 12px;
        font-size: 0.85em;
    }
    .tv-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1em;
    }
}

/* Smartphones */
@media (max-width: 768px) {
    .tv-timeline-wrapper {
        padding: 0 10px;
    }
    .tv-timeline-year {
        bottom: 12px;
        right: 12px;
        padding: 6px 10px;
        font-size: 0.8em;
    }
    .tv-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9em;
    }
    .tv-prev-btn {
        left: 10px;
    }
    .tv-next-btn {
        right: 10px;
    }
}

/* Très petits écrans */
@media (max-width: 480px) {
    .tv-timeline-title {
        font-size: 1.2em;
        margin-bottom: 15px;
    }
    .tv-nav-btn {
        width: 32px;
        height: 32px;
    }
}
