body {
    margin: 0;
    background-color: #111;
    color: #f8f9fa;
}

#background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -2;
}

.content {
    padding: 80px 20px;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.parcours-kicker {
    display: inline-flex;
    margin: 6px auto 16px auto;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(71, 197, 255, 0.45);
    background: rgba(10, 23, 40, 0.65);
    color: #cbe8ff;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.parcours-intro {
    max-width: 760px;
    margin: -6px auto 34px auto;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    background: rgba(9, 20, 34, 0.62);
    border: 1px solid rgba(156, 215, 255, 0.24);
    text-align: center;
    color: #f0f7ff;
    line-height: 1.7;
    font-size: 1.03rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.parcours-highlights {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 auto 28px auto;
    max-width: 900px;
}

.parcours-highlights span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(14, 28, 46, 0.78);
    border: 1px solid rgba(87, 179, 232, 0.35);
    color: #d9ecff;
    font-size: 0.88rem;
    letter-spacing: 0.01em;
}

h1 {
    text-align: center;
    color: #ffffff;
    margin-bottom: 60px;
    font-size: 2.7rem;
    letter-spacing: 1.2px;
    text-shadow: 0 2px 12px #00bfff55;
    position: relative;
}

h1::after {
    content: "";
    display: block;
    width: 70px;
    height: 4px;
    margin: 18px auto 0 auto;
    background: linear-gradient(90deg, #00bfff 0%, #7f53ac 100%);
    border-radius: 2px;
    opacity: 0.7;
}


/* Frise chronologique sobre et triangle de fin */
.timeline {
    position: relative;
    padding: 30px 0 56px 0;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(9, 18, 30, 0.38), rgba(9, 18, 30, 0.18));
    border: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(2px);
}

.timeline::before {
    content: '';
    position: absolute;
    top: 24px;
    bottom: 36px;
    left: 50%;
    width: 6px;
    background: linear-gradient(180deg, rgba(48, 185, 255, 0.92), rgba(48, 185, 255, 0.45));
    transform: translateX(-50%);
    z-index: -1;
    border-radius: 999px;
}

.timeline::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    width: 48px;
    height: 48px;
    background-color: rgba(19, 33, 54, 0.98);
    transform: translateX(-50%) rotate(45deg);
    z-index: -1;
    border-radius: 8px;
    box-shadow:
            0 0 14px 1px rgba(48, 185, 255, 0.35),
            0 0 0 3px #111 inset;
    border: 2px solid rgba(48, 185, 255, 0.75);
}

/* LED bleue au centre de la flèche */
.timeline-end-led {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translate(-50%, 50%);
    width: 18px;
    height: 18px;
    background: #00bfff;
    border: 2px solid #dff3ff;
    border-radius: 50%;
    box-shadow: 0 0 8px 2px rgba(0, 191, 255, 0.6);
    z-index: 2;
}

/* Pour que la LED soit bien positionnée dans .content (relative) */
.content {
    position: relative;
}

/* Timeline items */
.timeline-item {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 26px;
    margin-bottom: 46px;
    position: relative;
    padding: 0 26px;
}

.timeline-item::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 26px;
    width: 14px;
    height: 14px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: #8cd7ff;
    border: 2px solid #0f2239;
    box-shadow: 0 0 0 4px rgba(33, 138, 188, 0.25);
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-image {
    width: 48%;
    border-radius: 16px;
    background: linear-gradient(150deg, rgba(13, 24, 39, 0.92), rgba(16, 31, 50, 0.88));
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-image:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}

.timeline-image > img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    object-position: center;
    filter: saturate(0.92) contrast(1.02) brightness(0.95);
    transition: transform 0.25s ease;
}

.timeline-image:hover > img {
    transform: scale(1.02);
}

/* Aucun effet spécial sur les logos */
.logo-container {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: auto;
    max-width: 25%;
    padding: 5px 7px;
    border-radius: 10px;
    background: rgba(8, 17, 30, 0.65);
    border: 1px solid rgba(203, 230, 255, 0.22);
    backdrop-filter: blur(2px);
}

.logo-container img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    border: none;
    background: none;
    box-shadow: none;
    filter: saturate(0.9) contrast(1.01) brightness(1.02);
}

/* Second logo positionné à gauche */
.logo-container-alt {
    left: 10px;
    right: auto;
}

/* Style modernisé pour les blocs de texte uniquement */
.timeline-text {
    width: 48%;
    background: linear-gradient(140deg, rgba(16, 28, 47, 0.94) 0%, rgba(24, 40, 62, 0.94) 100%);
    padding: 25px 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
    color: #e6e6e6;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    position: relative;
}

.timeline-points {
    margin: 12px 0 0 0;
    padding-left: 18px;
}

.timeline-points li {
    margin-bottom: 8px;
    color: #d7e6fb;
    line-height: 1.5;
    font-size: 0.98rem;
}

.timeline-period {
    margin-top: -4px;
    margin-bottom: 14px;
    color: #9fdcff;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.timeline-text:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(0, 123, 255, 0.2);
}

.timeline-text h2 {
    margin-top: 0;
    color: #48c2ff;
    font-size: 1.6rem;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
    text-shadow: 0 0 4px rgba(0, 191, 255, 0.2);
}

.timeline-text p {
    margin-bottom: 12px;
    line-height: 1.75;
    font-size: 1.02rem;
    text-align: left;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .timeline {
        padding: 22px 0 48px 0;
    }

    .timeline-item, .timeline-item:nth-child(odd) {
        flex-direction: column;
        align-items: center;
    }

    .timeline-item {
        padding: 0 8px 0 26px;
    }

    .timeline-item::after {
        left: 14px;
        transform: none;
    }

    .timeline-text, .timeline-image {
        width: 90%;
        margin-bottom: 20px;
    }

    .timeline-image {
        aspect-ratio: 16 / 10;
    }

    .timeline-image > img {
        height: 100%;
    }
    .timeline-text {
        padding: 20px;
    }
    .timeline::before {
        left: 14px;
        transform: none;
    }
    .timeline::after {
        left: 14px;
        transform: rotate(45deg);
    }
    .timeline-end-led {
        left: 14px;
        transform: translateY(50%);
    }

    .parcours-highlights {
        justify-content: flex-start;
        padding-left: 2px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    .timeline-text h2 {
        font-size: 1.3rem;
    }
    .timeline-text p {
        font-size: 1rem;
    }
    .parcours-intro {
        margin-top: -4px;
        font-size: 0.98rem;
    }

    .parcours-highlights span {
        font-size: 0.82rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll,
    .reveal-on-scroll.is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
