
body {
    font-family: 'Segoe UI', sans-serif;
    padding: 0;
    color: #333;
}

.page-header {
    text-align: center;
    padding: 3rem 1rem 1rem;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-header h1 {
    font-size: 2.5rem;
    color: #009688;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.6rem;
    color: #666;
}

.page-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin: 3rem 5%;
    padding: 0 1rem;
}

/* Grille de 2x2 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
    gap: 1.5rem;
    flex: 3;
}

.news-card {
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease;
    border: 1px solid #ddd;
}

.news-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.news-card.tall-left img {
    height: 320px;
}

.news-content {
    padding: 1rem;
}

.news-content h2 {
    font-size: 1.8rem;
    color: #009688;
    margin-bottom: 0.5rem;
}

.meta {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 0.7rem;
}

.meta i {
    margin-right: 5px;
    color: #009688;
}

.news-content p {
    font-size: 1.6rem;
    color: #444;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: #009688;
    font-weight: 500;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

.sidebar {
    background: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 2.5rem 2rem;
    max-width: 250px;    /* Augmente la largeur maximale */
    width: 100%;         /* Prend toute la largeur possible */
    margin: 0 auto 2rem auto;
}

.sidebar h3 {
    font-size: 1.5rem;
    color: #222;
    font-weight: 700;
    text-align: center;
    letter-spacing: 1px;
}

.hr-multicolor-white-actu {
    border: none;
    height: 2px;
    width: 100%;
    text-align: center;
    background: linear-gradient(to right, #111827, #4ade80, #111827);
    border-radius: 10px;
}

.event-month h4 {
    color: #009688;
    font-size: 1.5rem;
    margin-top: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-align: center;
    text-transform: uppercase;
}

.event-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.event-list li {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 150, 136, 0.07);
    margin-bottom: 1.2rem;
    padding: 0.7rem 1rem 0.7rem 0.7rem;
    transition: box-shadow 0.2s;
}


.event-img {
    width: 54px;
    height: 54px;
    object-fit: cover;
    margin-right: 18px;
    background: #e0f7fa;
    flex-shrink: 0;
}

.event-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.event-date {
    color: #222;
    font-size: 1.6rem;
    margin-bottom: 0.1rem;
    letter-spacing: 0.5px;
}

.event-title1 {
    font-size: 1.2rem;
    color: #009688;
    font-weight: 500;
    margin-bottom: 0.1rem;
    letter-spacing: 0.2px;
}

.event-location {
    font-size: 0.98rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
}

.event-location i {
    color: #009688;
    margin-right: 6px;
    font-size: 1.5em;
}

.pagination {
    display: flex;
    justify-content: center;
    margin: 2.5rem 0 2rem 0;
    gap: 20px;
}

.pagination ul {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}


.pagination li a,
.pagination li.disabled{
    display: block;
    min-width: 36px;
    padding: 8px;
    border-radius: 5px;
    background: #c2c2c3;
    color: white;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    font-size: 1.6rem;
}

.pagination li a.active,
.pagination li a:hover
{
    background: #111827;
    color: white;
}
.pagination li.active{
    display: block;
    min-width: 36px;
    padding: 8px;
    border-radius: 5px;
    background: #111827;
    color: white;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    font-size: 1.6rem;
}

/* Responsive */
@media screen and (max-width: 1000px) {
    .page-container {
        flex-direction: column;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card img,
    .news-card.tall-left img {
        height: 240px;
    }

    .sidebar {
        order: -1;
        margin-top: 2rem;
    }
}

@media (max-width: 900px) {
    .page-container {
        flex-direction: column;
    }
    .news-grid {
        order: 1;
    }
    .sidebar {
        order: 2;
        max-width: 100%;
        margin: 2rem 0 0 0;
    }
}

@media (max-width: 700px) {
    .sidebar {
        padding: 1.2rem 0.5rem;
        border-radius: 14px;
        max-width: 100%;
    }

    .event-img {
        width: 38px;
        height: 38px;
        margin-right: 10px;
    }
}
