.history-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.history-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 20px;
    color: white;
}

.history-subtitle {
    text-align: center;
    margin-bottom: 60px;
    color: white;
}

.timeline {
    position: relative;
}

.timeline-line {
    position: absolute;
    width: 2px;
    background-color: white;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    display: flex;
    position: relative;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    left: -9px;
    top: 13%;
    transform: translateY(-50%);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-left {
    flex: 1;
    padding-right: 50px;
    text-align: right;
}

.timeline-right {
    flex: 1;
    margin-left: 50px;
}

.timeline-year {
    font-size: 24px;
    margin-bottom: 15px;
    color: white;
}

.timeline-text {
    color: white;
}


@media screen and (max-width: 768px) {
    .timeline {
        padding: 0 20px;
    }

    .timeline-line {
        left: -25px;
        width: 5px;
    }

    .timeline-item {
        flex-direction: column;
        margin-left: 20px;
        margin-bottom: 0px;
        position: relative;
    }

    .timeline-left {
        padding-right: 0;
        text-align: left;
        margin-bottom: 15px;
    }

    .timeline-right {
        margin-left: 0;
    }

    .timeline-dot {
        display: none;
    }

    .timeline-year {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .timeline-text {
        font-size: 1rem;
        line-height: 1.6;
        background: rgba(255, 255, 255, 0.1);
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .dot-1 { top: 0.5%;}
    .dot-2 { top: 30.5%; }
    .dot-3 { top: 53%; }
    .dot-4 { top: 80%; }

    .history-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .history-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
        padding: 0 20px;
    }
}


/* Styles pour le mode édition */
.edit-controls {
    margin-bottom: 20px;
    text-align: right;
}

.edit-section {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
    color: white;
}

.edit-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-control {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background-color: rgba(255, 255, 255, 0.9);
}

.btn {
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    font-weight: bold;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 0.875rem;
}

.edit-controls-item {
    margin-top: 10px;
    display: flex;
    gap: 5px;
    justify-content: flex-end;
}

.timeline-left .edit-controls-item {
    justify-content: flex-end;
}

.timeline-right .edit-controls-item {
    justify-content: flex-start;
}

/* Styles pour la modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-dialog {
    margin: 10% auto;
    width: 80%;
    max-width: 600px;
}

.modal-content {
    background-color: #333;
    color: white;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #555;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #555;
    padding-top: 15px;
    margin-top: 15px;
}

.close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive pour le mode édition */
@media screen and (max-width: 768px) {
    .edit-controls-item {
        flex-direction: column;
        align-items: stretch;
    }
    
    .modal-dialog {
        width: 95%;
        margin: 5% auto;
    }
}
