/* ============================================================
   css/parcours.css - PAGE PARCOURS
   ============================================================ */

.biography-section {
    max-width: 1000px;
    margin: 100px auto;
    padding: 0 40px;
}

.section-header { margin-bottom: 40px; }

/* Tiret style accueil pour le titre */
.section-label-line {
    color: var(--primary-blue);
    font-weight: 800;
    font-size: 1.5rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 15px;
}
.section-label-line::before {
    content: '';
    display: block;
    width: 40px;
    height: 6px;
    background-color: var(--primary-blue);
}

.biography-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: #4a4a4a; /* Un gris foncé pour la lecture */
    margin-bottom: 25px;
    text-align: justify;
}

/* --- RESPONSIVE PARCOURS --- */
@media (max-width: 900px) {
    .biography-section { margin: 50px auto; padding: 0 20px; }
    .biography-content p { font-size: 0.95rem; text-align: left; }
}

/* ============================================================
   TIMELINE SECTION
   ============================================================ */
.timeline-section {
    padding-bottom: 100px;
    background-color: #fcfcfc; /* Légèrement grisé pour séparer de la bio */
    padding-top: 50px;
}

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

/* La ligne verticale centrale */
.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background-color: var(--primary-blue);
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Les items */
.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    box-sizing: border-box;
    margin-bottom: 20px;
}

/* Positionnement Gauche / Droite */
.timeline-item.left { left: 0; text-align: right; }
.timeline-item.right { left: 50%; text-align: left; }

/* Le point central (Rond bleu) */
.timeline-dot {
    position: absolute;
    top: 25px;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border: 4px solid var(--primary-blue);
    border-radius: 50%;
    z-index: 2;
}

/* Position du point selon le côté */
.timeline-item.left .timeline-dot { right: -10px; }
.timeline-item.right .timeline-dot { left: -10px; }

/* La boite de contenu (Carte blanche) */
.timeline-content {
    background-color: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(12, 63, 146, 0.15); /* Ombre bleutée */
}

/* Petite flèche qui pointe vers la ligne */
.timeline-content::before {
    content: '';
    position: absolute;
    top: 28px;
    width: 0; height: 0;
    border-style: solid;
}

.timeline-item.left .timeline-content::before {
    right: -10px;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent #fff;
}

.timeline-item.right .timeline-content::before {
    left: -10px;
    border-width: 10px 10px 10px 0;
    border-color: transparent #fff transparent transparent;
}

/* Typographie Timeline */
.timeline-date {
    display: inline-block;
    background-color: var(--primary-blue);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.timeline-content h3 {
    font-size: 1.1rem;
    color: var(--primary-blue);
    font-weight: 800;
    margin-bottom: 5px;
}

.timeline-location {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 15px;
    font-weight: 500;
}

.timeline-content p {
    font-size: 0.95rem;
    color: #4a4a4a;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Tags de compétences */
.timeline-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    /* Alignement des tags selon le côté */
    justify-content: flex-end; 
}
.timeline-item.right .timeline-skills { justify-content: flex-start; }

.skill-tag {
    background-color: #f0f4fa;
    color: var(--primary-blue);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 5px;
    font-weight: 600;
}

/* =========================================
   RESPONSIVE TIMELINE (Mobile)
   ========================================= */
@media (max-width: 900px) {
    /* La ligne passe à gauche */
    .timeline-line {
        left: 20px;
    }

    /* Les items prennent toute la largeur et s'alignent à gauche */
    .timeline-item {
        width: 100%;
        padding-left: 50px; /* Place pour la ligne */
        padding-right: 0;
        text-align: left; /* Tout aligné à gauche */
    }

    /* Reset des positions spécifiques left/right */
    .timeline-item.left, .timeline-item.right {
        left: 0;
    }

    /* Le point se cale sur la ligne à gauche */
    .timeline-item.left .timeline-dot, 
    .timeline-item.right .timeline-dot {
        left: 10px; /* 20px (ligne) - 10px (moitié point) */
        right: auto;
    }

    /* Flèche de la boite : toujours à gauche */
    .timeline-item.left .timeline-content::before,
    .timeline-item.right .timeline-content::before {
        right: auto;
        left: -10px;
        border-width: 10px 10px 10px 0;
        border-color: transparent #fff transparent transparent;
    }

    /* Alignement des skills toujours à gauche */
    .timeline-skills {
        justify-content: flex-start;
    }
}

/* ============================================================
   FILTRES & BADGES
   ============================================================ */

/* Conteneur des boutons */
.filter-container {
    text-align: center;
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Style des boutons */
.filter-btn {
    background-color: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.filter-btn:hover {
    background-color: rgba(12, 63, 146, 0.1);
}

.filter-btn.active {
    background-color: var(--primary-blue);
    color: white;
}

/* Badge "En cours" */
.status-badge {
    display: inline-block;
    background-color: #e6f7e9; /* Vert très clair */
    color: #2e7d32; /* Vert foncé */
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    border: 1px solid #c8e6c9;
}

/* Style spécifique pour les items "En cours" (Border gauche colorée) */
.timeline-item.is-current .timeline-content {
    border-left: 4px solid #2e7d32; /* Vert */
    background-color: #fafafa;
}

/* Le point timeline change aussi de couleur si c'est en cours */
.timeline-item.is-current .timeline-dot {
    border-color: #2e7d32;
    background-color: #e6f7e9;
}

/* Responsive pour les filtres */
@media (max-width: 600px) {
    .filter-container {
        flex-wrap: wrap;
    }
    .filter-btn {
        font-size: 0.85rem;
        padding: 6px 15px;
    }
}