header {
    background-color: #f1a7dc;
    padding: 30px;
    text-align: center;
    margin-bottom: 80px;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #ff99cc, #9966cc, #003366);
    color: #ffffff;
}

.menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    background-color: rgba(255, 255, 255, 0.2);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #c564d8;
    margin-left: 20px;
}

nav {
    display: flex;
    justify-content: flex-end;
    flex-grow: 1;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
    padding-right: 10%;
}

nav li {
    margin: 0;
}

nav a {
    text-decoration: none;
    color: #c564d8;
    font-size: 20px;
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover {
    color: #d599f1;
}

.burger-menu {
    display: none;
    font-size: 30px;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
}

@media (max-width: 768px) {
    .burger-menu {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.8);
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    nav ul.active {
        display: flex;
    }

    nav li {
        margin: 10px 0;
    }
}

/* ---- Titre frise ---- */
.timeline-title {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    margin-top: 40px;
}

/* ---- Frise chronologique ---- */
.timeline-container {
    position: relative;
    margin: 40px auto;
    padding: 20px 0;
    width: 90%;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 4px;
    background: white;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.timeline-item:nth-child(odd) .bubble {
    transform: translateX(-120%);
}

.timeline-item:nth-child(even) .bubble {
    transform: translateX(120%);
}

.bubble {
    background: #fce4ec;
    color: #333;
    padding: 15px 20px;
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 200px;
    min-height: 100px;
    transition: transform 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .timeline-container {
        width: 95%;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        text-align: center;
        padding: 10px;
        display: block;
    }

    .timeline-container::after {
        left: 10px;
    }

    .bubble::after {
        display: none;
    }
}

/* ---- À propos de moi ---- */
.about-me {
    background-color: rgb(244, 192, 230);
    border-radius: 15px;
    padding: 20px;
    margin: 20px auto;
    width: 80%;
    text-align: center;
}

/* ---- MOOCs ---- */
.moocs {
    text-align: center;
    margin-top: 50px;
}

.mooc-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.mooc {
    width: 250px;
    margin: 20px;
    text-align: center;
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mooc:hover {
    transform: scale(1.05);
}

.mooc img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}
