/* Global News - Version Grille Compacte */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

h1 {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.location-display {
    background: rgba(255,255,255,.2);
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

nav {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.nav-btn {
    background: rgba(255,255,255,.2);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all .3s;
    text-decoration: none;
}

.nav-btn:hover,
.nav-btn.active {
    background: #fff;
    color: #667eea;
}

.ad-banner-top {
    background: #fff;
    padding: 20px;
    text-align: center;
    margin: 20px auto;
    max-width: 1400px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,.1);
}

.ad-placeholder {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    padding: 60px 20px;
    border-radius: 8px;
    color: #2d3436;
    font-weight: 700;
    border: 2px dashed #fdcb6e;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

/* ========================================
   NOUVELLE GRILLE ARTICLES (2 COLONNES)
   ======================================== */
.articles-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-items: start;
}

.article-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    transition: all .3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.article-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-content h2 {
    font-size: 1.1rem;
    line-height: 1.4;
    margin: 0 0 12px 0;
    color: #1a1a2e;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #666;
    margin: 0 0 15px 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.article-source {
    font-weight: 600;
    color: #e94560;
}

.article-link {
    display: inline-block;
    padding: 10px 20px;
    background: #e94560;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s;
    text-align: center;
}

.article-link:hover {
    background: #d63851;
    transform: translateX(2px);
}

/* Pub in-feed sur toute la largeur */
.ad-in-feed {
    grid-column: 1 / -1;
    margin: 10px 0;
}

.ad-in-feed .ad-placeholder {
    padding: 40px 20px;
    font-size: 0.9rem;
}

/* ========================================
   SIDEBAR
   ======================================== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-widget {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.sidebar-widget h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #1a1a2e;
}

.ad-sidebar .ad-placeholder {
    padding: 150px 20px;
    font-size: 0.85rem;
}

.trending-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trending-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.trending-tag {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s;
    cursor: default;
}

.trending-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.country-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.country-option {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all .3s;
    text-decoration: none;
    color: #333;
}

.country-option:hover {
    background: #f8f9fa;
}

.country-option.active {
    background: #e3f2fd;
    border: 2px solid #2196f3;
    font-weight: 600;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    background: #2d3436;
    color: #fff;
    text-align: center;
    padding: 40px 20px;
    margin-top: 40px;
}

footer a {
    color: #74b9ff;
    text-decoration: none;
    margin: 0 10px;
}

footer a:hover {
    text-decoration: underline;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1200px) {
    .container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.3rem;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    nav {
        justify-content: center;
    }
    
    .articles-section {
        grid-template-columns: 1fr;
    }
    
    .article-card img {
        height: 180px;
    }
    
    .sidebar {
        display: none;
    }
}

/* ========================================
   UTILITAIRES
   ======================================== */
.loading {
    text-align: center;
    padding: 40px;
    color: #667eea;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-articles {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    color: #666;
}