/* Overrides for Parcours Section */

/* Ensure container structure */
.parcours-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.parcours-column {
    flex: 1;
    min-width: 300px;
}

/* Header Styles */
.parcours-column h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--accent-color);
    font-size: 1.5rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* === Custom Styles for Professional Path (2nd Column) === */

/* Header color */
.parcours-column:last-child h3,
.parcours-column:last-child h3 i {
    color: #ff9f43;
    /* Orange */
    border-color: #ff9f43;
}

/* Timeline vertical line color */
.parcours-column:last-child .timeline::before {
    background: #ff9f43;
    opacity: 0.5;
}

/* Timeline dot color */
.parcours-column:last-child .timeline-date::after {
    background: #ff9f43;
    border-color: var(--bg-color);
    /* Ensure border matches bg */
}

/* Highlight text color in this column */
.parcours-column:last-child .highlight {
    color: #ff9f43;
}

@media (max-width: 768px) {
    .parcours-container {
        flex-direction: column;
    }
}

/* Styles for Show/Hide Details in Timeline */
.timeline-details {
    margin-top: 1rem;
    font-size: 0.95em;
    background: rgba(255, 255, 255, 0.03);
    /* Subtle background */
    border-radius: 8px;
    padding: 0.5rem;
}

.timeline-details summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text-color);
    list-style: none;
    /* Remove default triangle */
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.5rem;
    transition: color 0.3s;
}

/* Add custom icon */
.timeline-details summary::after {
    content: '+';
    font-weight: bold;
    font-size: 1.2em;
    transition: transform 0.3s ease;
    margin-left: 10px;
}

.timeline-details[open] summary::after {
    transform: rotate(45deg);
    /* Turn + into x */
}

.timeline-details summary::-webkit-details-marker {
    display: none;
}

.timeline-details p,
.timeline-details ul {
    margin-top: 0.5rem;
    padding: 0 1rem 1rem 1rem;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-details ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}

.timeline-details ul li {
    margin-bottom: 0.3rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

/* Specific color override for the professional column details */
.parcours-column:last-child .timeline-details summary {
    color: #ff9f43;
    /* Orange text for summary */
}

.parcours-column:last-child .timeline-details summary:hover {
    color: #ffca93;
    /* Lighter orange on hover */
}

/* Strong tags in details */
.timeline-details strong {
    color: var(--accent-color);
}

.parcours-column:last-child .timeline-details strong {
    color: #ff9f43;
    /* Orange */
}

/* Timeline Button that replaces the BTS SIO section */
.timeline-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 16px;
    background-color: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.timeline-btn:hover {
    background-color: rgba(100, 255, 218, 0.1);
    /* Light accent background */
    transform: translateX(5px);
    /* Subtle move right */
    box-shadow: 0 0 10px rgba(100, 255, 218, 0.2);
}