/* ============================================================
   assets/style/chrono.css
   Styles spécifiques à la page Chronologie (chrono.html)
   ============================================================ */

/* --- Hero / header de la page --- */
.page-hero {
    text-align: center;
    padding: 3rem 1rem 1rem 1rem;
    border-bottom: 2px solid rgba(233, 69, 96, 0.2);
    margin-bottom: 3rem;
}
.page-hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: -0.5px;
}
.page-hero h1 .highlight {
    color: #e94560;
}
.page-hero p {
    font-size: 1.15rem;
    color: #555;
    max-width: 680px;
    margin: 0.5rem auto 0;
}

/* --- Conteneur principal de la timeline --- */
.timeline-container {
    max-width: 1000px;
    margin: 0 auto 4rem auto;
    padding: 0 1.5rem;
    position: relative;
}

/* --- Ligne verticale centrale --- */
.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    background: linear-gradient(to bottom, #e94560, #1a1a2e);
    opacity: 0.25;
    border-radius: 4px;
}

/* --- Chaque élément de la timeline --- */
.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2.8rem;
    position: relative;
}

/* Alternance : gauche / droite */
.timeline-item:nth-child(odd) {
    flex-direction: row;
}
.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

/* --- Bloc de contenu --- */
.timeline-content {
    width: 44%;
    background: #ffffff;
    padding: 1.4rem 1.8rem;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    border-left: 4px solid #e94560;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.timeline-item:nth-child(even) .timeline-content {
    border-left: none;
    border-right: 4px solid #e94560;
}

.timeline-content:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.10);
}

.timeline-content .year {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #e94560;
    background: rgba(233, 69, 96, 0.10);
    padding: 0.2rem 0.9rem;
    border-radius: 30px;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}

.timeline-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0.2rem 0 0.4rem 0;
}

.timeline-content p {
    font-size: 0.98rem;
    line-height: 1.6;
    color: #444;
    margin: 0;
}

.timeline-content .source {
    display: block;
    margin-top: 0.6rem;
    font-size: 0.75rem;
    color: #999;
    font-style: italic;
}

/* --- Rond sur la ligne centrale --- */
.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: #e94560;
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.25);
    top: 1.2rem;
    z-index: 2;
}

/* --- Responsive : Tablettes et mobiles --- */
@media (max-width: 768px) {
    .timeline-container::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        flex-direction: column;
        align-items: stretch;
        padding-left: 48px;
        margin-bottom: 2.2rem;
    }

    .timeline-content {
        width: 100%;
        border-left: 4px solid #e94560 !important;
        border-right: none !important;
    }

    .timeline-dot {
        left: 20px;
        transform: translateX(-50%);
        top: 0.6rem;
        width: 14px;
        height: 14px;
    }

    .page-hero h1 {
        font-size: 2.1rem;
    }
}

@media (max-width: 480px) {
    .timeline-content {
        padding: 1rem 1.2rem;
    }
    .timeline-content h3 {
        font-size: 1.05rem;
    }
    .timeline-content p {
        font-size: 0.92rem;
    }
}