.histoire-container {
    padding: 80px 10%;
    background-color: rgba(249, 249, 249, 0.3);
}

.timeline-buttons {
    display: flex;
    justify-content: center;
    gap: 100px;
    margin-top: 50px;
}

.timeline-buttons button {
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #CC8B65;
    background-color: #fff;
    border: 3px solid #CC8B65;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.timeline-buttons button:hover,
.timeline-buttons button.active {
    background-color: #CC8B65;
    color: #fff;
}

.timeline-content {
    display: none;
}

.timeline-content.active {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 100px;
}

.timeline-content .content {
    display: flex;
    flex-direction: column;
}

.timeline-content .content h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-content .content p {
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 20px;
    line-height: 1.4;
}

.timeline-content img {
    width: 50%;
    height: auto;
    border-radius: 10px;
}

.portrait-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: white;
    padding: 100px 10%;
}

.portrait-section img {
    width: 35%;
}

.portrait-section .text {
    width: 45%;
}

.portrait-section .text p {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.4;
}

/* Responsive styles */
@media (max-width: 768px) {
    .timeline-content {
        flex-direction: column;
        text-align: center;
    }

    .timeline-content img {
        width: 100%;
        margin-bottom: 20px;
    }

    .timeline-buttons {
        gap: 20px;
        flex-wrap: wrap;
    }

    .timeline-buttons button {
        flex: 1 1 auto;
        padding: 15px 15px;
        font-size: 14px;
    }

    .portrait-section {
        flex-direction: column;
        text-align: center;
    }

    .portrait-section img {
        width: 100%;
        margin-bottom: 20px;
    }

    .portrait-section .text {
        width: 100%;
    }

    .portrait-section .text p {
        font-size: 16px;
    }
}

/* Tablet styles */
@media (max-width: 1024px) and (min-width: 769px) {
    .timeline-content {
        flex-direction: column;
        text-align: center;
    }

    .timeline-content img {
        width: 100%;
        margin-bottom: 20px;
    }

    .timeline-buttons {
        gap: 30px;
        flex-wrap: wrap;
    }

    .timeline-buttons button {
        flex: 1 1 auto;
        padding: 15px 15px;
        font-size: 16px;
    }

    .portrait-section {
        flex-direction: column;
        text-align: center;
    }

    .portrait-section img {
        width: 100%;
        margin-bottom: 20px;
    }

    .portrait-section .text {
        width: 100%;
    }

    .portrait-section .text p {
        font-size: 18px;
    }
}