body {
    background-color: #F8F9FA;
}

.title {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 1.5rem;
}

.title h1 {
    margin: .75rem 0;
}

section h2 {
    margin-bottom: 1rem;
}

/* Section présentation */
.presentation, .histoire, .actualites, .rejoindre {
    font-size: 1.15rem;
    margin: 5vh 5%;
    background-color: white;
    border-radius: 32px;
    padding: 2.5vh 3%;
}

.presentation {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

.presentation article {
    display: flex;
    flex-direction: column;
    width: 70%;
    line-height: 1.6;
}

.presentation article p {
    margin-bottom: 1rem;
}

.presentation .image-gallery {
    display: flex;
    flex-direction: column;
    margin-left: 2rem;
    width: 30%;
}

/* Section histoire */
.histoire {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

.histoire article {
    display: flex;
    flex-direction: column;
    width: 70%;
    line-height: 1.6;
}

.histoire article p {
    margin-bottom: 1rem;
}

.histoire .image-gallery {
    display: flex;
    flex-direction: column;
    margin-right: 2rem;
    width: 30%;
}

.lien-histoire {
    display: flex;
    margin-top: 1.5vh;
}

.lien-histoire a {
    text-align: center;
    background-color: #E20816;
    text-decoration: none;
    padding: .5rem .75rem;
    border-radius: 8px;
    color: white;
    transition: background-color 0.2s ease;
}

.lien-histoire a:hover {
    background-color: #c00712;
}

/* Section actualités */
.actualites {
    padding-bottom: 3vh;
}

.intro-actualites {
    margin-bottom: 2rem;
    color: #666;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.article-card {
    display: flex;
    flex-direction: column;
    background-color: #F8F9FA;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.article-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-image-placeholder {
    background: linear-gradient(135deg, #E20816 0%, #c00712 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-image-placeholder .material-symbols-outlined {
    font-size: 4rem;
    color: white;
    opacity: 0.8;
}

.article-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.article-content h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.article-excerpt {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    flex-grow: 1;
}

.article-link {
    display: inline-flex;
    align-items: center;
    color: #E20816;
    font-weight: 500;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.no-articles {
    text-align: center;
    color: #888;
    padding: 3rem 0;
}

/* Section rejoindre */
.rejoindre {
    text-align: center;
}

.rejoindre p {
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.lien-join-us {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2.5vh;
}

.lien-join-us a {
    text-decoration: none;
    color: white;
    background-color: #E20816;
    border-radius: 8px;
    padding: .5rem .75rem;
    transition: background-color 0.2s ease;
}

.lien-join-us a:hover {
    background-color: #c00712;
}

/* Galerie d'images commune */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.gallery-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    object-fit: contain;
    background: #fff;
}

/* Page détail article */
.article-detail {
    font-size: 1.15rem;
    margin: 3vh 10%;
    background-color: white;
    border-radius: 32px;
    padding: 3vh 4%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.article-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #E20816;
    text-decoration: none;
    font-size: 1rem;
    transition: opacity 0.2s ease;
}

.back-link:hover {
    opacity: 0.8;
}

.back-link .material-symbols-outlined {
    font-size: 1.25rem;
}

.article-detail h1 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.article-cover {
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 16px;
    overflow: hidden;
}

.article-cover img {
    width: 100%;
    height: auto;
    display: block;
}

.article-body {
    line-height: 1.8;
    color: #333;
}

.article-body p {
    margin-bottom: 1.25rem;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.article-body a {
    color: #E20816;
    text-decoration: underline;
}

.article-body h2, .article-body h3, .article-body h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-body ul, .article-body ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-cta {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
}

.cta-button {
    display: inline-block;
    background-color: #E20816;
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.cta-button:hover {
    background-color: #c00712;
}

.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}
