* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    line-height: 1.6;
    color: #000;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: left;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
    font-size: 12px;
}

a {
    text-decoration: none;
    color: #555;
    transition: color 0.2s ease;
}

a:hover {
    color: #F00; /* ou une autre couleur au survol */
}

.container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.menu {
    flex: 1;
    min-width: 250px;
    border-right: 1px solid #ddd;
    padding-right: 20px;
}

.menu ul {
    list-style: none;
}

.menu ul li {
    margin: 10px 0;
}

.menu ul li a {
    display: block; 
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 5px 0;
}

.content {
    flex: 3;
    min-width: 300px;
    padding: 20px 0;
    padding-left: 20px;
    text-align: justify; 
}

.content img:not(:first-of-type) {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
}

.content > img{
    float: left;
    margin: 0 15px 15px 0;
    max-width: 200px;
    height: auto;
}

.article-list {
    list-style: none;
}

.article-list li {
    margin: 15px 0;
    padding: 1px;
}

.article-list li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.attachments {
    margin: 20px 0;
    padding: 10px;
    background-color: #f9f9f9;
    border-left: 3px solid #ddd;
    clear: left; 
}

.attachments h3 {
    margin-bottom: 10px;
}

.attachments ul {
    list-style: none;
}

.attachments ul li {
    margin: 5px 0;
}

.attachments ul li a {
    text-decoration: none;
    color: #333;
}

footer {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #ddd;
    margin-top: 20px;
    width: 100%;
}

.rubrique-header, .article-header {
    display: flex;
    align-items: center;
    justify-content: flex-start; 
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
    font-size: 1.5em;
    font-weight: bold;
}

.rubrique-header a,
.article-header a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.back-icon {
    font-size: 24px;
    color: #333;
}

.footer,
.footer a {
    color: #aaa;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    .menu, .content {
        border-right: none;
        padding: 0;
    }
    .menu {
        border-bottom: 1px solid #ddd;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
    .content > img:first-of-type {
        float: none;
        margin: 0 0 20px 0;
        max-width: 100%;
    }
}

.attachments ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.attachments ul li {
    margin: 0;
    flex: 0 0 auto;
}

.attachments ul li img {
    width: 200px;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.2s ease;
}

.attachments ul li img:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .attachments ul {
        justify-content: center;
    }
    
    .attachments ul li img {
        width: 150px;
    }
}

@media (max-width: 480px) {
    .attachments ul {
        flex-direction: column;
        align-items: center;
    }
    
    .attachments ul li img {
        width: 100%;
        max-width: 250px;
    }
}
