body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    color: #202124;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 1px solid #dadce0;
    padding: 30px 40px;
    background-color: #ffffff;
}

header h1 {
    font-size: 2.5em;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 20px 0;
    color: #202124;
    letter-spacing: 0.05em;
    text-align: center;
}

nav {
    display: flex;
    justify-content: center;
    gap: 10px;
}

nav a {
    text-decoration: none;
    color: #3c4043;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

nav a.active, nav a:hover {
    background-color: #f1f3f4;
    color: #202124;
}

.container {
    display: flex;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    gap: 40px;
}

.main-content {
    flex: 3;
}

.sidebar {
    flex: 1;
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #dadce0;
    height: fit-content;
}

.post {
    border: 1px solid #dadce0;
    border-radius: 12px;
    margin-bottom: 40px;
    overflow: hidden;
    background-color: #ffffff;
}

.article-banner {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    display: block;
}

.post-content {
    padding: 25px;
}

.post-meta {
    font-size: 0.85em;
    color: #5f6368;
    display: block;
    margin-bottom: 15px;
}

.post h2 {
    margin-top: 0;
    font-size: 1.8em;
    color: #202124;
}

.video-container {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

.sidebar h3 {
    margin-top: 0;
    font-size: 1.1em;
    border-bottom: 1px solid #dadce0;
    padding-bottom: 10px;
    color: #202124;
}

.social-links a {
    display: block;
    color: #1a73e8;
    text-decoration: none;
    margin-bottom: 10px;
    font-weight: 500;
}

.social-links a:hover {
    text-decoration: underline;
}

.last-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.last-posts li {
    margin-bottom: 15px;
}

.last-posts a {
    text-decoration: none;
    color: #202124;
    font-weight: 500;
}

.last-posts a:hover {
    color: #1a73e8;
}

.last-posts span {
    font-size: 0.8em;
    color: #5f6368;
    display: block;
    margin-top: 3px;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 9999;
    text-align: center;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.overlay-content {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #dadce0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#countdown {
    font-size: 4rem;
    font-weight: bold;
    color: #202124;
    margin: 20px 0;
}

.btn-cancel {
    padding: 10px 24px;
    cursor: pointer;
    background: #ffffff;
    color: #202124;
    border: 1px solid #dadce0;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn-cancel:hover {
    background: #f1f3f4;
}

#map {
    height: 500px;
    width: 100%;
    border-radius: 12px;
    border: 1px solid #dadce0;
    margin-bottom: 40px;
    z-index: 1;
}

.collectif-details {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #dadce0;
    margin-bottom: 30px;
}

.collectif-details h2 {
    margin-top: 0;
    font-size: 2em;
    border-bottom: 2px solid #202124;
    padding-bottom: 10px;
}

.collectif-info {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
}

.collectif-logo {
    max-width: 120px;
    height: auto;
    border-radius: 8px;
}

.collectif-details-text {
    flex: 1;
}

.wiki-page {
    font-family: sans-serif;
    font-size: 1.05em;
    color: #202124;
    line-height: 1.6;
}

.wiki-page h1 {
    font-size: 2.2em;
    font-family: "Linux Libertine", "Georgia", "Times", serif;
    border-bottom: 1px solid #a2a9b1;
    padding-bottom: 5px;
    margin-bottom: 20px;
    font-weight: normal;
}

.wiki-page h2 {
    font-size: 1.6em;
    font-family: "Linux Libertine", "Georgia", "Times", serif;
    border-bottom: 1px solid #a2a9b1;
    padding-bottom: 5px;
    margin-top: 35px;
    margin-bottom: 15px;
    font-weight: normal;
    overflow: hidden; 
}

.wiki-page h3 {
    font-size: 1.2em;
    margin-top: 25px;
    margin-bottom: 10px;
    font-weight: bold;
    overflow: hidden; 
}

.wiki-page p {
    margin-bottom: 15px;
    text-align: justify;
}

.wiki-page blockquote {
    background: #f8f9fa;
    border-left: 4px solid #eaecf0;
    padding: 10px 20px;
    margin: 20px 0;
    font-style: italic;
    color: #202124;
}

.text-small {
    font-size: 0.85em;
    color: #54595d;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.clear-floats {
    clear: both;
}

.size-sm { max-width: 200px; }
.size-md { max-width: 250px; }
.size-lg { max-width: 300px; }
.size-xl { max-width: 340px; }

.infobox {
    float: right;
    width: 320px;
    background-color: #f8f9fa;
    border: 1px solid #a2a9b1;
    margin: 0 0 20px 20px;
    padding: 5px;
    font-size: 0.9em;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.infobox-header {
    background-color: #8c0000;
    color: white;
    text-align: center;
    font-weight: bold;
    padding: 8px;
    font-size: 1.1em;
    margin-bottom: 10px;
}

.infobox img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 10px auto;
}

.zoomable {
    cursor: zoom-in;
    transition: opacity 0.2s;
}

.zoomable:hover {
    opacity: 0.9;
}

.infobox table {
    width: 100%;
    border-collapse: collapse;
}

.infobox th {
    text-align: left;
    vertical-align: top;
    padding: 6px;
    width: 35%;
    border-top: 1px solid #eaecf0;
    color: #202124;
}

.infobox td {
    vertical-align: top;
    padding: 6px;
    border-top: 1px solid #eaecf0;
}

.wiki-figure {
    background: #f8f9fa;
    border: 1px solid #c8ccd1;
    padding: 3px;
    text-align: center;
}

.wiki-figure img {
    max-width: 100%;
    height: auto;
    display: block;
    border: 1px solid #c8ccd1;
}

.wiki-figcaption {
    font-size: 0.85em;
    padding: 6px 4px 4px 4px;
    color: #202124;
    text-align: left;
    line-height: 1.4;
}

.figure-left {
    float: left;
    margin: 10px 20px 15px 0;
}

.figure-right {
    float: right;
    margin: 10px 0 15px 20px;
}

.figure-center {
    display: block;
    margin: 20px auto;
}

.wiki-gallery {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0;
    clear: both;
}

.wiki-event {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eaecf0;
}

.wiki-event:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .infobox {
        float: none;
        width: 100%;
        margin: 0 0 20px 0;
    }
    
    .figure-left, .figure-right {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 20px 0;
    }

    .wiki-gallery {
        flex-direction: column;
        align-items: center;
    }
}
.event-flex {
    display: flex;
    align-items: center; 
    gap: 30px;
    margin-bottom: 30px;
}

.event-text {
    flex: 1; 
}

.flex-reverse {
    flex-direction: row-reverse;
}

.lightbox {
    display: none; 
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    border: 3px solid white;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

@media (max-width: 768px) {
    .event-flex, .flex-reverse {
        flex-direction: column-reverse;
        text-align: center;
    }
}
