/*
Theme Name: Actualités France-Belgique Plus
Theme URI: https://actuanalyses.store
Author: ActuAnalyses
Author URI: https://actuanalyses.store
Description: Un thème moderne et professionnel pour un site d'actualités en français destiné à la France et la Belgique. Conçu pour offrir une expérience de lecture optimale avec une mise en page responsive et élégante. Version améliorée avec design premium et contenu enrichi. Développé par ActuAnalyses, 27 rue Bousquet, 75007 Paris, France.
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: actualites-fr-be-plus
Tags: news, magazine, blog, responsive, two-columns, custom-header, custom-menu, featured-images, threaded-comments, translation-ready, modern, professional
*/

/* ===================================
   VARIABLES CSS
   =================================== */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #dc2626;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* ===================================
   RESET ET STYLES DE BASE
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-light);
    font-weight: 400;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   HEADER
   =================================== */
.site-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
    color: white;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 0;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-info {
    display: flex;
    gap: 20px;
}

.header-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: white;
    font-size: 1.1rem;
    transition: var(--transition);
    opacity: 0.9;
}

.social-links a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.header-main {
    padding: 20px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.site-branding h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.site-branding h1 a {
    color: white;
}

.site-branding p {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 300;
}

.header-search {
    min-width: 300px;
}

.search-form {
    display: flex;
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.search-field {
    flex: 1;
    padding: 12px 20px;
    border: none;
    outline: none;
    font-size: 0.95rem;
}

.search-submit {
    padding: 12px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
}

.search-submit:hover {
    background: var(--primary-dark);
}

/* Navigation */
.main-navigation {
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.main-navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 0;
    margin: 0;
}

.main-navigation li {
    margin: 0;
}

.main-navigation a {
    display: block;
    padding: 15px 20px;
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.main-navigation a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

/* ===================================
   BREAKING NEWS
   =================================== */
.breaking-news {
    background: var(--secondary-color);
    color: white;
    padding: 12px 0;
    box-shadow: var(--shadow-md);
}

.breaking-news .container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.breaking-label {
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.breaking-content {
    flex: 1;
    overflow: hidden;
}

.breaking-content p {
    margin: 0;
    font-size: 0.95rem;
    animation: scroll-text 20s linear infinite;
}

@keyframes scroll-text {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===================================
   MAIN CONTENT
   =================================== */
.site-content {
    padding: 40px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

/* Article Grid */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.article-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.article-thumbnail {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: var(--bg-light);
}

.article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-card:hover .article-thumbnail img {
    transform: scale(1.05);
}

.article-content {
    padding: 20px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.85rem;
}

.category {
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.date {
    color: var(--text-light);
    font-size: 0.85rem;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}

.article-title a {
    color: var(--text-dark);
}

.article-title a:hover {
    color: var(--primary-color);
}

.article-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.read-more:hover {
    gap: 5px;
}

/* ===================================
   SIDEBAR
   =================================== */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.widget {
    background: var(--bg-white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
    color: var(--text-dark);
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    display: block;
}

.widget a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

/* ===================================
   FOOTER
   =================================== */
.site-footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: #d1d5db;
    padding: 50px 0 0;
    margin-top: 60px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widget h3 {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-widget p {
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget li {
    margin-bottom: 10px;
}

.footer-widget a {
    color: #d1d5db;
    transition: var(--transition);
    display: inline-block;
}

.footer-widget a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    padding: 30px 0;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #d1d5db;
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 5px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* ===================================
   PAGINATION
   =================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    background: var(--bg-white);
    border-radius: 8px;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.pagination a:hover {
    background: var(--primary-color);
    color: white;
}

.pagination .current {
    background: var(--primary-color);
    color: white;
}

/* ===================================
   SINGLE POST
   =================================== */
.single-post-header {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

.single-post-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.single-post-meta {
    display: flex;
    gap: 20px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.post-content {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    line-height: 1.8;
    font-size: 1.1rem;
}

.post-content h2 {
    font-size: 1.8rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.post-content h3 {
    font-size: 1.4rem;
    margin-top: 25px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.post-content p {
    margin-bottom: 20px;
}

.post-content img {
    margin: 30px 0;
    border-radius: 8px;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
    
    .article-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-main .container {
        flex-direction: column;
        text-align: center;
    }
    
    .header-search {
        width: 100%;
        min-width: auto;
    }
    
    .main-navigation ul {
        flex-wrap: wrap;
        gap: 0;
    }
    
    .main-navigation a {
        padding: 12px 15px;
        font-size: 0.85rem;
    }
    
    .breaking-news .container {
        flex-direction: column;
        gap: 10px;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    
    .single-post-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .site-branding h1 {
        font-size: 1.5rem;
    }
    
    .header-top .container {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* ===================================
   UTILITIES
   =================================== */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none;
}

/* Hero Banner */
.hero-banner {
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.9) 0%, rgba(37, 99, 235, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Featured Article Hover Effects */
.featured-article:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.featured-article:hover img {
    transform: scale(1.08);
}

/* Category Cards */
.categories-section a:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Newsletter Section */
.newsletter-section form input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.newsletter-section form button:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Smooth Transitions */
* {
    transition: color 0.3s ease, background-color 0.3s ease;
}

/* Enhanced Shadows */
.article-card,
.widget,
.single-post-header,
.post-content {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Accessibility */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .site-header,
    .breaking-news,
    .sidebar,
    .site-footer,
    .back-to-top {
        display: none;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .article-card,
    .post-content {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

