.timeline-container {
    position: relative;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 10px 0;
}

.timeline-track {
    position: relative;
    height: 4px;
    background-color: rgba(17,157,143,0.7);
    margin-top: 50px;
    margin-bottom: 200px;
}

.timeline-item {
    position: absolute;
    top: 5px;
    transform: translateX(-50%);
    padding: 0 5px;
}

.timeline-point {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(220,81,81,0.6);
    margin: 0 auto;
    border: 4px solid #fff;
    cursor: pointer;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 0 3px rgba(141, 177, 208, 0.3);
    transition: all 0.4s ease;
}

.timeline-point:hover {
    /*background-color: #6c8eaf;*/
    transform: scale(1.3);
}

.timeline-date {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: bold;
    color: rgba(17,157,143,0.6);
    white-space: nowrap;
    background-color: rgba(232,165,65,0);
    padding: 2px 8px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-date {
    transform: translateX(-50%) translateY(-5px);
    color: rgba(17,157,143,1);
}

.timeline-content {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 200px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    border-top: 4px solid rgba(17,157,143,0.6);
    margin: 0px 5px 0px 0px;
}

.timeline-item:hover .timeline-content {
    transform: translateX(-50%) translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-top-color: rgba(17,157,143,1);
}

.timeline-title {
    /*font-weight: bold;*/
    margin-bottom: 10px;
    color: #6c8eaf;
    font-size: 1.0em;
}

.timeline-description {
    font-size: 0.9em;
    color: #8a9aa9;
    margin-bottom: 10px;
    /* Hauteur fixe pour que le bouton soit toujours au même endroit */
    height: 40px;
    overflow: hidden;
}

.timeline-button-container {
    margin-top: auto;
    /* Assurer que le conteneur du bouton est toujours au bas de la boîte */
    padding-bottom: 5px;
    width: 100%;
}

.timeline-button {
    background-color: rgba(220,81,81,0.6);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(168, 208, 230, 0.3);
}

.timeline-button:hover {
    background-color: rgba(220,81,81,0.3);
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(108, 142, 175, 0.4);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.8);
    transition: transform 0.4s ease;
    border-top: 5px solid #a8d0e6;
}

.modal.show .modal-content {
    transform: scale(1);
}

.close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #a8d0e6;
    transition: color 0.3s ease;
}

.close-button:hover {
    color: #6c8eaf;
}

.modal-title {
    margin-bottom: 20px;
    color: #6c8eaf;
    padding-right: 25px;
    font-size: 1.4em;
}

.modal-description {
    line-height: 1.7;
    color: #5a6268;
}

@media (max-width: 768px) {
    .timeline-track {
        margin: 40px 0px 225px 0px;
    }
    
    .timeline-content {
        width: 150px;
        height: 200px;
    }
}
