/* =========================================================
   SECTION : PARCOURS (Timeline horizontale)
   ========================================================= */

.parcours {
    max-width: 1550px;
    margin: 0 auto;
    padding: 100px 0 40px;

    flex-direction: column;
}

.parcours h2 {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 50px;
}


/* =========================================================
   WRAPPER GLOBAL
   ========================================================= */

.timeline-wrapper {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* =========================================================
   TIMELINE (scroll horizontal)
   ========================================================= */

.timeline {
    position: relative;

    display: flex;
    gap: 80px;

    padding: 120px 40px 90px;
    overflow-x: auto;

    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

/* Masquage scrollbar */
.timeline::-webkit-scrollbar {
    display: none;
}


/* =========================================================
   LIGNE HORIZONTALE (fond continu)
   ========================================================= */

.timeline::after {
    content: "";
    position: absolute;

    top: 50%;
    left: -300px;

    width: 280%;
    height: 6px;

    background: linear-gradient(to right,
            transparent 0%,
            var(--accent-red) 20%,
            var(--accent-red) 80%);

    transform: translateY(-50%);
    z-index: 0;
    pointer-events: none;
}


/* =========================================================
   ÉTAPE (CARD)
   ========================================================= */

.step {
    position: relative;
    z-index: 1;

    min-width: 420px;
    min-height: 260px;
    padding: 32px 40px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);

    border-radius: 24px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.15);

    scroll-snap-align: center;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

/* Survol */
.step:hover {
    transform: translateY(-6px);
}


/* =========================================================
   LISTES (hiérarchie propre)
   ========================================================= */

.step ul {
    margin: 8px 0 0;
    padding-left: 20px;
    list-style-type: disc;
}

.step ul ul {
    margin-top: 4px;
    padding-left: 20px;
    list-style-type: circle;
}

.step ul ul ul {
    margin-top: 2px;
    padding-left: 20px;
    list-style-type: square;
}


/* =========================================================
   POINT SUR LA TIMELINE
   ========================================================= */

.step::before {
    content: "";
    position: absolute;

    top: -54px;
    left: 50%;
    transform: translateX(-50%);

    width: 26px;
    height: 26px;

    border-radius: 50%;
    background: var(--bg-main);
}

/* Type : Travail */
.step.work::before {
    border: 4px solid var(--accent-red);
    box-shadow: 0 0 0 12px rgba(193, 18, 31, 0.18);
}

/* Type : Études */
.step.education::before {
    border: 4px solid #1f7a8c;
    box-shadow: 0 0 0 12px rgba(31, 122, 140, 0.18);
}


/* =========================================================
   BADGE TYPE (coin supérieur)
   ========================================================= */

.step::after {
    position: absolute;
    top: 20px;
    right: 24px;

    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;

    opacity: 0.85;
}

.step.work::after {
    content: "Travail";
    color: var(--accent-red);
}

.step.education::after {
    content: "Études";
    color: #1f7a8c;
}


/* =========================================================
   CONTENU TEXTE
   ========================================================= */

.step .date {
    margin-bottom: 8px;

    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.step.work .date {
    color: var(--accent-red);
}

.step.education .date {
    color: #1f7a8c;
}

.step h3 {
    margin: 12px 0;
    font-size: 1.35rem;
}

.step h4 {
    margin-bottom: 14px;

    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;

    color: var(--text-muted2, #777);
}

.step h4::before {
    content: "— ";
    font-weight: 600;
}

.step p,
.step ul {
    font-size: 1rem;
    line-height: 1.4;
}


/* =========================================================
   ÉTAPE MISE EN AVANT (dernière)
   ========================================================= */

.step:last-child {
    transform: scale(1.05);
}

/* Dernière étape : Travail */
.step.work:last-child {
    outline: 2px solid var(--accent-red);
    box-shadow:
        0 20px 50px rgba(193, 18, 31, 0.35),
        0 0 0 6px rgba(193, 18, 31, 0.15);
}

/* Dernière étape : Études */
.step.education:last-child {
    outline: 2px solid #1f7a8c;
    box-shadow:
        0 20px 50px rgba(31, 122, 140, 0.35),
        0 0 0 6px rgba(31, 122, 140, 0.18);
}


/* =========================================================
   FLÈCHES DE NAVIGATION
   ========================================================= */

.arrow {
    background: none;
    border: none;

    font-size: 3rem;
    color: var(--accent-red);

    padding: 0 10px;
    user-select: none;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.arrow:hover {
    transform: scale(1.2);
    opacity: 0.8;
}


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

@media (max-width: 900px) {
    .arrow {
        display: none;
    }

    .timeline {
        padding-bottom: 20px;
    }

    .step {
        min-width: 260px;
        min-height: auto;
    }
}