body {
    font-family: Arial, sans-serif;
    padding: 0;
    background-color: #f4f4f4;
    color: black;
    margin-top: -100px;
}

#presentation {
    margin-top: 0;
}

p {
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

h1 {
    margin: 0;
    font-size: 40px;
    font-weight: normal;
    text-align: left;
}

h2 {
    margin: 0;
    margin-top: 5px;
    font-size: 18px;
    font-weight: lighter;
    color: #666;
    text-align: left;
}

#presentation {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.presentation-container {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-top: 20px;
}

.presentation-container p {
    flex: 1;
    margin: 0;
}

img {
    object-fit: cover;
    width: 250px;
    height: 200px;
    margin: 0;
}

section {
    padding: 20px;
    max-width: 800px;
    margin: auto;
}

#articles h2 {
    text-align: center;
    margin-top: 40px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    overflow-x: auto;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 12px;
    text-align: left;
}

th {
    background-color: #333;
    color: white;
}

li {
    line-height: 1.6;
}

#cv h2 {
    text-align: center;
    margin-top: 40px;
}

.course_description {
    margin-left: 20px;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: white;
    width: 100%;
    bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 32px;
        text-align: left;
        margin-left: 20px;
    }

    h2, h3, .presentation-container, p {
        text-align: left;
        margin-left: 20px;
    }

    .presentation-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-top: 15px;
    }

    img {
        width: 80%; /* Réduction de l'image pour tablettes */
        height: auto;
        margin-left: 20px;
    }

    table {
        width: 100%;
        overflow-x: auto;
        display: block; /* Active le défilement horizontal pour le tableau */
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 28px;
        margin-left: 10px;
    }

    h2, h3, p, .presentation-container {
        font-size: 14px;
        margin-left: 10px; /* Marge gauche commune */
        line-height: 1.8; /* Plus d'espace pour aérer le texte */
    }

    img {
        width: 70%; /* Image réduite davantage pour téléphone */
        height: auto;
        margin-left: 10px; /* Marge commune */
    }

    table, th, td {
        font-size: 14px; /* Taille de texte ajustée */
        padding: 8px;    /* Réduction de padding pour lisibilité */
    }

    table {
        width: 100%;    /* Conserve la largeur sans empilement */
        overflow-x: auto;
    }

    .course_description {
        margin-left: 10px;
    }
}
