/*
Theme Name: Le Journal de l'Eco UltraPro Premium
Author: User
Description: Theme magazine économique premium, viral, SEO-friendly, responsive
Version: 3.5
Text Domain: lejournaldeleco
*/

/* ===========================
   CONTAINER PRINCIPAL
=========================== */
.container {
    max-width:1200px;
    margin:0 auto;
    padding:0 30px;
    box-sizing:border-box;
}

/* Appliquer le container sur toutes les sections */
.hero-slider,
.latest-news-grid,
.categories-grid-inner,
.sidebar,
footer {
    width: 100%;
    margin: 0 auto;
}

/* ===========================
   TYPOGRAPHIE MODERNE
=========================== */
body {
    font-family: 'Inter', sans-serif;
    margin:0; padding:0;
    color:#1c1c1c;
    background:#f8f9fa;
    line-height:1.75;
    font-size:16px;
}
h1,h2,h3,h4,h5 {
    font-family: 'Merriweather', serif;
    color:#0d1b2a;
    margin-bottom:14px;
}
h1 { font-size:42px; letter-spacing:1px; }
h2 { font-size:36px; letter-spacing:0.5px; }
h3 { font-size:28px; }
h4 { font-size:22px; }
h5 { font-size:18px; }
p { margin-bottom:18px; line-height:1.8; }
a { text-decoration:none; color:#1e88e5; transition: all 0.3s ease; }
a:hover { color:#00bfa5; text-decoration:underline; }

/* ===========================
   HEADER PREMIUM
=========================== */
header {
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:25px 0;
    background:#fff;
    box-shadow:0 8px 25px rgba(0,0,0,0.08);
    position:sticky;
    top:0;
    z-index:1000;
    transition: all 0.3s ease;
}
header:hover { box-shadow:0 12px 35px rgba(0,0,0,0.12); }

header .logo img {
    height:110px; 
    transition: transform 0.4s ease;
}
header .logo img:hover { transform:scale(1.12); }

nav ul {
    display:flex;
    list-style:none;
    margin:0;
    padding:0;
}
nav ul li { margin-left:40px; position:relative; }
nav ul li a { font-weight:700; padding:12px 15px; display:block; transition: all 0.3s ease; }
nav ul li a:hover { color:#00bfa5; transform:translateY(-2px); }

nav ul li ul {
    display:none;
    position:absolute;
    top:100%;
    left:0;
    background:#fff;
    box-shadow:0 10px 30px rgba(0,0,0,0.15);
    padding:12px 0;
    min-width:220px;
    z-index:999;
    border-radius:8px;
}
nav ul li:hover ul { display:block; }
nav ul li ul li a { padding:10px 20px; color:#1e88e5; }

.menu-toggle { display:none; cursor:pointer; font-size:32px; }

/* ===========================
   HEADER DROITE
=========================== */
.header-right {
    display:flex;
    align-items:center;
    gap:18px;
}
.search-form {
    display:flex;
    align-items:center;
    border:1px solid #ccc;
    border-radius:30px;
    overflow:hidden;
    background:#f1f3f5;
}
.search-form input {
    border:none;
    padding:10px 15px;
    outline:none;
    background:transparent;
}
.search-form button {
    border:none;
    background:#1e88e5;
    color:#fff;
    padding:10px 15px;
    cursor:pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}
.search-form button:hover { background:#00bfa5; transform:scale(1.05); }

.btn-subscribe {
    background: linear-gradient(135deg, #0055A5, #00BFA5);
    color:#fff;
    padding:10px 20px;
    border-radius:30px;
    font-weight:600;
    font-size:16px;
    box-shadow:0 6px 20px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing:0.5px;
}
.btn-subscribe:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow:0 10px 28px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, #0077D6, #00D6A5);
}

.social-header a {
    display:inline-block;
    margin-left:6px;
    padding:8px 14px;
    border-radius:8px;
    background:#1e88e5;
    color:#fff;
    font-size:14px;
    transition: background 0.3s ease, transform 0.3s ease;
}
.social-header a:hover { background:#00bfa5; transform:scale(1.1); }

/* ===========================
   FIL D'ARIANE
=========================== */
.breadcrumb {
    font-size:14px;
    margin:20px 0;
    color:#555;
}
.breadcrumb a { color:#1e88e5; transition: color 0.3s ease; }
.breadcrumb a:hover { color:#00bfa5; }

/* ===========================
   HERO SLIDER PREMIUM
=========================== */
.hero-slider {
    display:flex;
    overflow-x:auto;
    gap:30px;
    margin:60px 0;
    scroll-behavior: smooth;
}
.hero-slide {
    min-width:80%;
    flex:0 0 auto;
    position:relative;
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 12px 35px rgba(0,0,0,0.15);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    cursor:pointer;
    background:rgba(255,255,255,0.1);
    backdrop-filter:blur(8px);
}
.hero-slide:hover { 
    transform: scale(1.04) translateY(-6px); 
    box-shadow:0 18px 45px rgba(0,0,0,0.18); 
}
.hero-slide img {
    width:100%;
    height:480px;
    object-fit:cover;
    border-radius:16px;
}
.hero-slide-content {
    position:absolute;
    bottom:0;
    left:0;
    width:100%;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.75) 100%);
    color:#fff;
    padding:30px;
}
.hero-slide-content h2 { font-size:34px; margin:0 0 14px; line-height:1.2; }
.hero-slide-content p { font-size:17px; margin:0 0 6px; }
.hero-slide-content .hero-meta { font-size:13px; color:#ddd; }

/* ===========================
   DERNIÈRES ACTUALITÉS
=========================== */
.latest-news-grid {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:32px;
    margin:70px 0;
}
.latest-news-grid article {
    border-radius:16px;
    padding:28px;
    background:rgba(255,255,255,0.85);
    box-shadow:0 10px 25px rgba(0,0,0,0.12);
    transition: all 0.5s ease, transform 0.4s ease;
    backdrop-filter:blur(6px);
}
.latest-news-grid article:hover {
    transform: translateY(-7px) scale(1.02);
    box-shadow:0 14px 35px rgba(0,0,0,0.18);
}

/* ===========================
   CATEGORIES CARDS PREMIUM
=========================== */
.categories-grid-inner {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:28px;
    margin:60px 0;
}
.category-card {
    border-radius:16px;
    padding:24px;
    background:rgba(255,255,255,0.85);
    box-shadow:0 10px 25px rgba(0,0,0,0.12);
    transition: all 0.4s ease, transform 0.4s ease;
    backdrop-filter:blur(6px);
}
.category-card:hover {
    transform:translateY(-7px) scale(1.03);
    box-shadow:0 14px 32px rgba(0,0,0,0.16);
}

/* ===========================
   SIDEBAR PREMIUM
=========================== */
.sidebar {
    margin-top:50px;
    padding:28px;
    background:rgba(255,255,255,0.9);
    border-radius:16px;
    border:1px solid #ddd;
    box-shadow:0 8px 25px rgba(0,0,0,0.1);
}
.sidebar h3 { margin-bottom:22px; font-weight:700; }
.social-share a {
    display:inline-block;
    padding:10px 16px;
    margin-right:6px;
    border-radius:8px;
    background:#1e88e5;
    color:#fff;
    font-size:14px;
    transition: background 0.3s ease, transform 0.3s ease;
}
.social-share a:hover { background:#00bfa5; transform:scale(1.08); }

/* ===========================
   FOOTER
=========================== */
footer {
    text-align:center;
    padding:70px 35px;
    background:#f4f4f4;
    margin-top:70px;
    color:#555;
    font-size:15px;
    line-height:1.8;
}

/* ===========================
   RESPONSIVE
=========================== */
@media(max-width:1024px){
    .container { padding:0 20px; }
    .hero-slider { flex-direction:column; }
    .hero-slide { min-width:100%; }
    .header-right { flex-direction:column; gap:12px; }
}
@media(max-width:768px){
    nav ul { flex-direction:column; display:none; width:100%; }
    nav ul li { margin-left:0; }
    .menu-toggle { display:block; }
    .header-right { flex-direction:column; gap:10px; }
}

.page-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 50px;
}

.page-content article {
    background: rgba(255,255,255,0.95);
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    transition: all 0.4s ease, transform 0.3s ease;
}
.page-content article:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 35px rgba(0,0,0,0.18);
}

.page-content h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #0d1b2a;
}

.entry-content p {
    line-height: 1.8;
    margin-bottom: 18px;
    font-size: 16px;
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 15px 0;
}

/* Responsive */
@media(max-width:768px){
    .page-content {
        gap: 25px;
    }
    .page-content h1 {
        font-size: 28px;
    }
}

.single-article-content article {
    background: rgba(255,255,255,0.95);
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    transition: all 0.4s ease, transform 0.3s ease;
    margin-bottom: 50px;
}
.single-article-content article:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 35px rgba(0,0,0,0.18);
}
.single-article-content h1 {
    font-size: 36px;
    margin-bottom: 15px;
    color: #0d1b2a;
}
.single-article-content .hero-meta {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
}
.single-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
}
.latest-news-grid h2 {
    font-size:28px;
    margin-bottom:30px;
}
.latest-news-grid article {
    border-radius:16px;
    padding:20px;
    background:rgba(255,255,255,0.85);
    box-shadow:0 8px 22px rgba(0,0,0,0.12);
    transition: all 0.4s ease, transform 0.3s ease;
}
.latest-news-grid article:hover {
    transform: translateY(-5px);
    box-shadow:0 12px 32px rgba(0,0,0,0.18);
}

/* Responsive */
@media(max-width:768px){
    .single-article-content h1 { font-size:28px; }
    .latest-news-grid h2 { font-size:22px; }
}

.featured-news h2,
.latest-news h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #0d1b2a;
}

.latest-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.article {
    background: rgba(255,255,255,0.9);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.12);
    transition: all 0.4s ease, transform 0.3s ease;
}
.article:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}

.article-thumb img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 15px;
}

.article h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.hero-meta {
    font-size: 13px;
    color: #555;
    margin-bottom: 12px;
}

.article p {
    font-size: 15px;
    line-height: 1.7;
}

/* Responsive */
@media(max-width:768px){
    .latest-news-grid {
        grid-template-columns: 1fr;
    }
    .featured-news h2,
    .latest-news h2 { font-size:24px; }
    .article h3 { font-size:20px; }
}
