/* ACTU GÉOPOLITIQUE - STRICT BLACK & WHITE THEME */

:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --border-color: #e5e7eb;
    --hover-border-color: #000000;
    --font-main: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* NAVIGATION - Inherited from style.css */


/* MAIN LAYOUT */
main {
    max-width: 1400px;
    margin: 180px auto 2rem;
    /* Increased top margin to clear the header */
    padding: 0 2rem;
}

.page-header {
    margin-bottom: 3rem;
    border-bottom: 4px solid black;
    padding-bottom: 1rem;
}

.page-title {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    margin: 0;
    text-transform: uppercase;
    line-height: 1;
}

.last-updated {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
    font-family: monospace;
}

/* NEWSPAPER GRID LAYOUT */
.news-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.6fr 1fr;
    /* Left (Med), Center (Large), Right (Small) */
    gap: 2rem;
    align-items: start;
}

/* Columns */
.column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* ARTICLE CARDS */
.article-card {
    border: 1px solid var(--border-color);
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-color);
}

.article-card:hover {
    border-color: var(--hover-border-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.article-image {
    width: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.article-card:hover .article-image {
    filter: grayscale(0%);
}

.article-content {
    padding: 1.5rem;
}

.article-meta {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    display: flex;
    justify-content: space-between;
}

.article-title {
    font-weight: 700;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.article-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* COLUMN SPECIFIC STYLES */

/* Left Column (Medium) */
.col-left .article-image {
    height: 220px;
}

.col-left .article-title {
    font-size: 1.5rem;
}

/* Center Column (Large) */
.col-center .article-image {
    height: 320px;
}

.col-center .article-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.col-center .article-excerpt {
    font-size: 1.1rem;
    -webkit-line-clamp: 4;
    line-clamp: 4;
}

/* Right Column (Small/Briefs) */
.col-right .article-card {
    border-bottom: 1px solid var(--border-color);
    border-top: none;
    border-left: none;
    border-right: none;
    padding-bottom: 1rem;
}

.col-right .article-card:hover {
    /* Disable regular hover styles for briefs list style if preferred, currently keeping consistency */
    border: 1px solid var(--hover-border-color);
    /* Add back border on hover */
}

.col-right .article-image {
    height: 150px;
    /* Smaller image */
    margin-bottom: 1rem;
}

.col-right .article-title {
    font-size: 1.1rem;
    margin-bottom: 0;
}

.col-right .article-excerpt {
    display: none;
    /* NO Excerpt */
}

.col-right .article-content {
    padding: 1rem;
}


/* FOOTER */
.app-footer {
    background-color: #000;
    color: #fff;
    padding: 4rem 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    max-width: 1400px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: 2fr 1fr;
        /* Large + Small */
    }

    .col-left {
        display: none;
        /* Hide left column content or merge? For now, following spec strictness implies structure change. 
        Actually, usually we would just stack. But spec says:
        Tablet (< 1200px) : 2 colonnes (grande + petite)
        Mobile (< 968px) : 1 colonne 
        I will move Left column items to Center in JS or just hide/stack. 
        CSS Grid area might be better but let's just stack left and center for tablet?
        Wait, standard practice: 
        Tablet: Center takes main stage, Right stays sidebar. Left content moves to bottom of Center or stays.
        Let's treat 'col-left' as merged into main flow or just hidden for simplicity if not specified.
        Re-reading spec: "Tablet (< 1200px) : 2 colonnes (grande + petite)"
        I will make left column disappear? No that loses content. 
        I will make the grid 2 columns. Left and Center merge visually?
        Let's just stack Left and Center in one visual column vs Right.
        */
        grid-column: 1 / 2;
    }

    .col-center {
        grid-column: 1 / 2;
    }

    .col-right {
        grid-column: 2 / 3;
    }

    /* Re-order for tablet: Center content first? */
}

@media (max-width: 968px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .col-left,
    .col-center,
    .col-right {
        grid-column: 1 / -1;
    }

    .col-right .article-excerpt {
        display: block;
        /* Show excerpts on mobile for consistency */
    }

    .col-right .article-image {
        height: 200px;
    }
}