/* --- LE CONTENEUR GLOBAL --- */
.timeline-bloc {
    position: relative;
    width: 100%;
    /* On cache ce qui dépasse (si la boucle de texte est plus longue que la frise) */
    overflow: hidden;
    padding-top: 50px;
}

/* --- LE BLOC DE TITRES EN BOUCLE (ARRIÈRE-PLAN) --- */
.bloc-title-parcours {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Prend toute la hauteur du parent */

    /* Flexbox pour empiler les mots verticalement et les centrer */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    z-index: 0; /* Derrière tout */
    pointer-events: none; /* Non cliquable */
    overflow: hidden; /* Coupe le texte s'il est trop large */
    letter-spacing: 1.1rem;
}

/* --- LE STYLE DU MOT RÉPÉTÉ --- */
.title-parcours {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;

    /* Taille : on réduit un peu vu qu'il y en a plusieurs */
    font-size: 10vw;

    /* Effet Contour */
    color: transparent;
    -webkit-text-stroke: 2px rgba(0, 0, 0, 0.08); /* Opacité très faible pour ne pas gêner la lecture */

    letter-spacing: -3px;
    margin: 0;
    line-height: 0.9; /* Resserre l'espace vertical entre les mots */
    text-transform: uppercase;
    user-select: none; /* Empêche la sélection du texte de fond */
}

/* --- LA TIMELINE (AVANT-PLAN) --- */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
    z-index: 2; /* Important : Passe DEVANT le texte de fond */
}

/* ... LE RESTE DE TON CSS (Timeline, Container, Content, etc.) RESTE PAREIL ... */

/* La ligne verticale centrale */
.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background: linear-gradient(to bottom, #ff6b6b, #4ecdc4, #ffe66d, #1a535c, #602e7d);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 3px;
    /* On ajoute un z-index pour être sûr qu'elle soit devant le texte */
    z-index: 1;
}

/* Containers */
.container {
    padding: 10px 40px;
    position: relative;
    width: 42%; /* Je garde ton 42%, c'est un bon choix pour l'espace */
    z-index: 2; /* Les boites sont au premier plan */
}

.left { left: 0; }
.right { left: 50%; }

/* Ronds */
.container::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -12px;
    background-color: #f4f4f9; /* Doit matcher la couleur de fond du site */
    border: 4px solid #ff6b6b;
    top: 15px;
    border-radius: 50%;
    z-index: 3; /* Au dessus de la ligne */
}
.right::after { left: -13px; }

/* Contenu (Cartes blanches) */
.content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.content p {
    text-align: justify;
}

/* Couleurs */
.container:nth-child(1)::after { border-color: #ff6b6b; }
.container:nth-child(1) .content { border-top: 5px solid #ff6b6b; }
.container:nth-child(2)::after { border-color: #4ecdc4; }
.container:nth-child(2) .content { border-top: 5px solid #4ecdc4; }
.container:nth-child(3)::after { border-color: #ffe66d; }
.container:nth-child(3) .content { border-top: 5px solid #ffe66d; }
.container:nth-child(4)::after { border-color: #1a535c; }
.container:nth-child(4) .content { border-top: 5px solid #1a535c; }
.container:nth-child(5)::after { border-color: #602e7d; }
.container:nth-child(5) .content { border-top: 5px solid #602e7d; }

/* Flèches */
.left::before {
    content: " "; height: 0; position: absolute; top: 22px; width: 0; z-index: 1; right: 30px;
    border: medium solid white; border-width: 10px 0 10px 10px; border-color: transparent transparent transparent white;
}
.right::before {
    content: " "; height: 0; position: absolute; top: 22px; width: 0; z-index: 1; left: 30px;
    border: medium solid white; border-width: 10px 10px 10px 0; border-color: transparent white transparent transparent;
}

/* Media Queries */
@media screen and (max-width: 600px) {
    /* Sur mobile, on augmente la taille du texte de fond pour garder l'effet graphique */
    .title-parcours { font-size: 18vw; line-height: 0.8; }

    .timeline::after { left: 31px; }
    .container { width: 100%; padding-left: 70px; padding-right: 25px; }
    .left, .right { left: 0; }
    .container::after, .right::after { left: 18px; }
    .left::before, .right::before { left: 60px; border-width: 10px 10px 10px 0; border-color: transparent white transparent transparent; }
}

.bloc-top-card-project{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.img-parcours {
    width: 44px;
    border-radius: 8px;
}

#parcours {
    padding-top: 75px;
}
